diff options
Diffstat (limited to 'x11')
-rw-r--r-- | x11/gnome-applets/Makefile | 30 |
1 files changed, 27 insertions, 3 deletions
diff --git a/x11/gnome-applets/Makefile b/x11/gnome-applets/Makefile index d1d753933..9666c031d 100644 --- a/x11/gnome-applets/Makefile +++ b/x11/gnome-applets/Makefile @@ -3,12 +3,12 @@ # Whom: Joe Marcus Clarke <marcus@FreeBSD.org> # # $FreeBSD$ -# $MCom: ports/x11/gnome-applets/Makefile,v 1.119 2006/06/24 06:52:46 marcus Exp $ +# $MCom: ports/x11/gnome-applets/Makefile,v 1.120 2006/06/25 06:03:42 marcus Exp $ # PORTNAME= gnome-applets PORTVERSION= 2.15.1.1 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= x11 gnome MASTER_SITES= ${MASTER_SITE_GNOME} MASTER_SITE_SUBDIR= sources/${PORTNAME}/${PORTVERSION:C/^([0-9]+\.[0-9]+).*/\1/} @@ -58,7 +58,7 @@ WITH_GNOME= yes .include <bsd.port.pre.mk> .if exists(${LOCALBASE}/libdata/pkgconfig/libnotify.pc) || \ - defined(WITH_LIBNOTIFY) + !defined(WITHOUT_LIBNOTIFY) LIB_DEPENDS+= notify:${PORTSDIR}/devel/libnotify .endif @@ -94,10 +94,34 @@ PLIST_SUB+= PYTHON="" PLIST_SUB+= PYTHON="@comment " .endif +.if defined(USE_PYTHON) && !defined(DISPLAY) +BUILD_DEPENDS+= Xvfb:${X_VFBSERVER_PORT} \ + ${X11BASE}/lib/X11/fonts/misc/8x13O.pcf.gz:${X_FONTS_MISC_PORT} +.if !defined(PACKAGE_BUILDING) +CONFIGURE_ENV+= DISPLAY="localhost:1001" +.endif +.endif + post-patch: @${REINPLACE_CMD} -e 's|malloc.h|stdlib.h|g' \ ${WRKSRC}/libgweather/weather-met.c @${REINPLACE_CMD} -e 's|system-tools-backends|system-tools-backends-2.0|g' \ ${WRKSRC}/configure +.if defined(USE_PYTHON) && !defined(DISPLAY) +pre-configure: + @if [ -f ${WRKDIR}/.Xvfb.pid ]; then \ + ${CAT} ${WRKDIR}/.Xvfb.pid | ${XARGS} kill || ${TRUE} ; \ + ${RM} -f ${WRKDIR}/.Xvfb.pid ; \ + fi + ${X11BASE}/bin/Xvfb :1001 -screen 0 800x600x24 > /dev/null 2>&1 & ${ECHO} $$! > ${WRKDIR}/.Xvfb.pid + @sleep 5 + +post-configure: + @if [ -f ${WRKDIR}/.Xvfb.pid ]; then \ + ${CAT} ${WRKDIR}/.Xvfb.pid | ${XARGS} kill || ${TRUE} ; \ + ${RM} -f ${WRKDIR}/.Xvfb.pid ; \ + fi +.endif + .include <bsd.port.post.mk> |