aboutsummaryrefslogtreecommitdiffstats
path: root/games/lgeneral
diff options
context:
space:
mode:
authorantoine <antoine@FreeBSD.org>2014-10-30 03:57:26 +0800
committerantoine <antoine@FreeBSD.org>2014-10-30 03:57:26 +0800
commitfff7deed49c36703a5035ce826fae9721a345d1e (patch)
treeee519897317ced609b61b733b513a6b130a3ea7b /games/lgeneral
parent9c15be2e14bcf52266b7085db4613935ed950412 (diff)
downloadfreebsd-ports-gnome-fff7deed49c36703a5035ce826fae9721a345d1e.tar.gz
freebsd-ports-gnome-fff7deed49c36703a5035ce826fae9721a345d1e.tar.zst
freebsd-ports-gnome-fff7deed49c36703a5035ce826fae9721a345d1e.zip
Allow staging as a regular user
Diffstat (limited to 'games/lgeneral')
-rw-r--r--games/lgeneral/Makefile5
-rw-r--r--games/lgeneral/pkg-plist26
2 files changed, 1 insertions, 30 deletions
diff --git a/games/lgeneral/Makefile b/games/lgeneral/Makefile
index bccac07cdde8..0a51c9bc6f6a 100644
--- a/games/lgeneral/Makefile
+++ b/games/lgeneral/Makefile
@@ -46,8 +46,6 @@ CONFIGURE_ARGS+=--disable-nls
PLIST_SUB+= NLS="@comment "
.endif
-.include <bsd.port.pre.mk>
-
.if ${ARCH} == "ia64" || ${ARCH} == "powerpc" || ${ARCH} == "sparc64"
BROKEN= Does not install on ia64, powerpc, or sparc64
.endif
@@ -57,7 +55,6 @@ post-patch:
post-install:
${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}
@@ -65,4 +62,4 @@ post-install:
${INSTALL_DATA} ${WRKSRC}/README.* ${STAGEDIR}${DOCSDIR}
.endif
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/games/lgeneral/pkg-plist b/games/lgeneral/pkg-plist
index d8615a689c50..bc4bd64ce61e 100644
--- a/games/lgeneral/pkg-plist
+++ b/games/lgeneral/pkg-plist
@@ -216,29 +216,3 @@ share/applications/lgeneral.desktop
%%NLS%%share/locale/en/LC_MESSAGES/lgeneral.mo
%%NLS%%share/locale/en/LC_MESSAGES/pg.mo
share/pixmaps/lgeneral48.png
-@dirrm %%DATADIR%%/units
-@dirrm %%DATADIR%%/themes/default
-@dirrm %%DATADIR%%/themes
-@dirrm %%DATADIR%%/terrain
-@dirrm %%DATADIR%%/sounds/pg
-@dirrm %%DATADIR%%/sounds
-@dirrm %%DATADIR%%/scenarios/pg
-@dirrm %%DATADIR%%/scenarios
-@dirrm %%DATADIR%%/nations
-@dirrm %%DATADIR%%/music
-@dirrm %%DATADIR%%/maps/pg
-@dirrm %%DATADIR%%/maps
-@dirrm %%DATADIR%%/gfx/units
-@dirrm %%DATADIR%%/gfx/terrain/pg
-@dirrm %%DATADIR%%/gfx/terrain
-@dirrm %%DATADIR%%/gfx/flags
-@dirrm %%DATADIR%%/gfx
-@dirrm %%DATADIR%%/convdata
-@dirrm %%DATADIR%%/campaigns
-@dirrm %%DATADIR%%/ai_modules
-@dirrm %%DATADIR%%
-%%PORTDOCS%%@dirrm %%DOCSDIR%%
-@exec mkdir -p %D/share/lgeneral/gfx/terrain/pg
-@exec mkdir -p %D/share/lgeneral/maps/pg
-@exec mkdir -p %D/share/lgeneral/scenarios/pg
-@exec mkdir -p %D/share/lgeneral/sounds/pg