diff options
author | danilo <danilo@FreeBSD.org> | 2013-11-02 11:34:31 +0800 |
---|---|---|
committer | danilo <danilo@FreeBSD.org> | 2013-11-02 11:34:31 +0800 |
commit | e4688988901e84d14c519ad8ff6b6f7f96bcf0e1 (patch) | |
tree | 327b1fcb9c46cf4c9d6296321e24ed9c754ca7d8 /games/heroes | |
parent | 9fc1de10351fa917071781e4191023a2aed387f0 (diff) | |
download | freebsd-ports-gnome-e4688988901e84d14c519ad8ff6b6f7f96bcf0e1.tar.gz freebsd-ports-gnome-e4688988901e84d14c519ad8ff6b6f7f96bcf0e1.tar.zst freebsd-ports-gnome-e4688988901e84d14c519ad8ff6b6f7f96bcf0e1.zip |
- Add stage support
- Remove indefinite article from COMMENT
- Add OPTIMIZED_CFLAGS option
- Use options helpers
- Convert USE_GMAKE to USES
Diffstat (limited to 'games/heroes')
-rw-r--r-- | games/heroes/Makefile | 35 | ||||
-rw-r--r-- | games/heroes/pkg-plist | 2 |
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 |