pkgsrc/games/nighthawk/Makefile

52 lines
1.7 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.28 2005/06/16 06:57:55 jlam Exp $
1999-02-07 03:06:18 +01:00
#
DISTNAME= nighthawk-2.1
PKGREVISION= 1
CATEGORIES= x11 games
MASTER_SITES= ${MASTER_SITE_BACKUP}
EXTRACT_SUFX= .tgz
PATCH_SITES= ${MASTER_SITES}
PATCHFILES= nighthawk-2.1a.patch
PATCH_DIST_STRIP= -p1
1999-02-07 03:06:18 +01:00
2005-02-21 21:26:08 +01:00
MAINTAINER= tech-pkg@NetBSD.org
2003-05-31 12:17:48 +02:00
HOMEPAGE= http://jsno.arafuraconnect.com.au/proj_linux/nighthawk.html
COMMENT= C64 Paradroid clone
1999-02-07 03:06:18 +01:00
WRKSRC= ${WRKDIR}/nighthawk
USE_TOOLS+= gmake
2004-06-15 15:10:12 +02:00
USE_LANGUAGES= c c++
1999-02-07 03:06:18 +01:00
MAKE_ENV+= OSTYPE=${OPSYS}
CPPFLAGS+= -DPREFIX="\"${PREFIX}\"" \
2005-06-07 07:41:38 +02:00
-DDEVOSSAUDIO="\"${DEVOSSAUDIO}\"" \
-DVARBASE="\"${VARBASE}\""
INSTALLATION_DIRS= bin
.include "../../graphics/xpm/buildlink3.mk"
.include "../../mk/ossaudio.buildlink3.mk"
1999-02-07 03:06:18 +01:00
post-build:
cd ${WRKSRC}/src_sound && \
${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} nighthawk_sound
1999-02-07 03:06:18 +01:00
do-install:
2000-10-18 17:25:36 +02:00
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/nighthawk
1999-02-07 03:06:18 +01:00
${INSTALL_DATA_DIR} ${PREFIX}/share/nighthawk
${INSTALL_DATA_DIR} ${PREFIX}/share/nighthawk/data
cd ${WRKSRC}/data && ${PAX} -rw . ${PREFIX}/share/nighthawk/data
1999-04-23 14:33:19 +02:00
${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/share/nighthawk
2005-06-07 07:44:46 +02:00
${FIND} ${PREFIX}/share/nighthawk -type f -print | ${XARGS} ${CHMOD} ${SHAREMODE}
${FIND} ${PREFIX}/share/nighthawk -type d -print | ${XARGS} ${CHMOD} ${PKGDIRMODE}
1999-02-07 03:06:18 +01:00
${INSTALL_PROGRAM} ${WRKSRC}/src/nighthawk ${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/src_sound/nighthawk_sound ${PREFIX}/bin
2005-06-07 07:43:30 +02:00
${CHGRP} ${GAMEGRP} ${PREFIX}/bin/nighthawk
1999-02-07 03:06:18 +01:00
${CHMOD} g+s ${PREFIX}/bin/nighthawk
2000-10-18 17:25:36 +02:00
${INSTALL_MAN} ${WRKSRC}/INSTALL ${PREFIX}/share/doc/nighthawk/README
2005-06-07 07:43:30 +02:00
${INSTALL} -o ${ROOT_USER} -g ${GAMEGRP} -m 664 /dev/null ${VARBASE}/games/nighthawk.scores
1999-02-07 03:06:18 +01:00
.include "../../mk/bsd.pkg.mk"