aboutsummaryrefslogtreecommitdiff
path: root/accessibility/accerciser/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'accessibility/accerciser/Makefile')
-rw-r--r--accessibility/accerciser/Makefile22
1 files changed, 19 insertions, 3 deletions
diff --git a/accessibility/accerciser/Makefile b/accessibility/accerciser/Makefile
index fcbd288d2337..7ad0af553276 100644
--- a/accessibility/accerciser/Makefile
+++ b/accessibility/accerciser/Makefile
@@ -3,12 +3,11 @@
# Whom: Michael Johnson <ahze@FreeBSD.org>
#
# $FreeBSD$
-# $MCom: ports/accessibility/accerciser/Makefile,v 1.13 2008/03/10 21:21:07 mezz Exp $
+# $MCom: ports/accessibility/accerciser/Makefile,v 1.23 2008/09/23 05:14:40 marcus Exp $
#
PORTNAME= accerciser
-PORTVERSION= 1.2.0
-PORTREVISION= 2
+PORTVERSION= 1.4.0
CATEGORIES= accessibility gnome
MASTER_SITES= GNOME
DIST_SUBDIR= gnome2
@@ -24,10 +23,27 @@ USE_GETTEXT= yes
INSTALLS_OMF= yes
INSTALLS_ICONS= yes
GNU_CONFIGURE= yes
+USE_DISPLAY= yes
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
GCONF_SCHEMAS= accerciser.schemas
MAN1= accerciser.1
+.if !defined(DISPLAY)
+pre-configure:
+ @if [ -f ${WRKDIR}/.Xvfb.pid ]; then \
+ ${CAT} ${WRKDIR}/.Xvfb.pid | ${XARGS} kill || ${TRUE} ; \
+ ${RM} -f ${WRKDIR}/.Xvfb.pid ; \
+ fi
+ @${LOCALBASE}/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.mk>