freebsd-ports/games/nighthawk/Makefile

54 lines
1.5 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: nighthawk
# Date created: Apr 4, 2001
# Whom: Mark Pulford <mark@kyne.com.au>
#
# $FreeBSD$
#
PORTNAME= nighthawk
PORTVERSION= 3.0.0
CATEGORIES= games
MASTER_SITES= ${MASTER_SITE_SUNSITE}
MASTER_SITE_SUBDIR= games/arcade
MAINTAINER= ports@FreeBSD.org
2003-02-22 18:14:31 +01:00
COMMENT= An X11 shoot-'em up which requires some lateral thinking
WRKSRC= ${WRKDIR}/${PORTNAME}
USE_BZIP2= yes
USE_GL= glut
USE_GMAKE= yes
MAKE_ARGS= CC="${CC}" CPP="${CXX}" CC_FLAGS="${CXXFLAGS}" \
LIB_FLAGS="${LDFLAGS}"
MAN6= nighthawk.6
2007-05-27 05:03:31 +02:00
CFLAGS+= -DINSTALL_DIR=\\\"\${DATADIR}\\\" \
-DSCORES_FILE=\\\"/var/games/nighthawk.scores\\\" \
-I${X11BASE}/include
LDFLAGS= -lm -L${X11BASE}/lib -lX11 -lGL -lGLU -lglut
2007-05-27 05:03:31 +02:00
post-patch:
${FIND} ${WRKSRC} -name "Makefile" | ${XARGS} ${REINPLACE_CMD} -e \
's|make|$$(MAKE)|g ; \
s|strip nighthawk||g'
${REINPLACE_CMD} -e 's|<malloc.h>|<stdlib.h>|g' \
${WRKSRC}/src/util/mkprotos2.c
${REINPLACE_CMD} -e 's|^|#|g' ${WRKSRC}/config.user
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/nighthawk ${PREFIX}/bin
2001-06-01 08:05:18 +02:00
${CHOWN} root:games ${PREFIX}/bin/nighthawk
${CHMOD} g+s ${PREFIX}/bin/nighthawk
${INSTALL_DATA} ${WRKSRC}/doc/nighthawk.6 ${MANPREFIX}/man/man6
@${MKDIR} ${DATADIR}
${TAR} -C ${WRKSRC} --exclude ".xvpics" -cf - data | \
${TAR} -C ${DATADIR} --unlink -xf -
@${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${DATADIR}
@${FIND} ${DATADIR} -type f | ${XARGS} ${CHMOD} ${SHAREMODE}
@${FIND} ${DATADIR} -type d | ${XARGS} ${CHMOD} a+rx
@${SH} ${PKGINSTALL} ${PORTNAME} POST-INSTALL
.include <bsd.port.mk>