Makefile 1016 B

123456789101112131415161718192021222324252627282930313233343536
  1. # $OpenBSD: Makefile,v 1.6 2017/04/10 11:46:19 sthen Exp $
  2. COMMENT = arcade-puzzle game
  3. V = 0.3.2
  4. DISTNAME = jag-${V}
  5. CATEGORIES = games
  6. HOMEPAGE = http://jag.xlabsoft.com
  7. REVISION = 0
  8. # GPLv3
  9. PERMIT_PACKAGE_CDROM = Yes
  10. WANTLIB += GL ICE QtGui QtOpenGL QtXml SDL SDL_mixer SM X11 Xext
  11. WANTLIB += Xi Xinerama Xrandr Xrender c fontconfig freetype m
  12. WANTLIB += pthread ${LIBCXX}
  13. MASTER_SITES = http://jag.xlabsoft.com/files/
  14. DISTFILES = jag-${V}-src.zip jag-${V}-data.zip
  15. MODULES = devel/qmake x11/qt4
  16. BUILD_DEPENDS = archivers/unzip
  17. LIB_DEPENDS = devel/sdl \
  18. devel/sdl-mixer
  19. WRKDIST = ${WRKDIR}/jag-${V}-src
  20. pre-configure:
  21. @${SUBST_CMD} ${WRKSRC}/Game.pro ${WRKSRC}/main.cpp
  22. post-install:
  23. ${INSTALL_DATA_DIR} ${PREFIX}/share/jag
  24. cd ${WRKDIR}/jag-${V}-data/data && pax -rw . ${PREFIX}/share/jag
  25. chown -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/share/
  26. find ${PREFIX}/share -type d -exec chmod ${DIRMODE} {} \;
  27. find ${PREFIX}/share -type f -exec chmod ${SHAREMODE} {} \;
  28. .include <bsd.port.mk>