2012-10-08 12:38:47 +02:00
|
|
|
# Created by: dom@myrddin.demon.co.uk
|
1999-08-31 04:51:23 +02:00
|
|
|
# $FreeBSD$
|
1995-07-11 08:50:12 +02:00
|
|
|
|
2000-04-13 21:19:05 +02:00
|
|
|
PORTNAME= xscreensaver
|
2014-06-13 20:25:07 +02:00
|
|
|
PORTVERSION= 5.29
|
2014-08-04 21:56:57 +02:00
|
|
|
PORTREVISION= 2
|
2012-07-29 10:01:59 +02:00
|
|
|
CATEGORIES= x11
|
|
|
|
MASTER_SITES= http://www.jwz.org/xscreensaver/
|
1995-07-11 08:50:12 +02:00
|
|
|
|
2012-10-08 14:56:42 +02:00
|
|
|
MAINTAINER= zeising@FreeBSD.org
|
2003-02-20 09:51:25 +01:00
|
|
|
COMMENT= Save your screen while you entertain your cat
|
1995-07-11 08:50:12 +02:00
|
|
|
|
2013-12-17 23:01:03 +01:00
|
|
|
LIB_DEPENDS= libgle.so:${PORTSDIR}/graphics/gle \
|
|
|
|
libjpeg.so:${PORTSDIR}/graphics/jpeg \
|
|
|
|
libgtk-x11-2.0.so:${PORTSDIR}/x11-toolkits/gtk20 \
|
|
|
|
libxml2.so:${PORTSDIR}/textproc/libxml2 \
|
|
|
|
libglade-2.0.so:${PORTSDIR}/devel/libglade2
|
2002-06-05 10:51:01 +02:00
|
|
|
|
2012-06-03 23:41:02 +02:00
|
|
|
RUN_DEPENDS= p5-libwww>0:${PORTSDIR}/www/p5-libwww \
|
2011-10-01 08:05:36 +02:00
|
|
|
giftopnm:${PORTSDIR}/graphics/netpbm
|
|
|
|
|
2013-12-17 23:01:03 +01:00
|
|
|
DESTDIRNAME= install_prefix
|
2009-03-24 20:51:28 +01:00
|
|
|
|
2012-06-26 10:39:48 +02:00
|
|
|
CONFLICTS= xscreensaver-gnome-[0-9]* xscreensaver-gnome-hacks-[0-9]*
|
2012-06-24 12:26:27 +02:00
|
|
|
|
2013-09-01 01:55:40 +02:00
|
|
|
USES= pkgconfig gettext gmake
|
2013-09-02 00:36:56 +02:00
|
|
|
USE_XORG= xpm xext xxf86misc
|
2004-02-08 09:21:38 +01:00
|
|
|
USE_GL= yes
|
2000-10-05 08:47:41 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2013-09-02 14:05:58 +02:00
|
|
|
USE_AUTOTOOLS= autoconf
|
2014-06-13 20:25:07 +02:00
|
|
|
USE_GNOME= intltool
|
2013-09-02 14:05:58 +02:00
|
|
|
CONFIGURE_ENV+= "CPPFLAGS= -I ${LOCALBASE}/include" "LDFLAGS= -L ${LOCALBASE}/lib"
|
2007-12-11 21:03:07 +01:00
|
|
|
CONFIGURE_ARGS= --with-gtk --with-gl --with-gle --with-pixbuf --with-xpm \
|
|
|
|
--with-jpeg=${LOCALBASE} --with-xshm-ext --with-xdbe-ext \
|
2002-01-21 05:23:07 +01:00
|
|
|
--with-hackdir=${PREFIX}/bin/xscreensaver-hacks/ \
|
2002-04-13 08:19:32 +02:00
|
|
|
--with-configdir=${PREFIX}/share/xscreensaver/config/ \
|
2007-12-11 21:03:07 +01:00
|
|
|
--with-dpms-ext --with-xinerama-ext --with-xf86vmode-ext \
|
|
|
|
--with-xf86gamma-ext --with-randr-ext --enable-locking
|
2002-08-05 12:14:40 +02:00
|
|
|
|
2014-06-13 20:25:07 +02:00
|
|
|
OPTIONS_DEFINE= KERBEROS PAM PTHREADS SETUID_HACKS FIREF XAOS1 XDALI XURTH \
|
|
|
|
XMOUN XPLAN XSNOW
|
|
|
|
PTHREADS_DESC= Use pthreads for SMP support
|
2013-01-18 13:50:24 +01:00
|
|
|
SETUID_HACKS_DESC= Install sonar hack suid so it can ping
|
|
|
|
FIREF_DESC= Add extra port x11/fireflies
|
|
|
|
XAOS1_DESC= Add extra port graphics/xaos
|
|
|
|
XDALI_DESC= Add extra port x11-clocks/xdaliclock
|
|
|
|
XURTH_DESC= Add extra port astro/xearth
|
|
|
|
XMOUN_DESC= Add extra port graphics/xmountains
|
|
|
|
XPLAN_DESC= Add extra port astro/xplanet
|
|
|
|
XSNOW_DESC= Add extra port x11/xsnow
|
|
|
|
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MKERBEROS}
|
2007-12-11 21:03:07 +01:00
|
|
|
CONFIGURE_ARGS+= --with-kerberos
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-kerberos
|
|
|
|
.endif
|
2013-01-18 13:50:24 +01:00
|
|
|
.if ${PORT_OPTIONS:MPAM}
|
2007-12-11 21:03:07 +01:00
|
|
|
CONFIGURE_ARGS+= --with-pam
|
|
|
|
PLIST_SUB+= PAM=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-pam
|
|
|
|
PLIST_SUB+= PAM="@comment not installed: "
|
|
|
|
.endif
|
2013-01-18 13:50:24 +01:00
|
|
|
.if ${PORT_OPTIONS:MSETUID_HACKS}
|
2003-09-08 01:50:12 +02:00
|
|
|
CONFIGURE_ARGS+= --with-setuid-hacks
|
|
|
|
.endif
|
2014-06-13 20:25:07 +02:00
|
|
|
.if ${PORT_OPTIONS:MPTHREADS}
|
|
|
|
CONFIGURE_ARGS+= --with-pthreads
|
|
|
|
.endif
|
2002-06-14 04:09:42 +02:00
|
|
|
|
2013-01-18 13:50:24 +01:00
|
|
|
.if ${PORT_OPTIONS:MFIREF}
|
2012-06-24 12:26:27 +02:00
|
|
|
RUN_DEPENDS+= ${LOCALBASE}/bin/xscreensaver-hacks/fireflies:${PORTSDIR}/x11/fireflies
|
2008-08-19 01:01:07 +02:00
|
|
|
.endif
|
2013-01-18 13:50:24 +01:00
|
|
|
.if ${PORT_OPTIONS:MXAOS1}
|
2008-08-19 01:01:07 +02:00
|
|
|
RUN_DEPENDS+= xaos:${PORTSDIR}/graphics/xaos
|
|
|
|
.endif
|
2013-01-18 13:50:24 +01:00
|
|
|
.if ${PORT_OPTIONS:MXDALI}
|
2008-08-19 01:01:07 +02:00
|
|
|
RUN_DEPENDS+= xdaliclock:${PORTSDIR}/x11-clocks/xdaliclock
|
|
|
|
.endif
|
2013-01-18 13:50:24 +01:00
|
|
|
.if ${PORT_OPTIONS:MXURTH}
|
2008-08-19 01:01:07 +02:00
|
|
|
RUN_DEPENDS+= xearth:${PORTSDIR}/astro/xearth
|
|
|
|
.endif
|
2013-01-18 13:50:24 +01:00
|
|
|
.if ${PORT_OPTIONS:MXMOUN}
|
2008-08-19 01:01:07 +02:00
|
|
|
RUN_DEPENDS+= xmountains:${PORTSDIR}/graphics/xmountains
|
|
|
|
.endif
|
2013-01-18 13:50:24 +01:00
|
|
|
.if ${PORT_OPTIONS:MXPLAN}
|
2008-08-19 01:01:07 +02:00
|
|
|
RUN_DEPENDS+= xplanet:${PORTSDIR}/astro/xplanet
|
|
|
|
.endif
|
2013-01-18 13:50:24 +01:00
|
|
|
.if ${PORT_OPTIONS:MXSNOW}
|
2008-08-19 01:01:07 +02:00
|
|
|
RUN_DEPENDS+= xsnow:${PORTSDIR}/x11/xsnow
|
|
|
|
.endif
|
|
|
|
|
2002-08-05 12:14:40 +02:00
|
|
|
.undef HAVE_GNOME
|
|
|
|
|
2012-07-29 10:01:59 +02:00
|
|
|
SUB_FILES= xscreensaver-blank.desktop xscreensaver-lock.desktop \
|
|
|
|
xscreensaver-start.desktop xscreensaver-stop.desktop
|
|
|
|
|
2001-03-03 02:49:13 +01:00
|
|
|
post-patch:
|
2013-09-02 14:05:58 +02:00
|
|
|
${REINPLACE_CMD} -e 's|/usr/X11R6|${LOCALBASE}|g' \
|
|
|
|
-e 's|pkg_config --list-all|pkg_config --help|' \
|
|
|
|
${WRKSRC}/configure.in
|
2013-01-18 13:50:24 +01:00
|
|
|
.if ${PORT_OPTIONS:MPAM}
|
2007-12-11 21:03:07 +01:00
|
|
|
.for f in driver/passwd-pam.c driver/xscreensaver.man
|
|
|
|
@ ${CP} ${WRKSRC}/${f} ${WRKSRC}/${f}.presed
|
|
|
|
@ ${SED} -e "s#/etc/pam.d#${PREFIX}/etc/pam.d#g" \
|
|
|
|
${WRKSRC}/${f}.presed > ${WRKSRC}/${f}
|
|
|
|
.endfor
|
2012-07-09 04:28:47 +02:00
|
|
|
@ ${CP} ${FILESDIR}/xscreensaver.pam \
|
|
|
|
${WRKSRC}/driver/xscreensaver.pam.in
|
2007-12-16 00:40:52 +01:00
|
|
|
.else
|
2007-12-16 09:22:11 +01:00
|
|
|
@ ${CP} ${WRKSRC}/driver/Makefile.in ${WRKSRC}/driver/Makefile.in.post
|
|
|
|
@ ${SED} -e "s#install-xml install-pam#install-xml#" \
|
2007-12-16 00:40:52 +01:00
|
|
|
${WRKSRC}/driver/Makefile.in.post > ${WRKSRC}/driver/Makefile.in
|
2007-12-11 21:03:07 +01:00
|
|
|
.endif
|
2001-03-03 02:49:13 +01:00
|
|
|
|
2002-08-05 12:14:40 +02:00
|
|
|
post-install:
|
2013-12-17 23:01:03 +01:00
|
|
|
${INSTALL_DATA} ${FILESDIR}/x*.xml ${STAGEDIR}${DATADIR}/config/
|
2006-10-14 10:54:54 +02:00
|
|
|
@(if test -x ${LOCALBASE}/bin/xscreensaver-hacks/webcollage-helper; then \
|
2002-08-05 12:14:40 +02:00
|
|
|
${ECHO} "bin/xscreensaver-hacks/webcollage-helper" | \
|
|
|
|
${CAT} - ${TMPPLIST} > ${TMPPLIST}.cat && \
|
|
|
|
${MV} ${TMPPLIST}.cat ${TMPPLIST}; fi)
|
2013-12-17 23:01:03 +01:00
|
|
|
${INSTALL_DATA} ${WRKDIR}/*.desktop ${STAGEDIR}${PREFIX}/share/applications/
|
2002-08-05 12:14:40 +02:00
|
|
|
|
2013-01-18 13:50:24 +01:00
|
|
|
.include <bsd.port.mk>
|