1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-02-02 11:09:29 +00:00

- Change master sites

- USES gmake instead of USE_GMAKE
- Support STAGEDIR
- Add DOCS Option
- Change REINPLACE_CMD, change lmarbles.desktop.in
- Disable all warnings with -w
- Fix permissions and change owner

Approved by:	pawel / wg (mentors, implicit)
This commit is contained in:
Rusmir Dusko 2013-12-27 22:16:47 +00:00
parent 4aa04aadbe
commit 069fdc6476
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=337817
2 changed files with 23 additions and 24 deletions

View File

@ -6,7 +6,7 @@ PORTVERSION= 1.0.8
PORTREVISION= 3
CATEGORIES= games
MASTER_SITES= SF/lgames/${PORTNAME} \
SF/nemysisfreebsdp/:icons
SF/nemysisfreebsdp/${CATEGORIES}/:icons
DISTFILES= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX} \
${PORTNAME}_icons${EXTRACT_SUFX}:icons
@ -15,13 +15,11 @@ COMMENT= Atomix-like game of moving marbles in puzzles
LICENSE= GPLv2
USES= gmake
USE_SDL= sdl mixer
USE_GMAKE= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --localstatedir=${ETCDIR}
MAN6= ${PORTNAME}.6
PORTDOCS= *
DOCSRCDIR1= ${WRKSRC}
@ -31,29 +29,29 @@ DOCSRCDIR2= ${WRKSRC}/src/manual
DOCSDIR2= ${DOCSDIR}/manual
DOC_FILES2= *.jpg *.html
NO_STAGE= yes
.include <bsd.port.options.mk>
OPTIONS_DEFINE= DOCS
post-patch:
@${REINPLACE_CMD} -e 's|(datadir)/icons|(datadir)/pixmaps|g' \
-e 's|(datadir)/pixmaps/lmarbles32.gif|(datadir)/pixmaps/lmarbles32.png|g' \
-e 's|(datadir)/pixmaps/lmarbles48.gif|(datadir)/pixmaps/lmarbles48.png|g' \
@${REINPLACE_CMD} -e 's|(datadir)/icons|(datadir)/pixmaps|g ; \
s|(datadir)/pixmaps/lmarbles48.gif|(datadir)/pixmaps/lmarbles48.png|' \
${WRKSRC}/Makefile.in
@${REINPLACE_CMD} -e 's|-m 666||g' \
-e 's|lmarbles.prfs|lmarbles.prfs.sample|g' \
@${REINPLACE_CMD} -e 's|@CFLAGS@|@CFLAGS@ -w| ; \
s|-m 666||g ; \
s|lmarbles.prfs|lmarbles.prfs.sample|g' \
${WRKSRC}/src/Makefile.in
@${REINPLACE_CMD} -e 's|icons/lmarbles48.gif|icons/lmarbles48.png|' \
${WRKSRC}/lmarbles.desktop.in
post-install:
${INSTALL_DATA} ${WRKDIR}/${PORTNAME}*.png ${PREFIX}/share/pixmaps/
@if [ ! -f ${ETCDIR}/lmarbles.prfs ] ; then \
${INSTALL_DATA} ${ETCDIR}/lmarbles.prfs.sample ${ETCDIR}/lmarbles.prfs ; \
fi
${INSTALL_DATA} ${WRKDIR}/${PORTNAME}*.png \
${STAGEDIR}${PREFIX}/share/pixmaps/
.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${DOC_FILES1:S|^|${DOCSRCDIR1}/|} ${DOCSDIR}
${MKDIR} ${DOCSDIR2}
${INSTALL_DATA} ${DOC_FILES2:S|^|${DOCSRCDIR2}/|} ${DOCSDIR2}
.endif
@${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}
.include <bsd.port.mk>

View File

@ -1,4 +1,8 @@
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
man/man6/lmarbles.6.gz
share/applications/lmarbles.desktop
%%DATADIR%%/gfx/board.bmp
%%DATADIR%%/gfx/f_red.bmp
@ -75,7 +79,4 @@ share/pixmaps/lmarbles48.png
@dirrm %%DATADIR%%/gfx/metal
@dirrm %%DATADIR%%/gfx
@dirrm %%DATADIR%%
@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
@dirrmtry %%ETCDIR%%