diff options
Diffstat (limited to 'x11')
-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); |