aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbms <bms@FreeBSD.org>2004-07-12 08:49:30 +0800
committerbms <bms@FreeBSD.org>2004-07-12 08:49:30 +0800
commit2016eeee6d5240f99f2495ed13aa7136bfa31b2b (patch)
treef5cc85f6b2a966c981e61eda4552d8ca92c2c6a4
parent80f30f8eea9d6cee73a44da32869116fcb550967 (diff)
downloadfreebsd-ports-gnome-2016eeee6d5240f99f2495ed13aa7136bfa31b2b.tar.gz
freebsd-ports-gnome-2016eeee6d5240f99f2495ed13aa7136bfa31b2b.tar.zst
freebsd-ports-gnome-2016eeee6d5240f99f2495ed13aa7136bfa31b2b.zip
Add a new tweakable knob, WITH_XSCREENSAVER, and announce it.
Add conditional runtime dependency on x11/xscreensaver. Add conditional installation of xscreensaver config (electricsheep.xml) to do-install target. Correct typo in previous revision. Bump PORTREVISION.
-rw-r--r--x11/electricsheep/Makefile20
1 files changed, 18 insertions, 2 deletions
diff --git a/x11/electricsheep/Makefile b/x11/electricsheep/Makefile
index 51f9d6cf1ccf..fbeb22cf9291 100644
--- a/x11/electricsheep/Makefile
+++ b/x11/electricsheep/Makefile
@@ -7,7 +7,7 @@
PORTNAME= electricsheep
PORTVERSION= 2.5
-PORTREVISION= 0
+PORTREVISION= 1
CATEGORIES= x11
MASTER_SITES= http://electricsheep.org/
@@ -21,6 +21,10 @@ RUN_DEPENDS= xloadimage:${PORTSDIR}/x11/xloadimage \
xsetbg:${PORTSDIR}/graphics/xli \
curl:${PORTSDIR}/ftp/curl
+.if defined(WITH_XSCREENSAVER)
+RUN_DEPENDS+= xscreensaver:${PORTSDIR}/x11/xscreensaver
+.endif
+
USE_X_PREFIX= yes
USE_SDL= sdl
USE_REINPLACE= yes
@@ -35,6 +39,15 @@ CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS} ${PTHREAD_CFLAGS} -I${X11BASE}/include -I${
LIBTOOLFILES= configure mpeg2dec/configure flame/configure
+pre-everything::
+.if !defined(WITH_XSCREENSAVER)
+ @${ECHO_MSG} "elecricsheep has the following tunable option(s):"
+ @${ECHO_MSG} ""
+ @${ECHO_MSG} "WITH_XSCREENSAVER=yes Installs configuration file"
+ @${ECHO_MSG} " for XScreenSaver"
+ @${ECHO_MSG} ""
+.endif
+
post-patch:
@${REINPLACE_CMD} -e \
's|sdl-config|sdl11-config|' \
@@ -66,8 +79,11 @@ do-install:
@${INSTALL_PROGRAM} ${WRKSRC}/mpeg2dec/src/mpeg2dec_onroot ${PREFIX}/bin
@${INSTALL} -d -m 0755 ${PREFIX}/share/electricsheep
@${INSTALL_DATA} ${WRKSRC}/*.tif ${PREFIX}/share/electricsheep
+.if defined(WITH_XSCREENSAVER)
+ @${INSTALL_DATA} ${WRKSRC}/electricsheep.xml ${PREFIX}/share/xscreensaver/config
+.endif
.if !defined(NOPORTDOCS)
- @${INSTALL_DATA} ${WRKSRC}/electricsheep.man ${PREFIX}/man/man1/electricsheep.1
+ @${INSTALL_MAN} ${WRKSRC}/electricsheep.man ${PREFIX}/man/man1/electricsheep.1
.endif
.include <bsd.port.mk>