mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-23 04:23:08 +00:00
abb6dc02c5
PR: 113301 Submitted by: KATO Tsuguru <tkato432@yahoo.com>
54 lines
1.5 KiB
Makefile
54 lines
1.5 KiB
Makefile
# 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
|
|
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
|
|
|
|
CFLAGS+= -DINSTALL_DIR=\\\"\${DATADIR}\\\" \
|
|
-DSCORES_FILE=\\\"/var/games/nighthawk.scores\\\" \
|
|
-I${X11BASE}/include
|
|
LDFLAGS= -lm -L${X11BASE}/lib -lX11 -lGL -lGLU -lglut
|
|
|
|
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
|
|
${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>
|