Makefile 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. # $OpenBSD: Makefile,v 1.7 2017/04/10 11:45:28 sthen Exp $
  2. COMMENT= dungeon crawl
  3. CATEGORIES= games
  4. HOMEPAGE= http://www.dungeoncrawl.org/
  5. MASTER_SITES= ftp://ftp.dungeoncrawl.org/dev/4.0.x/src/
  6. DISTNAME= dc400b26-src
  7. EXTRACT_SUFX= .tbz2
  8. V= 4.0.0b26
  9. PKGNAME= dungeon-crawl-$V
  10. REVISION= 0
  11. BUILD_DEPENDS+= archivers/bzip2
  12. EXTRACT_CASES+= *.tbz2) ${BZIP2} -dc ${FULLDISTDIR}/$$archive | ${TAR} xf -;;
  13. WRKSRC= ${WRKDIST}/source
  14. MAKE_FILE=${WRKSRC}/makefile.bsd
  15. MAKE_FLAGS=EXTRA_FLAGS='${CXXFLAGS} -DSAVE_DIR_PATH=\"${TRUEPREFIX}/lib/dungeon-crawl-$V/\"' CXX='${CXX}' LDFLAGS=
  16. ALL_TARGET=debug
  17. WANTLIB= c m ${LIBCXX} ncurses
  18. # Almost nethack... http://www.dungeoncrawl.org/?d.l
  19. PERMIT_PACKAGE_FTP=Yes
  20. PERMIT_PACKAGE_CDROM=No gain
  21. DOCDIR=${PREFIX}/share/doc/dungeon-crawl-$V
  22. do-install:
  23. ${INSTALL_PROGRAM} ${WRKBUILD}/crawl ${PREFIX}/bin/dungeon-crawl-$V
  24. chgrp games ${PREFIX}/bin/dungeon-crawl-$V
  25. chmod g+s ${PREFIX}/bin/dungeon-crawl-$V
  26. ${INSTALL_DATA_DIR} ${PREFIX}/lib/dungeon-crawl-$V
  27. chgrp games ${PREFIX}/lib/dungeon-crawl-$V
  28. chmod g+w ${PREFIX}/lib/dungeon-crawl-$V
  29. ${INSTALL_MAN} ${WRKDIST}/docs/crawl.6 ${PREFIX}/man/man6/dungeon-crawl-$V.6
  30. ${INSTALL_DATA_DIR} ${DOCDIR}
  31. ${INSTALL_DATA} ${WRKDIST}/licence.txt ${DOCDIR}
  32. ${INSTALL_DATA} ${WRKDIST}/init.txt ${DOCDIR}
  33. ${INSTALL_DATA} ${WRKDIST}/macro.txt ${DOCDIR}
  34. ${INSTALL_DATA} ${WRKDIST}/docs/buglist.txt ${DOCDIR}
  35. ${INSTALL_DATA} ${WRKDIST}/docs/changes* ${DOCDIR}
  36. ${INSTALL_DATA} ${WRKDIST}/docs/crawl.txt ${DOCDIR}
  37. ${INSTALL_DATA} ${WRKDIST}/docs/todo.txt ${DOCDIR}
  38. ${INSTALL_DATA} ${WRKDIST}/docs/versions.txt ${DOCDIR}
  39. ${INSTALL_DATA} ${WRKDIST}/readme.txt ${DOCDIR}/quickstart
  40. NO_TEST=Yes
  41. SUBST_VARS=V
  42. .include <bsd.port.mk>