Makefile 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. # $OpenBSD: Makefile,v 1.28 2017/05/08 12:53:28 schwarze Exp $
  2. COMMENT = NetHack derivative
  3. VERSION = 1.9.3
  4. DISTNAME = nethack_source_331_jtp_${VERSION:S/.//g}
  5. PKGNAME = falconseye-${VERSION}
  6. REVISION = 7
  7. CATEGORIES = games x11
  8. EXTRACT_SUFX = .zip
  9. HOMEPAGE = http://falconseye.sourceforge.net/
  10. MAINTAINER = Marc Espie <espie@openbsd.org>
  11. PERMIT_PACKAGE_CDROM= Yes
  12. WANTLIB = X11 Xext c curses m pthread pthread-stubs usbhid xcb SDL
  13. MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=falconseye/}
  14. LIB_DEPENDS = devel/sdl
  15. RUN_DEPENDS = games/hackdata
  16. FAKE_FLAGS = PREFIX="${PREFIX}"
  17. GAMEDIR = lib/falconseyedir
  18. NHDIR = ${PREFIX}/${GAMEDIR}
  19. MAKE_ENV = NHDIR="${NHDIR}" NETHACKCONFIG="${NETHACKCONFIG}"
  20. SUBST_VARS = GAMEDIR
  21. WRKDIST = ${WRKDIR}
  22. NETHACKCONFIG = ${FILESDIR}/x-config
  23. MAKE_ENV += CFLAGS="${CFLAGS} -I${X11BASE}/include -I${LOCALBASE}/include -L${X11BASE}/lib -L${LOCALBASE}/lib"
  24. NO_TEST = Yes
  25. do-configure:
  26. @cd ${WRKSRC}/sys/unix && /bin/sh setup.sh symlinks
  27. post-build:
  28. @cd ${WRKSRC}/util && ${MAKE_ENV} ${MAKE_PROGRAM} recover
  29. @cd ${WRKSRC}/util && ln -f recover frecover
  30. @cd ${WRKSRC}/doc && perl -p ${FILESDIR}/substitute <nethack.6 >falconseye.6
  31. @cd ${WRKSRC}/doc && perl -p ${FILESDIR}/substitute <recover.6 >frecover.6
  32. post-install:
  33. ${INSTALL_PROGRAM} ${WRKBUILD}/util/recover ${PREFIX}/bin/frecover
  34. @cd ${WRKSRC}/doc && \
  35. ${INSTALL_MAN} recover.6 ${PREFIX}/man/man6/frecover.6
  36. @cd ${WRKSRC}/doc && \
  37. ${INSTALL_MAN} nethack.6 ${PREFIX}/man/man6/falconseye.6
  38. .include <bsd.port.mk>