d26cf36e57
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.
41 lines
1.4 KiB
Makefile
41 lines
1.4 KiB
Makefile
# $NetBSD: Makefile,v 1.20 2006/12/27 13:37:37 joerg Exp $
|
|
#
|
|
|
|
DISTNAME= xscrabble-1.0
|
|
PKGREVISION= 4
|
|
CATEGORIES= games x11
|
|
MASTER_SITES= ${MASTER_SITE_LOCAL}
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
COMMENT= X version of the popular board game, for 1 to 4 players
|
|
|
|
WRKSRC= ${WRKDIR}/xscrabble
|
|
USE_IMAKE= YES
|
|
|
|
INSTALLATION_DIRS= bin lib/X11/app-defaults
|
|
|
|
SUBST_CLASSES+= xscrabble
|
|
SUBST_FILES.xscrabble= XScrabble.ad
|
|
SUBST_STAGE.xscrabble= pre-configure
|
|
SUBST_SED.xscrabble= -e 's,/usr/local/lib/xscrabble\.scores,${VARBASE}/games/xscrabble.scores,g'
|
|
SUBST_SED.xscrabble+= -e 's,/usr/local/lib,${PREFIX}/share/games/xscrabble,g'
|
|
|
|
MAKE_DIRS= ${VARBASE}/games
|
|
EGDIR= ${PREFIX}/share/games/xscrabble
|
|
CONF_FILES_PERMS= ${EGDIR}/xscrabble.scores.dist ${VARBASE}/games/xscrabble.scores ${GAMEOWN} ${GAMEGRP} ${GAMEDATAMODE}
|
|
SETGIDGAME= yes
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/src/xscrabble ${PREFIX}/bin
|
|
${INSTALL_GAME} ${WRKSRC}/src/xscrab ${PREFIX}/bin
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/games
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/games/xscrabble
|
|
${INSTALL_DATA} ${WRKSRC}/OSPD3.gz ${EGDIR}/
|
|
${INSTALL_DATA} ${WRKSRC}/scrabble_permutations ${EGDIR}/
|
|
${INSTALL_DATA} ${WRKSRC}/xscrabble.scores ${EGDIR}/xscrabble.scores.dist
|
|
${INSTALL_DATA} ${WRKSRC}/XScrabble.ad ${PREFIX}/lib/X11/app-defaults/XScrabble
|
|
|
|
.include "../../x11/libXaw/buildlink3.mk"
|
|
.include "../../x11/libXpm/buildlink3.mk"
|
|
.include "../../x11/libXp/buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|