2006-03-09 22:04:39 +01:00
|
|
|
# $NetBSD: Makefile,v 1.32 2006/03/09 21:04:43 jlam Exp $
|
1999-02-07 03:06:18 +01:00
|
|
|
#
|
|
|
|
|
1999-02-10 16:09:56 +01:00
|
|
|
DISTNAME= nighthawk-2.1
|
2006-02-06 00:08:03 +01:00
|
|
|
PKGREVISION= 2
|
1999-02-10 16:09:56 +01:00
|
|
|
CATEGORIES= x11 games
|
2004-03-10 04:27:01 +01:00
|
|
|
MASTER_SITES= ${MASTER_SITE_BACKUP}
|
1999-02-10 16:09:56 +01:00
|
|
|
EXTRACT_SUFX= .tgz
|
2000-01-02 04:14:03 +01:00
|
|
|
|
1999-02-10 16:09:56 +01:00
|
|
|
PATCH_SITES= ${MASTER_SITES}
|
|
|
|
PATCHFILES= nighthawk-2.1a.patch
|
|
|
|
PATCH_DIST_STRIP= -p1
|
1999-02-07 03:06:18 +01:00
|
|
|
|
2006-03-04 22:28:51 +01:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2003-05-31 12:17:48 +02:00
|
|
|
HOMEPAGE= http://jsno.arafuraconnect.com.au/proj_linux/nighthawk.html
|
2004-03-10 04:27:01 +01:00
|
|
|
COMMENT= C64 Paradroid clone
|
1999-02-07 03:06:18 +01:00
|
|
|
|
2004-01-20 13:07:06 +01:00
|
|
|
WRKSRC= ${WRKDIR}/nighthawk
|
2005-05-22 22:07:36 +02:00
|
|
|
USE_TOOLS+= gmake
|
2004-06-15 15:10:12 +02:00
|
|
|
USE_LANGUAGES= c c++
|
1999-02-07 03:06:18 +01:00
|
|
|
|
2005-12-05 21:49:47 +01:00
|
|
|
MAKE_ENV+= OSTYPE=${OPSYS:Q}
|
2005-06-07 07:33:20 +02:00
|
|
|
CPPFLAGS+= -DPREFIX="\"${PREFIX}\"" \
|
2005-06-07 07:41:38 +02:00
|
|
|
-DDEVOSSAUDIO="\"${DEVOSSAUDIO}\"" \
|
|
|
|
-DVARBASE="\"${VARBASE}\""
|
2005-06-07 07:33:20 +02:00
|
|
|
|
2005-06-16 08:57:37 +02:00
|
|
|
INSTALLATION_DIRS= bin
|
|
|
|
|
2005-06-07 07:33:20 +02:00
|
|
|
.include "../../graphics/xpm/buildlink3.mk"
|
2006-03-09 22:04:39 +01:00
|
|
|
.include "../../mk/oss.buildlink3.mk"
|
2005-06-07 07:10:50 +02:00
|
|
|
|
1999-02-07 03:06:18 +01:00
|
|
|
post-build:
|
2003-04-10 03:28:03 +02:00
|
|
|
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
|
2003-04-10 03:28:03 +02:00
|
|
|
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"
|