diff options
author | wg <wg@FreeBSD.org> | 2014-08-11 21:24:07 +0800 |
---|---|---|
committer | wg <wg@FreeBSD.org> | 2014-08-11 21:24:07 +0800 |
commit | da659d7baff764f6c1ac75a3045dd4e4c5869cdf (patch) | |
tree | 85f171b996dd609c21fa922607efc24f676cff73 /games/lgeneral | |
parent | 5dd2fb26d103cc0d48932dce201e7f0e8c9844e0 (diff) | |
download | freebsd-ports-gnome-da659d7baff764f6c1ac75a3045dd4e4c5869cdf.tar.gz freebsd-ports-gnome-da659d7baff764f6c1ac75a3045dd4e4c5869cdf.tar.zst freebsd-ports-gnome-da659d7baff764f6c1ac75a3045dd4e4c5869cdf.zip |
games/lgeneral: support stage
PR: 192570
Submitted by: christian.mangin gmail com
Diffstat (limited to 'games/lgeneral')
-rw-r--r-- | games/lgeneral/Makefile | 16 | ||||
-rw-r--r-- | games/lgeneral/files/patch-lgc-pg__misc.c | 14 | ||||
-rw-r--r-- | games/lgeneral/pkg-plist | 2 |
3 files changed, 22 insertions, 10 deletions
diff --git a/games/lgeneral/Makefile b/games/lgeneral/Makefile index 2864106955af..0a27767b7cf2 100644 --- a/games/lgeneral/Makefile +++ b/games/lgeneral/Makefile @@ -28,10 +28,6 @@ USE_CSTD= gnu89 CPPFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib -MAN1= lgc-pg.1 -MAN6= lgeneral.6 - -NO_STAGE= yes .include <bsd.port.options.mk> .if ${PORT_OPTIONS:MSOUND} @@ -59,13 +55,13 @@ post-patch: @${REINPLACE_CMD} -e 's|/icons|/pixmaps|' ${WRKSRC}/Makefile.in post-install: - @${PREFIX}/bin/lgc-pg -s ${WRKDIR}/pg-data -d ${DATADIR} - @${FIND} ${DATADIR} | ${XARGS} ${CHOWN} ${SHAREOWN}:${SHAREGRP} - @${FIND} ${DATADIR} -type d | ${XARGS} ${CHMOD} a+rx - @${FIND} ${DATADIR} -type f | ${XARGS} ${CHMOD} ${SHAREMODE} + ${STAGEDIR}${PREFIX}/bin/lgc-pg -s ${WRKDIR}/pg-data -d ${STAGEDIR}${DATADIR} + @${FIND} ${STAGEDIR}${DATADIR} | ${XARGS} ${CHOWN} ${SHAREOWN}:${SHAREGRP} + @${FIND} ${STAGEDIR}${DATADIR} -type d | ${XARGS} ${CHMOD} a+rx + @${FIND} ${STAGEDIR}${DATADIR} -type f | ${XARGS} ${CHMOD} ${SHAREMODE} .if ${PORT_OPTIONS:MDOCS} - @${MKDIR} ${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/README.* ${DOCSDIR} + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/README.* ${STAGEDIR}${DOCSDIR} .endif .include <bsd.port.post.mk> diff --git a/games/lgeneral/files/patch-lgc-pg__misc.c b/games/lgeneral/files/patch-lgc-pg__misc.c new file mode 100644 index 000000000000..04bf4427eb9d --- /dev/null +++ b/games/lgeneral/files/patch-lgc-pg__misc.c @@ -0,0 +1,14 @@ +--- ./lgc-pg/misc.c.orig 2011-08-08 04:03:56.000000000 -0400 ++++ ./lgc-pg/misc.c 2014-08-10 23:06:31.000000000 -0400 +@@ -405,7 +405,10 @@ + return "."; + #else + static char gamedir[MAXPATHLEN]; +- snprintf( gamedir, MAXPATHLEN, "%s", INSTALLDIR ); ++ if (dest_path) ++ snprintf( gamedir, MAXPATHLEN, "%s", dest_path ); ++ else ++ snprintf( gamedir, MAXPATHLEN, "%s", INSTALLDIR ); + return gamedir; + #endif + } diff --git a/games/lgeneral/pkg-plist b/games/lgeneral/pkg-plist index d9e4d6066ef1..d8615a689c50 100644 --- a/games/lgeneral/pkg-plist +++ b/games/lgeneral/pkg-plist @@ -3,6 +3,8 @@ bin/lged bin/lgeneral bin/ltrextract bin/shptool +man/man1/lgc-pg.1.gz +man/man6/lgeneral.6.gz share/applications/lgeneral.desktop %%PORTDOCS%%%%DOCSDIR%%/README.lgc-pg %%PORTDOCS%%%%DOCSDIR%%/README.lgeneral |