Makefile 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. # $OpenBSD: Makefile,v 1.16 2015/03/31 09:44:48 ajacoutot Exp $
  2. COMMENT = common data for the nethack/slash ports
  3. V = 3.4.3
  4. DISTNAME = nethack-$V
  5. PKGNAME = hackdata-$V
  6. CATEGORIES = games
  7. REVISION = 0
  8. MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=nethack/} \
  9. ftp://ftp.nethack.org/pub/nethack/nh${V:S/.//g}/src/ \
  10. ftp://ftp.uu.net/pub/games/nethack/sources/ \
  11. ${MASTER_SITE_GNU:=nethack/}
  12. DISTFILES = nethack-${V:S/.//g}-src.tgz
  13. MAINTAINER = Marc Espie <espie@openbsd.org>
  14. # GPL
  15. PERMIT_PACKAGE_CDROM = Yes
  16. EXTRACT_ONLY =
  17. post-extract:
  18. @cd ${WRKDIR} && ${TAR} zxqf ${FULLDISTDIR}/${DISTFILES} \
  19. nethack-$V/win/X11/ibm.bdf \
  20. nethack-$V/win/X11/nh10.bdf \
  21. nethack-$V/doc/Guidebook.txt
  22. do-build:
  23. cd ${WRKSRC}/win/X11 && \
  24. ${X11BASE}/bin/bdftopcf ibm.bdf | /usr/bin/gzip > ibm.pcf.gz && \
  25. ${X11BASE}/bin/bdftopcf nh10.bdf | /usr/bin/gzip > nh10.pcf.gz
  26. NO_TEST= Yes
  27. do-install:
  28. @${INSTALL_DATA_DIR} ${PREFIX}/share/doc/nethack
  29. @${INSTALL_DATA_DIR} ${PREFIX}/share/fonts/hack
  30. ${INSTALL_DATA} ${WRKSRC}/doc/Guidebook.txt ${PREFIX}/share/doc/nethack
  31. ${INSTALL_DATA} ${WRKSRC}/win/X11/ibm.pcf.gz ${PREFIX}/share/fonts/hack
  32. ${INSTALL_DATA} ${WRKSRC}/win/X11/nh10.pcf.gz ${PREFIX}/share/fonts/hack
  33. .include <bsd.port.mk>