diff options
author | Lars Engels <lme@FreeBSD.org> | 2015-04-27 20:09:10 +0000 |
---|---|---|
committer | Lars Engels <lme@FreeBSD.org> | 2015-04-27 20:09:10 +0000 |
commit | 3ffe299b6c85807f3aabeb627520d0c08272f3ba (patch) | |
tree | 16538cd6fa0d8517d42931a69796b0a381369578 /games/lgeneral | |
parent | cecafe6c77534c1b7a78dfdf29888bd5c11648a7 (diff) | |
download | ports-3ffe299b6c85807f3aabeb627520d0c08272f3ba.tar.gz ports-3ffe299b6c85807f3aabeb627520d0c08272f3ba.zip |
Notes
Diffstat (limited to 'games/lgeneral')
-rw-r--r-- | games/lgeneral/Makefile | 58 | ||||
-rw-r--r-- | games/lgeneral/distinfo | 4 | ||||
-rw-r--r-- | games/lgeneral/pkg-plist | 7 |
3 files changed, 26 insertions, 43 deletions
diff --git a/games/lgeneral/Makefile b/games/lgeneral/Makefile index f821d2d59767..8d94e9af2c58 100644 --- a/games/lgeneral/Makefile +++ b/games/lgeneral/Makefile @@ -2,7 +2,7 @@ # $FreeBSD$ PORTNAME= lgeneral -PORTVERSION= 1.2.5 +PORTVERSION= 1.2.6 CATEGORIES= games MASTER_SITES= SF/${PORTNAME}/${PORTNAME} \ SF/${PORTNAME}/${PORTNAME}-data:data @@ -12,55 +12,39 @@ DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:DEFAULT \ MAINTAINER= ports@FreeBSD.org COMMENT= Turn-based strategy engine inspired by Panzer General -LICENSE= GPLv2 # or later -LICENSE_FILE= ${WRKSRC}/COPYING +LICENSE= GPLv2 -USE_SDL= sdl USES= gmake -GNU_CONFIGURE= yes USE_CSTD= gnu89 +USE_SDL= sdl +GNU_CONFIGURE= yes CPPFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib -OPTIONS_DEFINE= SOUND NLS DOCS -OPTIONS_DEFAULT= SOUND -SOUND_DESC= Enable sound support - -.include <bsd.port.options.mk> +BROKEN_powerpc= Does not install on ${ARCH} +BROKEN_sparc64= Does not install on ${ARCH} -.if ${PORT_OPTIONS:MSOUND} -USE_SDL+= mixer -.else -CONFIGURE_ARGS+=--disable-sound -.endif - -.if ${PORT_OPTIONS:MNLS} -USES+= gettext -PLIST_SUB+= NLS="" -.else -CONFIGURE_ENV+= am_cv_func_iconv=no -CONFIGURE_ARGS+=--disable-nls -PLIST_SUB+= NLS="@comment " -.endif +OPTIONS_DEFINE= DOCS NLS SOUND +OPTIONS_DEFAULT= SOUND +OPTIONS_SUB= yes -.if ${ARCH} == "ia64" || ${ARCH} == "powerpc" || ${ARCH} == "sparc64" -BROKEN= Does not install on ia64, powerpc, or sparc64 -.endif +NLS_USES= gettext +NLS_CONFIGURE_ENABLE= nls +NLS_CONFIGURE_ENV_OFF= am_cv_func_iconv=no +SOUND_USE= sdl=mixer +SOUND_CONFIGURE_ENABLE= sound post-patch: - @${REINPLACE_CMD} -e 's|/icons|/pixmaps|' ${WRKSRC}/Makefile.in + @${REINPLACE_CMD} -e 's|/icons.*|/pixmaps|' ${WRKSRC}/Makefile.in post-install: - ${MKDIR} ${STAGEDIR}${DATADIR}/gfx/flags - ${MKDIR} ${STAGEDIR}${DATADIR}/gfx/units/ - ${MKDIR} ${STAGEDIR}${DATADIR}/gfx/terrain/pg/ - ${STAGEDIR}${PREFIX}/bin/lgc-pg -s ${WRKDIR}/pg-data -d ${STAGEDIR}${DATADIR} - @${FIND} ${STAGEDIR}${DATADIR} -type d | ${XARGS} ${CHMOD} a+rx - @${FIND} ${STAGEDIR}${DATADIR} -type f | ${XARGS} ${CHMOD} ${SHAREMODE} -.if ${PORT_OPTIONS:MDOCS} +.for i in flags terrain units + @${MKDIR} ${STAGEDIR}${DATADIR}/gfx/${i} +.endfor + (${STAGEDIR}${PREFIX}/bin/lgc-pg -s ${WRKDIR}/pg-data \ + -d ${STAGEDIR}${DATADIR}) @${MKDIR} ${STAGEDIR}${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/README.* ${STAGEDIR}${DOCSDIR} -.endif + (cd ${WRKSRC} && ${INSTALL_DATA} README.* ${STAGEDIR}${DOCSDIR}) .include <bsd.port.mk> diff --git a/games/lgeneral/distinfo b/games/lgeneral/distinfo index e37569e7c863..dca6e6c05d3e 100644 --- a/games/lgeneral/distinfo +++ b/games/lgeneral/distinfo @@ -1,4 +1,4 @@ -SHA256 (lgeneral-1.2.5.tar.gz) = 1df5a730820699a3244b626e51ef1d84f7fa3e3868a202da83b21dd8c1c6c90d -SIZE (lgeneral-1.2.5.tar.gz) = 1684984 +SHA256 (lgeneral-1.2.6.tar.gz) = be85d63b718475dfc2ff48ac30e70fa020cac169e8b11bbd229cd2f4fe2570b4 +SIZE (lgeneral-1.2.6.tar.gz) = 1676266 SHA256 (pg-data.tar.gz) = cc6fa5d263d1d5824d706517958b1bb09b405ba0ed21e63e4a4d38e2727d7a04 SIZE (pg-data.tar.gz) = 410476 diff --git a/games/lgeneral/pkg-plist b/games/lgeneral/pkg-plist index bcfd5d312dab..5f1fa04c21c7 100644 --- a/games/lgeneral/pkg-plist +++ b/games/lgeneral/pkg-plist @@ -21,7 +21,6 @@ share/applications/lgeneral.desktop %%DATADIR%%/convdata/grid.bmp %%DATADIR%%/convdata/guard.bmp %%DATADIR%%/convdata/leg.wav -%%DATADIR%%/convdata/mapnames %%DATADIR%%/convdata/move.bmp %%DATADIR%%/convdata/reinf %%DATADIR%%/convdata/sea.wav @@ -217,7 +216,7 @@ share/applications/lgeneral.desktop %%NLS%%share/locale/de/LC_MESSAGES/pg.mo %%NLS%%share/locale/en/LC_MESSAGES/lgeneral.mo %%NLS%%share/locale/en/LC_MESSAGES/pg.mo -share/pixmaps/lgeneral48.png -@dir %%DATADIR%%/ai_modules -@dir %%DATADIR%%/music +share/pixmaps/lgeneral.png @dir %%DATADIR%%/terrain +@dir %%DATADIR%%/music +@dir %%DATADIR%%/ai_modules |