summaryrefslogtreecommitdiffstats
path: root/games/gcompris/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'games/gcompris/Makefile')
-rw-r--r--games/gcompris/Makefile76
1 files changed, 76 insertions, 0 deletions
diff --git a/games/gcompris/Makefile b/games/gcompris/Makefile
new file mode 100644
index 000000000..339637993
--- /dev/null
+++ b/games/gcompris/Makefile
@@ -0,0 +1,76 @@
+# New ports collection makefile for: gcompris2
+# Date created: 23 April 2003
+# Whom: Martin Klaffenboeck <martin.klaffenboeck@gmx.at>
+#
+# $FreeBSD: ports/games/gcompris/Makefile,v 1.37 2007/07/02 06:19:35 marcus Exp $
+#
+
+PORTNAME= gcompris
+DISTVERSION= 8.3.2-2
+PORTREVISION= 1
+CATEGORIES= games gnome
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= gcompris
+
+MAINTAINER= gnome@FreeBSD.org
+COMMENT= Gnome2 educational games and activities for kids ages 2 to 10
+
+BUILD_DEPENDS= texi2html:${PORTSDIR}/textproc/texi2html \
+ gnuchess:${PORTSDIR}/games/gnuchess \
+ ${PYTHON_SITELIBDIR}/pysqlite2/__init__.py:${PORTSDIR}/databases/py-pysqlite20
+LIB_DEPENDS= vorbis.3:${PORTSDIR}/audio/libvorbis \
+ ao.3:${PORTSDIR}/audio/libao \
+ assetml.0:${PORTSDIR}/devel/libassetml \
+ sqlite3.8:${PORTSDIR}/databases/sqlite3
+RUN_DEPENDS= gnuchess:${PORTSDIR}/games/gnuchess \
+ ${PYTHON_SITELIBDIR}/pysqlite2/__init__.py:${PORTSDIR}/databases/py-pysqlite20
+
+WRKSRC= ${WRKDIR}/${PORTNAME}-8.3.2
+USE_X_PREFIX= yes
+USE_GMAKE= yes
+USE_GETTEXT= yes
+GNU_CONFIGURE= yes
+USE_PYTHON= yes
+USE_SDL= mixer
+USE_GNOME= gnomehack intlhack gnomeprefix libgnomeui pygnome2
+CONFIGURE_ARGS= --infodir=${PREFIX}/info
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
+ LDFLAGS="-L${LOCALBASE}/lib" \
+ LIBS="${PTHREAD_LIBS} -lm"
+
+MAN6= gcompris.6
+INFO= gcompris
+
+.include <bsd.port.pre.mk>
+
+.if !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|echo aout|echo elf|g' \
+ ${WRKSRC}/configure
+ @${FIND} ${WRKSRC} -name Makefile.in | ${XARGS} ${REINPLACE_CMD} -e \
+ 's|-DGNOME_DISABLE_DEPRECATED||g'
+
+.if !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>