# $NetBSD: Makefile,v 1.37 2008/09/25 14:02:09 wiz Exp $ # DISTNAME= nighthawk-2.1 PKGREVISION= 4 CATEGORIES= x11 games MASTER_SITES= ${MASTER_SITE_BACKUP} EXTRACT_SUFX= .tgz PATCH_SITES= ${MASTER_SITES} PATCHFILES= nighthawk-2.1a.patch PATCH_DIST_STRIP= -p1 MAINTAINER= pkgsrc-users@NetBSD.org HOMEPAGE= http://jsno.arafuraconnect.com.au/proj_linux/nighthawk.html COMMENT= C64 Paradroid clone PKG_DESTDIR_SUPPORT= user-destdir WRKSRC= ${WRKDIR}/nighthawk USE_TOOLS+= gmake pax USE_LANGUAGES= c c++ MAKE_ENV+= OSTYPE=${OPSYS:Q} CPPFLAGS+= -DPREFIX="\"${PREFIX}\"" \ -DDEVOSSAUDIO="\"${DEVOSSAUDIO}\"" \ -DVARBASE="\"${VARBASE}\"" SETGIDGAME= yes CONF_FILES_PERMS= /dev/null ${VARBASE}/games/nighthawk.scores \ ${GAMES_USER} ${GAMES_GROUP} ${GAMEDATAMODE} SPECIAL_PERMS= bin/nighthawk ${SETGID_GAMES_PERMS} INSTALLATION_DIRS= bin MAKE_DIRS= ${VARBASE}/games .include "../../x11/libXpm/buildlink3.mk" .include "../../mk/oss.buildlink3.mk" post-build: cd ${WRKSRC}/src_sound && \ ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} nighthawk_sound do-install: ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/nighthawk ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/nighthawk ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/nighthawk/data cd ${WRKSRC}/data && pax -rw . ${DESTDIR}${PREFIX}/share/nighthawk/data ${FIND} ${DESTDIR}${PREFIX}/share/nighthawk -type f -print | ${XARGS} ${CHMOD} ${SHAREMODE} ${FIND} ${DESTDIR}${PREFIX}/share/nighthawk -type d -print | ${XARGS} ${CHMOD} ${PKGDIRMODE} ${INSTALL_PROGRAM} ${WRKSRC}/src/nighthawk ${DESTDIR}${PREFIX}/bin ${INSTALL_PROGRAM} ${WRKSRC}/src_sound/nighthawk_sound ${DESTDIR}${PREFIX}/bin ${INSTALL_MAN} ${WRKSRC}/INSTALL ${DESTDIR}${PREFIX}/share/doc/nighthawk/README .include "../../mk/bsd.pkg.mk"