openbsd-ports/games/gcompris/Makefile
2011-06-08 17:31:05 +00:00

89 lines
2.3 KiB
Makefile

# $OpenBSD: Makefile,v 1.39 2011/06/08 17:35:05 jasper Exp $
SHARED_ONLY= Yes
COMMENT= educational game for children
DISTNAME= gcompris-9.5
REVISION= 1
CATEGORIES= games education
HOMEPAGE= http://gcompris.net/
MAINTAINER= Antoine Jacoutot <ajacoutot@openbsd.org>
# GPLv3
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB += X11 Xau Xcomposite Xcursor Xdamage Xdmcp Xext Xfixes
WANTLIB += Xi Xinerama Xrandr Xrender c expat fontconfig freetype
WANTLIB += gio-2.0 glib-2.0 gmodule-2.0 gobject-2.0 gthread-2.0
WANTLIB += m pcre pixman-1 pthread pthread-stubs util xcb xcb-render
WANTLIB += xml2 z atk-1.0 cairo croco-0.6 gdk-x11-2.0
WANTLIB += gdk_pixbuf-2.0 gtk-x11-2.0 pango-1.0
WANTLIB += pangocairo-1.0 pangoft2-1.0 png rsvg-2 gnet-2.0 sqlite3
WANTLIB += gstreamer-0.10 GL Xxf86vm drm xcb-shm ${MODPY_WANTLIB}
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=gcompris/}
MODULES= devel/gettext \
lang/python \
textproc/intltool
BUILD_DEPENDS= textproc/texi2html \
x11/py-gtk2 \
games/gnuchess \
archivers/gtar
LIB_DEPENDS= ${MODPY_LIB_DEPENDS} \
net/gnet \
databases/sqlite3 \
gstreamer->=0.10,<0.11:multimedia/gstreamer-0.10/core \
x11/gnome/librsvg \
x11/gtk+2
RUN_DEPENDS= games/gnuchess \
databases/py-sqlite2 \
x11/py-gtk2 \
games/tuxpaint \
cad/gnucap \
devel/desktop-file-utils \
multimedia/gstreamer-0.10/plugins-base
USE_LIBTOOL= Yes
USE_GMAKE= Yes
USE_GROFF = Yes
LIBTOOL_FLAGS= --tag=disable-static
CONFIGURE_STYLE=gnu
CONFIGURE_ENV= CPPFLAGS="-I${X11BASE}/include -I${LOCALBASE}/include" \
LDFLAGS="-L${X11BASE}/lib -L${LOCALBASE}/lib -pthread" \
ac_cv_path_TETEX=no
CONFIGURE_ARGS= ${CONFIGURE_SHARED} \
--disable-static \
--disable-nsbundle \
--disable-sdlmixer \
--disable-dbus \
--disable-sugar \
--localstatedir=/var \
--enable-sqlite \
--enable-gnet \
--enable-py-build-only \
--with-python=${MODPY_BIN}
# don't install under share/gnome/help/, there is no yelp (xml) file
FAKE_FLAGS= gcompris_helpdir=${PREFIX}/share/doc/gcompris/html
pre-configure:
${SUBST_CMD} ${WRKSRC}/src/chess_computer-activity/chess.c \
${WRKSRC}/src/electric-activity/electric.py
post-install:
find ${PREFIX}/share/gcompris -type f -perm 755 -exec chmod 644 {} \;
chown -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/share/gcompris
.include <bsd.port.mk>