svn commit: r333544 - head/games/tuxmath
Danilo Egea Gondolfo
danilo at FreeBSD.org
Tue Nov 12 03:18:10 UTC 2013
Author: danilo
Date: Tue Nov 12 03:18:09 2013
New Revision: 333544
URL: http://svnweb.freebsd.org/changeset/ports/333544
Log:
- Add stage support
- Convert all "if's" in options helpers
- Fix a problem (file not found) during execution
Modified:
head/games/tuxmath/Makefile
head/games/tuxmath/pkg-plist
Modified: head/games/tuxmath/Makefile
==============================================================================
--- head/games/tuxmath/Makefile Tue Nov 12 02:50:23 2013 (r333543)
+++ head/games/tuxmath/Makefile Tue Nov 12 03:18:09 2013 (r333544)
@@ -18,6 +18,7 @@ LICENSE= GPLv3 # (or later)
OPTIONS_DEFINE= NLS SVG DOCS
OPTIONS_DEFAULT= SVG
+OPTIONS_SUB= yes
WRKSRC= ${WRKDIR}/${PORTNAME}_w_fonts-${PORTVERSION}
@@ -38,23 +39,12 @@ T4K_VERSION= 0.1.1
T4K_DISTFILE= ${T4K_NAME}-${T4K_VERSION}${EXTRACT_SUFX}
T4K_WRKSRC= ${WRKDIR}/${T4K_NAME}-${T4K_VERSION}
-NO_STAGE= yes
-.include <bsd.port.options.mk>
+NLS_CONFIGURE_ENABLE= nls
+NLS_USES= gettext
+NLS_LDFLAGS= -lintl
-.if ${PORT_OPTIONS:MNLS}
-USES+= gettext
-PLIST_SUB+= NLS=""
-LDFLAGS+= -lintl
-.else
-CONFIGURE_ARGS+=--disable-nls
-PLIST_SUB+= NLS="@comment "
-.endif
-
-.if ${PORT_OPTIONS:MSVG}
-USE_GNOME+= librsvg2
-.else
-CONFIGURE_ARGS+=--without-rsvg
-.endif
+SVG_CONFIGURE_WITH= rsvg
+SVG_USE= GNOME=librsvg2
# use multiple make jobs for T4K_WRKSRC
_make_jobs= -j${MAKE_JOBS_NUMBER}
@@ -80,11 +70,10 @@ pre-build:
${MAKEFILE} ${_make_jobs} ${ALL_TARGET})
post-install:
-.if ${PORT_OPTIONS:MDOCS}
- @${MKDIR} ${DOCSDIR}
+ ${LN} -s ${DATADIR}/images/status ${STAGEDIR}${DATADIR}/images/menu
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
.for file in OFL README README_DATA_LICENSES TODO changelog
- ${INSTALL_DATA} ${WRKSRC}/doc/${file} ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/doc/${file} ${STAGEDIR}${DOCSDIR}
.endfor
-.endif
.include <bsd.port.mk>
Modified: head/games/tuxmath/pkg-plist
==============================================================================
--- head/games/tuxmath/pkg-plist Tue Nov 12 02:50:23 2013 (r333543)
+++ head/games/tuxmath/pkg-plist Tue Nov 12 03:18:09 2013 (r333544)
@@ -536,6 +536,7 @@ bin/tuxmathtestclient
%%DATADIR%%/sounds/tock.wav
%%DATADIR%%/sounds/towerclock.wav
%%DATADIR%%/sounds/tuxi.ogg
+%%DATADIR%%/images/menu
@dirrm %%DATADIR%%/sounds
@dirrm %%DATADIR%%/missions/multiplay
@dirrm %%DATADIR%%/missions/lessons
More information about the svn-ports-head
mailing list