diff options
author | Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> | 2002-09-03 04:01:28 +0000 |
---|---|---|
committer | Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> | 2002-09-03 04:01:28 +0000 |
commit | 3e5ddbe2f3a831d73153241416cdcf0076c5637b (patch) | |
tree | 078cf5881fb2c59e78bcf6ab1a86f9cd84fd2cde /x11/electricsheep | |
parent | 8668e16e82e65b0792fc48a3d33c1d6a5def4e2b (diff) | |
download | ports-3e5ddbe2f3a831d73153241416cdcf0076c5637b.tar.gz ports-3e5ddbe2f3a831d73153241416cdcf0076c5637b.zip |
Notes
Diffstat (limited to 'x11/electricsheep')
-rw-r--r-- | x11/electricsheep/Makefile | 18 | ||||
-rw-r--r-- | x11/electricsheep/files/patch-electricsheep.c | 12 |
2 files changed, 11 insertions, 19 deletions
diff --git a/x11/electricsheep/Makefile b/x11/electricsheep/Makefile index b6f749042652..69ac33c5f0b2 100644 --- a/x11/electricsheep/Makefile +++ b/x11/electricsheep/Makefile @@ -12,22 +12,26 @@ MASTER_SITES= http://www-2.cs.cmu.edu/~spot/cache/ MAINTAINER= dyeske@yahoo.com -LIB_DEPENDS= jpeg:${PORTSDIR}/graphics/jpeg RUN_DEPENDS= xloadimage:${PORTSDIR}/x11/xloadimage \ xsetbg:${PORTSDIR}/graphics/xli \ curl:${PORTSDIR}/ftp/curl USE_X_PREFIX= yes GNU_CONFIGURE= yes - -pre-patch: - @${PERL} -pi -e 's|/usr/include/X11|${X11BASE}/include|g; \ - s|/usr/lib/libjpeg.so.62|${LOCALBASE}/lib/libjpeg.so|g;' \ - ${WRKSRC}/video_out/Makefile +USE_REINPLACE= yes post-patch: - @${PERL} -pi -e 's|/usr/local/share|${PREFIX}/share/electricsheep|g;' \ + @${REINPLACE_CMD} -e 's|/usr/local/share|${PREFIX}/share/electricsheep|g; \ + s|setpgrp()|setpgrp(getpid(), getpid())|g' \ ${WRKSRC}/electricsheep.c + @${REINPLACE_CMD} -e 's|/usr/include/X11|${X11BASE}/include|g; \ + s|-I/usr/include||g; \ + s|gcc|${CC}|g; \ + s|^CC|#CC|g; \ + s|/usr/lib/libjpeg.so.62||g' \ + ${WRKSRC}/video_out/Makefile + @${REINPLACE_CMD} -e 's|^CFLAGS =|CFLAGS +=|g' \ + ${WRKSRC}/flame/Makefile do-install: ${INSTALL_PROGRAM} ${WRKSRC}/electricsheep ${PREFIX}/bin diff --git a/x11/electricsheep/files/patch-electricsheep.c b/x11/electricsheep/files/patch-electricsheep.c deleted file mode 100644 index e4f21a9b0085..000000000000 --- a/x11/electricsheep/files/patch-electricsheep.c +++ /dev/null @@ -1,12 +0,0 @@ -$FreeBSD$ ---- electricsheep.c.orig Tue Jul 3 14:55:00 2001 -+++ electricsheep.c Tue Feb 12 12:58:42 2002 -@@ -1223,7 +1223,7 @@ - - /* create our own group so all workers/children may be killed together - without hassle */ -- if (-1 == setpgrp()) -+ if (-1 == setpgrp(getpid(), getpid())) - perror("setpgrp"); - signal(SIGTERM, handle_sig_term); - signal(SIGINT, handle_sig_term); |