Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 2 Nov 2013 03:34:31 +0000 (UTC)
From:      Danilo Egea Gondolfo <danilo@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r332446 - head/games/heroes
Message-ID:  <201311020334.rA23YV9b088753@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: danilo
Date: Sat Nov  2 03:34:31 2013
New Revision: 332446
URL: http://svnweb.freebsd.org/changeset/ports/332446

Log:
  - Add stage support
  - Remove indefinite article from COMMENT
  - Add OPTIMIZED_CFLAGS option
  - Use options helpers
  - Convert USE_GMAKE to USES

Modified:
  head/games/heroes/Makefile
  head/games/heroes/pkg-plist

Modified: head/games/heroes/Makefile
==============================================================================
--- head/games/heroes/Makefile	Sat Nov  2 03:27:43 2013	(r332445)
+++ head/games/heroes/Makefile	Sat Nov  2 03:34:31 2013	(r332446)
@@ -15,7 +15,7 @@ DISTFILES=	${PORTNAME}-${PORTVERSION}${E
 		${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>

Modified: head/games/heroes/pkg-plist
==============================================================================
--- head/games/heroes/pkg-plist	Sat Nov  2 03:27:43 2013	(r332445)
+++ head/games/heroes/pkg-plist	Sat Nov  2 03:34:31 2013	(r332446)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201311020334.rA23YV9b088753>