aboutsummaryrefslogtreecommitdiff
path: root/games/lmarbles
diff options
context:
space:
mode:
authorDmitry Marakasov <amdmi3@FreeBSD.org>2015-01-25 02:02:53 +0000
committerDmitry Marakasov <amdmi3@FreeBSD.org>2015-01-25 02:02:53 +0000
commit47d1179777b71fff7a9f33f865b7970c84920129 (patch)
tree85125fc93688c88dcce45e1c34057f72bf477761 /games/lmarbles
parent82d109bcf56d84a8b281f0149da28286f8b039d9 (diff)
downloadports-47d1179777b71fff7a9f33f865b7970c84920129.tar.gz
ports-47d1179777b71fff7a9f33f865b7970c84920129.zip
Notes
Diffstat (limited to 'games/lmarbles')
-rw-r--r--games/lmarbles/Makefile23
-rw-r--r--games/lmarbles/pkg-plist15
2 files changed, 9 insertions, 29 deletions
diff --git a/games/lmarbles/Makefile b/games/lmarbles/Makefile
index ea381a8cd5ee..9b4c81c05b13 100644
--- a/games/lmarbles/Makefile
+++ b/games/lmarbles/Makefile
@@ -13,27 +13,21 @@ DISTFILES= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX} \
MAINTAINER= ports@FreeBSD.org
COMMENT= Atomix-like game of moving marbles in puzzles
-LICENSE= GPLv2
+LICENSE= GPLv2 # or later
+LICENSE_FILE= ${WRKSRC}/COPYING
USES= gmake
USE_SDL= sdl mixer
GNU_CONFIGURE= yes
-CONFIGURE_ARGS= --localstatedir=${ETCDIR}
+CONFIGURE_ARGS= --localstatedir=/var/games/${PORTNAME}
PORTDOCS= *
-DOCSRCDIR1= ${WRKSRC}
-DOC_FILES1= AUTHORS ChangeLog README README-SDL.txt
-
-DOCSRCDIR2= ${WRKSRC}/src/manual
-DOCSDIR2= ${DOCSDIR}/manual
-DOC_FILES2= *.jpg *.html
-
OPTIONS_DEFINE= DOCS
post-patch:
@${REINPLACE_CMD} -e 's|(datadir)/icons|(datadir)/pixmaps|; \
- s|(datadir)/pixmaps/lmarbles48.gif|(datadir)/pixmaps/lmarbles48.png|' \
+ s|(datadir)/pixmaps/lmarbles48.gif|(datadir)/pixmaps/lmarbles48.png|' \
${WRKSRC}/Makefile.in
@${REINPLACE_CMD} -e 's|-m 666||; \
s|lmarbles.prfs|lmarbles.prfs.sample|' \
@@ -45,12 +39,7 @@ post-install:
${INSTALL_DATA} ${WRKDIR}/${PORTNAME}*.png \
${STAGEDIR}${PREFIX}/share/pixmaps/
- @${CHMOD} -R 464 ${STAGEDIR}${ETCDIR}/lmarbles.prfs.sample
- @${CHOWN} root:games ${STAGEDIR}${ETCDIR}/lmarbles.prfs.sample
-
- @${MKDIR} ${STAGEDIR}${DOCSDIR}
- ${INSTALL_DATA} ${DOC_FILES1:S|^|${DOCSRCDIR1}/|} ${STAGEDIR}${DOCSDIR}
- @${MKDIR} ${STAGEDIR}${DOCSDIR2}
- ${INSTALL_DATA} ${DOC_FILES2:S|^|${DOCSRCDIR2}/|} ${STAGEDIR}${DOCSDIR2}
+ cd ${WRKSRC} && ${COPYTREE_SHARE} "AUTHORS ChangeLog README README-SDL.txt" ${STAGEDIR}${DOCSDIR}
+ cd ${WRKSRC}/src && ${COPYTREE_SHARE} "manual" ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
diff --git a/games/lmarbles/pkg-plist b/games/lmarbles/pkg-plist
index 5e54001ed5d3..82d4ae9e4824 100644
--- a/games/lmarbles/pkg-plist
+++ b/games/lmarbles/pkg-plist
@@ -1,7 +1,4 @@
-bin/lmarbles
-@unexec if cmp -s %D/%%ETCDIR%%/lmarbles.prfs.sample %D/%%ETCDIR%%/lmarbles.prfs ; then rm -f %D/%%ETCDIR%%/lmarbles.prfs ; fi
-%%ETCDIR%%/lmarbles.prfs.sample
-@exec if [ ! -f %D/%%ETCDIR%%/lmarbles.prfs ] ; then cp -p %D/%F %B/lmarbles.prfs ; fi
+@(,games,2755) bin/lmarbles
man/man6/lmarbles.6.gz
share/applications/lmarbles.desktop
%%DATADIR%%/gfx/board.bmp
@@ -72,11 +69,5 @@ share/applications/lmarbles.desktop
share/pixmaps/lmarbles32.png
share/pixmaps/lmarbles48.gif
share/pixmaps/lmarbles48.png
-@dirrm %%DATADIR%%/sounds
-@dirrm %%DATADIR%%/levels
-@dirrm %%DATADIR%%/gfx/wood
-@dirrm %%DATADIR%%/gfx/stone
-@dirrm %%DATADIR%%/gfx/metal
-@dirrm %%DATADIR%%/gfx
-@dirrm %%DATADIR%%
-@dirrmtry %%ETCDIR%%
+@sample(,games,664) /var/games/lmarbles/lmarbles.prfs.sample
+@dir /var/games/lmarbles