aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--games/heroes/Makefile35
-rw-r--r--games/heroes/pkg-plist2
2 files changed, 13 insertions, 24 deletions
diff --git a/games/heroes/Makefile b/games/heroes/Makefile
index 9a0029491ca1..ec2481998aab 100644
--- a/games/heroes/Makefile
+++ b/games/heroes/Makefile
@@ -15,7 +15,7 @@ DISTFILES= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX} \
${MUSICDISTNAME}${EXTRACT_SUFX}:music
MAINTAINER= ports@FreeBSD.org
-COMMENT= A game of yore similar to the "Tron" and "Nibbles"
+COMMENT= Game of yore similar to the "Tron" and "Nibbles"
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
@@ -31,33 +31,20 @@ SOUNDSRC= ${WRKDIR}/${SOUNDISTNAME}
MUSICSRC= ${WRKDIR}/${MUSICDISTNAME}
USE_SDL= mixer sdl
-USE_GMAKE= yes
-USES= gettext iconv
+USES= gettext gmake iconv
GNU_CONFIGURE= yes
CONFIGURE_ENV= MAKEINFO="makeinfo --no-split"
CONFIGURE_ARGS= --with-sdl_mixer=${LOCALBASE} --without-gii --without-ggi
-.if defined(WITH_OPTIMIZED_CFLAGS)
-CONFIGURE_ARGS+=--enable-optimizations
-.else
-CONFIGURE_ARGS+=--disable-optimizations
-.endif
+OPTIONS_DEFINE= OPTIMIZED_CFLAGS
+
+OPTIMIZED_CFLAGS_CONFIGURE_ENABLE= optimizations
-MAN6= heroes.6 heroeslvl.6
INFO= heroes
CPPFLAGS+= -I${LOCALBASE}/include ${PTHREAD_CFLAGS}
LDFLAGS+= -L${LOCALBASE}/lib -lsmpeg -lm ${PTHREAD_LIBS}
-NO_STAGE= yes
-pre-everything::
-.ifndef(WITH_OPTIMIZED_CFLAGS)
- @${ECHO_MSG} '>>>'
- @${ECHO_MSG} '>>> You can enable extra optimizations by defining WITH_OPTIMIZED_CFLAGS'
- @${ECHO_MSG} ">>> For example, 'make WITH_OPTIMIZED_CFLAGS=yes'"
- @${ECHO_MSG} '>>>'
-.endif
-
post-patch:
@for dir in ${DATASRC} ${SOUNDSRC} ${MUSICSRC}; do \
${FIND} $${dir} -name "Makefile*" | ${XARGS} ${RM}; \
@@ -67,12 +54,12 @@ post-patch:
post-install:
.for dir in levels pics tilesets
- ${MKDIR} ${DATADIR}/${dir}
- ${INSTALL_DATA} ${DATASRC}/${dir}/* ${DATADIR}/${dir}
+ @${MKDIR} ${STAGEDIR}${DATADIR}/${dir}
+ ${INSTALL_DATA} ${DATASRC}/${dir}/* ${STAGEDIR}${DATADIR}/${dir}
.endfor
- ${MKDIR} ${DATADIR}/sfx
- ${INSTALL_DATA} ${SOUNDSRC}/*.wav ${SOUNDSRC}/sfx.conf ${DATADIR}/sfx
- ${MKDIR} ${DATADIR}/mod
- ${INSTALL_DATA} ${MUSICSRC}/*.xm ${MUSICSRC}/sound.conf ${DATADIR}/mod
+ @${MKDIR} ${STAGEDIR}${DATADIR}/sfx
+ ${INSTALL_DATA} ${SOUNDSRC}/*.wav ${SOUNDSRC}/sfx.conf ${STAGEDIR}${DATADIR}/sfx
+ @${MKDIR} ${STAGEDIR}${DATADIR}/mod
+ ${INSTALL_DATA} ${MUSICSRC}/*.xm ${MUSICSRC}/sound.conf ${STAGEDIR}${DATADIR}/mod
.include <bsd.port.mk>
diff --git a/games/heroes/pkg-plist b/games/heroes/pkg-plist
index 4bd9576d5365..66d1a2017e0d 100644
--- a/games/heroes/pkg-plist
+++ b/games/heroes/pkg-plist
@@ -1,5 +1,7 @@
bin/heroes
bin/heroeslvl
+man/man6/heroes.6.gz
+man/man6/heroeslvl.6.gz
%%DATADIR%%/etc/heroesrc
%%DATADIR%%/levels/level.lst
%%DATADIR%%/levels/niv010.lvl