mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-03 01:23:49 +00:00
39fc32e828
a zeising, kwm production, with help from dumbbell, bdrewery: NEW XORG ON FREEBSD 9-STABLE AND 10-STABLE This update switches over to use the new xorg stack by default on FreeBSD 9 and 10 stable, on osversions where vt(9) is available. It is still possible to use the old stack by specifying WITHOUT_NEW_XORG in /etc/make.conf . FreeBSD 8-STABLE and released versions of FreeBSD still use the old version. A package repository with binary packages for new xorg will be available soon. This patch also contains updates of libxcb and related ports, pixman, as well as some drivers and utilities. Bump portrevisions for xf86-* ports, as well as virtualbox-ose-additions due to xserver version change. Apart from these updates, the way shared libraries are handled has been changed for all xorg ports, as well as libxml2 and freetype, which means ltverhack is gone and as a consequence shared libraries have been bumped. The plan is that this change will make library bumps less likely in the future. All affected ports have had their portrevisions bumped as a consequence of this. Fix some issues where WITH_NEW_XORG weren't detected properly on CURRENT. Update instructions, hardware support, and more notes can be found on https://wiki.freebsd.org/Graphics Thanks to: all testers, bdrewery and the FreeBSD x11@ team exp-run by: bdrewery [1] PR: ports/187602 [1] Approved by: portmgr (bdrewery), core (jhb)
122 lines
3.8 KiB
Makefile
122 lines
3.8 KiB
Makefile
# Created by: dom@myrddin.demon.co.uk
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= xscreensaver
|
|
PORTVERSION= 5.26
|
|
PORTREVISION= 1
|
|
CATEGORIES= x11
|
|
MASTER_SITES= http://www.jwz.org/xscreensaver/
|
|
|
|
MAINTAINER= zeising@FreeBSD.org
|
|
COMMENT= Save your screen while you entertain your cat
|
|
|
|
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
|
|
|
|
RUN_DEPENDS= p5-libwww>0:${PORTSDIR}/www/p5-libwww \
|
|
giftopnm:${PORTSDIR}/graphics/netpbm
|
|
|
|
DESTDIRNAME= install_prefix
|
|
|
|
CONFLICTS= xscreensaver-gnome-[0-9]* xscreensaver-gnome-hacks-[0-9]*
|
|
|
|
USES= pkgconfig gettext gmake
|
|
USE_XORG= xpm xext xxf86misc
|
|
USE_GL= yes
|
|
GNU_CONFIGURE= yes
|
|
USE_AUTOTOOLS= autoconf
|
|
CONFIGURE_ENV+= "CPPFLAGS= -I ${LOCALBASE}/include" "LDFLAGS= -L ${LOCALBASE}/lib"
|
|
CONFIGURE_ARGS= --with-gtk --with-gl --with-gle --with-pixbuf --with-xpm \
|
|
--with-jpeg=${LOCALBASE} --with-xshm-ext --with-xdbe-ext \
|
|
--with-hackdir=${PREFIX}/bin/xscreensaver-hacks/ \
|
|
--with-configdir=${PREFIX}/share/xscreensaver/config/ \
|
|
--with-dpms-ext --with-xinerama-ext --with-xf86vmode-ext \
|
|
--with-xf86gamma-ext --with-randr-ext --enable-locking
|
|
|
|
OPTIONS_DEFINE= KERBEROS PAM SETUID_HACKS FIREF XAOS1 XDALI XURTH XMOUN XPLAN \
|
|
XSNOW
|
|
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}
|
|
CONFIGURE_ARGS+= --with-kerberos
|
|
.else
|
|
CONFIGURE_ARGS+= --without-kerberos
|
|
.endif
|
|
.if ${PORT_OPTIONS:MPAM}
|
|
CONFIGURE_ARGS+= --with-pam
|
|
PLIST_SUB+= PAM=""
|
|
.else
|
|
CONFIGURE_ARGS+= --without-pam
|
|
PLIST_SUB+= PAM="@comment not installed: "
|
|
.endif
|
|
.if ${PORT_OPTIONS:MSETUID_HACKS}
|
|
CONFIGURE_ARGS+= --with-setuid-hacks
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MFIREF}
|
|
RUN_DEPENDS+= ${LOCALBASE}/bin/xscreensaver-hacks/fireflies:${PORTSDIR}/x11/fireflies
|
|
.endif
|
|
.if ${PORT_OPTIONS:MXAOS1}
|
|
RUN_DEPENDS+= xaos:${PORTSDIR}/graphics/xaos
|
|
.endif
|
|
.if ${PORT_OPTIONS:MXDALI}
|
|
RUN_DEPENDS+= xdaliclock:${PORTSDIR}/x11-clocks/xdaliclock
|
|
.endif
|
|
.if ${PORT_OPTIONS:MXURTH}
|
|
RUN_DEPENDS+= xearth:${PORTSDIR}/astro/xearth
|
|
.endif
|
|
.if ${PORT_OPTIONS:MXMOUN}
|
|
RUN_DEPENDS+= xmountains:${PORTSDIR}/graphics/xmountains
|
|
.endif
|
|
.if ${PORT_OPTIONS:MXPLAN}
|
|
RUN_DEPENDS+= xplanet:${PORTSDIR}/astro/xplanet
|
|
.endif
|
|
.if ${PORT_OPTIONS:MXSNOW}
|
|
RUN_DEPENDS+= xsnow:${PORTSDIR}/x11/xsnow
|
|
.endif
|
|
|
|
.undef HAVE_GNOME
|
|
|
|
SUB_FILES= xscreensaver-blank.desktop xscreensaver-lock.desktop \
|
|
xscreensaver-start.desktop xscreensaver-stop.desktop
|
|
|
|
post-patch:
|
|
${REINPLACE_CMD} -e 's|/usr/X11R6|${LOCALBASE}|g' \
|
|
-e 's|pkg_config --list-all|pkg_config --help|' \
|
|
${WRKSRC}/configure.in
|
|
.if ${PORT_OPTIONS:MPAM}
|
|
.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
|
|
@ ${CP} ${FILESDIR}/xscreensaver.pam \
|
|
${WRKSRC}/driver/xscreensaver.pam.in
|
|
.else
|
|
@ ${CP} ${WRKSRC}/driver/Makefile.in ${WRKSRC}/driver/Makefile.in.post
|
|
@ ${SED} -e "s#install-xml install-pam#install-xml#" \
|
|
${WRKSRC}/driver/Makefile.in.post > ${WRKSRC}/driver/Makefile.in
|
|
.endif
|
|
|
|
post-install:
|
|
${INSTALL_DATA} ${FILESDIR}/x*.xml ${STAGEDIR}${DATADIR}/config/
|
|
@(if test -x ${LOCALBASE}/bin/xscreensaver-hacks/webcollage-helper; then \
|
|
${ECHO} "bin/xscreensaver-hacks/webcollage-helper" | \
|
|
${CAT} - ${TMPPLIST} > ${TMPPLIST}.cat && \
|
|
${MV} ${TMPPLIST}.cat ${TMPPLIST}; fi)
|
|
${INSTALL_DATA} ${WRKDIR}/*.desktop ${STAGEDIR}${PREFIX}/share/applications/
|
|
|
|
.include <bsd.port.mk>
|