- Add stage support
- Remove indefinite article from COMMENT - Add OPTIMIZED_CFLAGS option - Use options helpers - Convert USE_GMAKE to USES
This commit is contained in:
parent
f4efe4f0ef
commit
9dea9d2665
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=332446
2 changed files with 13 additions and 24 deletions
|
@ -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>
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue