- Clarify LICENSE

- Add LICENSE_FILE
- Move highscore to /var/games, use @sample
- Fix installation from non-root
- Simplify docs installation
This commit is contained in:
Dmitry Marakasov 2015-01-25 02:02:53 +00:00
parent 82d109bcf5
commit 47d1179777
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=377855
2 changed files with 9 additions and 29 deletions

View file

@ -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>

View file

@ -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