Makefile 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. # $OpenBSD: Makefile,v 1.65 2016/09/23 09:16:54 sthen Exp $
  2. COMMENT= educational game for children
  3. DISTNAME= gcompris-15.10
  4. EXTRACT_SUFX= .tar.bz2
  5. REVISION= 0
  6. CATEGORIES= games education
  7. HOMEPAGE= http://gcompris.net/
  8. MAINTAINER= Antoine Jacoutot <ajacoutot@openbsd.org>
  9. # GPLv3
  10. # SIL Open Font License (OFL)
  11. PERMIT_PACKAGE_CDROM= Yes
  12. WANTLIB += X11 Xcomposite Xcursor Xdamage Xext Xfixes Xi Xinerama
  13. WANTLIB += Xrandr Xrender atk-1.0 c cairo croco-0.6 expat ffi
  14. WANTLIB += fontconfig freetype gdk-x11-2.0 gdk_pixbuf-2.0 gio-2.0
  15. WANTLIB += glib-2.0 gmodule-2.0 gobject-2.0 graphite2 gstreamer-0.10
  16. WANTLIB += gthread-2.0 gtk-x11-2.0 harfbuzz m pango-1.0 pangocairo-1.0
  17. WANTLIB += pangoft2-1.0 pcre pixman-1 png pthread pthread-stubs
  18. WANTLIB += rsvg-2 sqlite3 util xcb xcb-render xcb-shm xml2 z lzma
  19. WANTLIB += ${MODPY_WANTLIB}
  20. MASTER_SITES= http://gcompris.net/download/
  21. MODULES= devel/gettext \
  22. lang/python \
  23. textproc/intltool
  24. BUILD_DEPENDS= textproc/texi2html \
  25. x11/py-gtk2 \
  26. games/gnuchess \
  27. archivers/gtar
  28. LIB_DEPENDS= ${MODPY_LIB_DEPENDS} \
  29. databases/sqlite3 \
  30. gstreamer->=0.10,<0.11:multimedia/gstreamer-0.10/core \
  31. x11/gnome/librsvg \
  32. x11/gtk+2
  33. RUN_DEPENDS= games/gnuchess \
  34. databases/py-sqlite \
  35. x11/py-gtk2 \
  36. games/tuxpaint \
  37. cad/gnucap \
  38. devel/desktop-file-utils \
  39. multimedia/gstreamer-0.10/plugins-base
  40. USE_GMAKE= Yes
  41. CONFIGURE_STYLE=gnu
  42. CONFIGURE_ENV= CPPFLAGS="-I${X11BASE}/include -I${LOCALBASE}/include" \
  43. LDFLAGS="-L${X11BASE}/lib -L${LOCALBASE}/lib"
  44. CONFIGURE_ARGS= --enable-py-build-only \
  45. --with-python=${MODPY_BIN}
  46. # don't install under share/gnome/help/, there is no yelp (xml) file
  47. FAKE_FLAGS= gcompris_helpdir=${PREFIX}/share/doc/gcompris/html
  48. pre-configure:
  49. ${SUBST_CMD} ${WRKSRC}/src/chess_computer-activity/chess.c \
  50. ${WRKSRC}/src/electric-activity/electric.py
  51. post-install:
  52. rm ${PREFIX}/lib/gcompris/*.{a,la}
  53. find ${PREFIX}/share/gcompris -type f -perm 755 -exec chmod 644 {} \;
  54. chown -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/share/gcompris
  55. .include <bsd.port.mk>