diff options
author | amdmi3 <amdmi3@FreeBSD.org> | 2016-02-04 08:03:30 +0800 |
---|---|---|
committer | amdmi3 <amdmi3@FreeBSD.org> | 2016-02-04 08:03:30 +0800 |
commit | 4d51d42a08ea86b93d13ce592de6d803e7c5d6c3 (patch) | |
tree | 1d08a7901e3ae6fb7a918c139c528bc60f7fd937 /games | |
parent | fe5d995ad0b36efd18d3d5b90fa8bdca811d44cc (diff) | |
download | freebsd-ports-gnome-4d51d42a08ea86b93d13ce592de6d803e7c5d6c3.tar.gz freebsd-ports-gnome-4d51d42a08ea86b93d13ce592de6d803e7c5d6c3.tar.zst freebsd-ports-gnome-4d51d42a08ea86b93d13ce592de6d803e7c5d6c3.zip |
- Generate missing data files to fix runtime crash [1]
While here:
- Fix build with NLS disabled
- Fix LICENSE
- Switch to USES=localbase
- Switch to options helpers
- Don't try to use X11 during build
PR: 206831 [1]
Submitted by: cmangin@arobas.net [1]
MFH: 2016Q1 (blanket)
Diffstat (limited to 'games')
-rw-r--r-- | games/lgeneral/Makefile | 24 | ||||
-rw-r--r-- | games/lgeneral/files/patch-util_localize.h | 14 | ||||
-rw-r--r-- | games/lgeneral/pkg-plist | 3 |
3 files changed, 30 insertions, 11 deletions
diff --git a/games/lgeneral/Makefile b/games/lgeneral/Makefile index a6e734a95e8f..5e474847ec7a 100644 --- a/games/lgeneral/Makefile +++ b/games/lgeneral/Makefile @@ -3,6 +3,7 @@ PORTNAME= lgeneral PORTVERSION= 1.3.1 +PORTREVISION= 1 CATEGORIES= games MASTER_SITES= SF/${PORTNAME}/${PORTNAME} \ SF/${PORTNAME}/${PORTNAME}-data:data @@ -12,20 +13,17 @@ DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:DEFAULT \ MAINTAINER= ports@FreeBSD.org COMMENT= Turn-based strategy engine inspired by Panzer General -LICENSE= GPLv2 +LICENSE= GPLv2+ LICENSE_FILE= ${WRKSRC}/COPYING -USES= gmake +BROKEN_powerpc= does not install +BROKEN_sparc64= does not install + +USES= gmake localbase USE_CSTD= gnu89 USE_SDL= sdl GNU_CONFIGURE= yes -CPPFLAGS+= -I${LOCALBASE}/include -LDFLAGS+= -L${LOCALBASE}/lib - -BROKEN_powerpc= Does not install on ${ARCH} -BROKEN_sparc64= Does not install on ${ARCH} - OPTIONS_DEFINE= DOCS NLS SOUND OPTIONS_DEFAULT= SOUND OPTIONS_SUB= yes @@ -44,9 +42,13 @@ post-install: .for i in flags terrain units @${MKDIR} ${STAGEDIR}${DATADIR}/gfx/${i} .endfor - (${STAGEDIR}${PREFIX}/bin/lgc-pg -s ${WRKDIR}/pg-data \ - -d ${STAGEDIR}${DATADIR}) + ${SETENV} DISPLAY= \ + ${STAGEDIR}${PREFIX}/bin/lgc-pg --separate-bridges \ + -s ${WRKDIR}/pg-data \ + -d ${STAGEDIR}${DATADIR} + +post-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} - (cd ${WRKSRC} && ${INSTALL_DATA} README.* ${STAGEDIR}${DOCSDIR}) + ${INSTALL_DATA} ${WRKSRC}/README.* ${STAGEDIR}${DOCSDIR} .include <bsd.port.mk> diff --git a/games/lgeneral/files/patch-util_localize.h b/games/lgeneral/files/patch-util_localize.h new file mode 100644 index 000000000000..68a1c37275b9 --- /dev/null +++ b/games/lgeneral/files/patch-util_localize.h @@ -0,0 +1,14 @@ +--- util/localize.h.orig 2013-05-03 17:17:37 UTC ++++ util/localize.h +@@ -31,9 +31,10 @@ + # include <config.h> + #endif + ++#ifdef ENABLE_NLS ++ + #include <libintl.h> + +-#ifdef ENABLE_NLS + /** shorthand for fetching translation of default domain */ + # define tr(s) gettext (s) + /** shorthand for fetching translation of specified domain */ diff --git a/games/lgeneral/pkg-plist b/games/lgeneral/pkg-plist index d6db3d520457..5f1fa04c21c7 100644 --- a/games/lgeneral/pkg-plist +++ b/games/lgeneral/pkg-plist @@ -35,6 +35,9 @@ share/applications/lgeneral.desktop %%DATADIR%%/gfx/terrain/pg/airfield.bmp %%DATADIR%%/gfx/terrain/pg/airfield_rain.bmp %%DATADIR%%/gfx/terrain/pg/airfield_snow.bmp +%%DATADIR%%/gfx/terrain/pg/bridge.bmp +%%DATADIR%%/gfx/terrain/pg/bridge_rain.bmp +%%DATADIR%%/gfx/terrain/pg/bridge_snow.bmp %%DATADIR%%/gfx/terrain/pg/clear.bmp %%DATADIR%%/gfx/terrain/pg/clear_rain.bmp %%DATADIR%%/gfx/terrain/pg/clear_snow.bmp |