mirror of
https://git.freebsd.org/ports.git
synced 2026-06-02 11:08:52 +00:00
x11/xwinwrap: update to 0.9 and enable everywhere
- switch to a fork - just build that one file directly - ship example - grab maintainership of this unmaintained port WWW: https://github.com/mmhobi7/xwinwrap
This commit is contained in:
+27
-15
@@ -1,25 +1,37 @@
|
||||
PORTNAME= xwinwrap
|
||||
PORTVERSION= 0.3
|
||||
PORTREVISION= 4
|
||||
DISTVERSIONPREFIX= v
|
||||
DISTVERSION= 0.9
|
||||
CATEGORIES= x11
|
||||
MASTER_SITES= LOCAL/vg
|
||||
|
||||
MAINTAINER= ports@FreeBSD.org
|
||||
MAINTAINER= fuz@FreeBSD.org
|
||||
COMMENT= XWinWrap replace a desktop background with a movie or screensaver
|
||||
WWW= http://tech.shantanugoel.com/projects/linux/shantz-xwinwrap
|
||||
|
||||
WRKSRC= ${WRKDIR}/${PORTNAME}
|
||||
LICENSE= NOVELL
|
||||
LICENSE_NAME= Novell License
|
||||
LICENSE_FILE= ${WRKSRC}/xwinwrap.c
|
||||
LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
|
||||
|
||||
ONLY_FOR_ARCHS= amd64 i386
|
||||
USES= tar:bzip2 xorg
|
||||
USES= localbase:ldflags shebangfix xorg
|
||||
USE_GITHUB= yes
|
||||
GH_ACCOUNT= mmhobi7
|
||||
USE_XORG= x11 xorgproto xrender xext
|
||||
PLIST_FILES= bin/${PORTNAME}
|
||||
MAKE_ARGS+= PREFIX=${PREFIX}
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
SHEBANG_FILES= examples/mint_auto_start_example.sh
|
||||
bash_CMD= ${SH}
|
||||
|
||||
.if ${ARCH} == "amd64"
|
||||
MAKE_ARGS+= ARCH=x86_64
|
||||
.endif
|
||||
LIBS+= -lX11 -lXext -lXrender
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
PLIST_FILES= bin/${PORTNAME} \
|
||||
${EXAMPLESDIR}/mint_auto_start_example.sh
|
||||
|
||||
do-build:
|
||||
${SETENVI} ${MAKE_ENV} ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} \
|
||||
-o ${WRKDIR}/xwinwrap ${WRKSRC}/xwinwrap.c ${LIBS}
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKDIR}/xwinwrap ${STAGEDIR}${PREFIX}/bin/
|
||||
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
||||
${INSTALL_SCRIPT} ${WRKSRC}/examples/mint_auto_start_example.sh \
|
||||
${STAGEDIR}${EXAMPLESDIR}/
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
SHA256 (xwinwrap-0.3.tar.bz2) = 2a19645db3dd544318b26ade0f975583ef537bc7f926028bc9c538239b32e668
|
||||
SIZE (xwinwrap-0.3.tar.bz2) = 5010
|
||||
TIMESTAMP = 1770064788
|
||||
SHA256 (mmhobi7-xwinwrap-v0.9_GH0.tar.gz) = 1792f59c5d85fc766f356f8f903a2081fe4dccc5e8e61cdd946bae0438d15d9a
|
||||
SIZE (mmhobi7-xwinwrap-v0.9_GH0.tar.gz) = 1992786
|
||||
|
||||
@@ -1,46 +0,0 @@
|
||||
--- Makefile.orig 2009-11-16 21:42:09.000000000 +0800
|
||||
+++ Makefile 2014-01-11 00:00:12.000000000 +0800
|
||||
@@ -1,22 +1,23 @@
|
||||
-all: all64 all32
|
||||
-
|
||||
-all64:
|
||||
- gcc -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -lX11 -lXext -lXrender xwinwrap.c -o xwinwrap
|
||||
- -mkdir x86_64
|
||||
- mv ./xwinwrap ./x86_64
|
||||
-
|
||||
-all32:
|
||||
- gcc -m32 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -lX11 -lXext -lXrender xwinwrap.c -o xwinwrap
|
||||
- -mkdir i386
|
||||
- mv ./xwinwrap ./i386
|
||||
-
|
||||
-install64:
|
||||
- cp x86_64/xwinwrap /usr/bin
|
||||
-
|
||||
-install32:
|
||||
- cp i386/xwinwrap /usr/bin
|
||||
+INSTALL = /usr/bin/install -m 755
|
||||
+PREFIX = /usr/local
|
||||
+CC = cc
|
||||
+ARCH = `uname -p`
|
||||
+
|
||||
+TARGET = xwinwrap
|
||||
+
|
||||
+CFLAGS = -I${LOCALBASE}/include -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls
|
||||
+LDFLAGS = -L${LOCALBASE}/lib -lX11 -lXext -lXrender
|
||||
+
|
||||
+all:
|
||||
+ if [ "${ARCH}" = "x86_64" ] ; then \
|
||||
+ $(CC) $(CFLAGS) $(LDFLAGS) $(TARGET).c -o $(TARGET); \
|
||||
+ elif [ "${ARCH}" = "i386" ] ; then \
|
||||
+ $(CC) -m32 $(CFLAGS) $(LDFLAGS) $(CPPFLAGS) $(TARGET).c -o $(TARGET); \
|
||||
+ else \
|
||||
+ echo 'ERROR: UNKNOWN ARCH'; \
|
||||
+ fi;
|
||||
|
||||
+install:
|
||||
+ $(INSTALL) $(TARGET) $(DESTDIR)$(PREFIX)/bin
|
||||
clean:
|
||||
- -rm -rf x86_64/ i386/
|
||||
-
|
||||
-
|
||||
+ -rm $(TARGET)
|
||||
Reference in New Issue
Block a user