aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRusmir Dusko <nemysis@FreeBSD.org>2013-12-27 22:16:47 +0000
committerRusmir Dusko <nemysis@FreeBSD.org>2013-12-27 22:16:47 +0000
commit069fdc647666f9766bcce891c09572b1889daa56 (patch)
treed232074466fc6f9e2b2f49b132175e6c25fb3e48
parent4aa04aadbe7441e0e837102843f2f5f4f15f79e1 (diff)
downloadports-069fdc647666f9766bcce891c09572b1889daa56.tar.gz
ports-069fdc647666f9766bcce891c09572b1889daa56.zip
Notes
-rw-r--r--games/lmarbles/Makefile42
-rw-r--r--games/lmarbles/pkg-plist7
2 files changed, 24 insertions, 25 deletions
diff --git a/games/lmarbles/Makefile b/games/lmarbles/Makefile
index 726db2d06708..97cd77332341 100644
--- a/games/lmarbles/Makefile
+++ b/games/lmarbles/Makefile
@@ -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
-
-.if ${PORT_OPTIONS:MDOCS}
- ${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${DOC_FILES1:S|^|${DOCSRCDIR1}/|} ${DOCSDIR}
- ${MKDIR} ${DOCSDIR2}
- ${INSTALL_DATA} ${DOC_FILES2:S|^|${DOCSRCDIR2}/|} ${DOCSDIR2}
-.endif
+ ${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}
.include <bsd.port.mk>
diff --git a/games/lmarbles/pkg-plist b/games/lmarbles/pkg-plist
index 2eb7b2f61210..5e54001ed5d3 100644
--- a/games/lmarbles/pkg-plist
+++ b/games/lmarbles/pkg-plist
@@ -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%%