pkgsrc/games/nethack-x11/Makefile
joerg d26cf36e57 - fine grained X11 dependencies for packages which have either USE_IMAKE
or USE_X11BASE set, but don't include mk/x11.buildlink3.mk directly or
  via buildlink3.mks
- introduce BUILDLINK_PREFIX.libXpm as alias for BUILDLINK_PREFIX.xpm
  in the !modular case
- fix some cases where the check for libX11 couldn't work at all by using
  C++ for compilation without including the proper headers

Verified using a full X11_TYPE=xorg bulk build without additional
breakage. Discussed with salo@, wiz@ and send to packages@ for feedback.
2006-12-27 13:37:35 +00:00

34 lines
998 B
Makefile

# $NetBSD: Makefile,v 1.35 2006/12/27 13:37:36 joerg Exp $
#
.include "../../games/nethack-lib/Makefile.common"
PKGNAME= nethack-x11-${NETHACK_VERSION}
PKGREVISION= 2
COMMENT= The X11 version of NetHack
CATEGORIES+= x11
DEPENDS+= nethack-lib-${NETHACK_VERSION}nb1:../../games/nethack-lib
BUILD_TARGET= x11tiles nethack
INSTALL_TARGET= binfiles
MAKE_ENV+= GTYPE=-x11
FONTS_DIRS.x11+= ${PREFIX}/lib/X11/fonts/misc
INSTALLATION_DIRS= lib/X11/app-defaults lib/X11/fonts/misc
post-install:
@${INSTALL_DATA} ${WRKSRC}/dat/x11tiles ${PREFIX}/share/${NETHACK_DIR}
@${INSTALL_DATA} ${WRKSRC}/win/X11/NetHack.ad \
${PREFIX}/lib/X11/app-defaults/NetHack
@${INSTALL_DATA} ${WRKSRC}/win/X11/nh10.bdf ${PREFIX}/lib/X11/fonts/misc
@${INSTALL_DATA} ${WRKSRC}/win/X11/nethack.rc \
${PREFIX}/share/${NETHACK_DIR}/nethack.x11.rc
.include "../../x11/libXaw/buildlink3.mk"
.include "../../x11/libXpm/buildlink3.mk"
.include "../../x11/libXt/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"