1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-20 00:21:35 +00:00

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.
This commit is contained in:
Bruce M Simpson 2004-07-12 00:49:30 +00:00
parent 9191f1647e
commit 0c2cc5ef9e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=113440

View File

@ -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>