summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornemysis <nemysis@FreeBSD.org>2014-02-02 22:20:34 +0000
committernemysis <nemysis@FreeBSD.org>2014-02-02 22:20:34 +0000
commit2a036dd8032f095c577923b5e3b5ae37f7b24d11 (patch)
tree57c79b9094617afb000eeb9c28daa5a6a14b22c0
parent69df4fde103d27a4148bd103d2cc7aae0126a22f (diff)
downloadFreeBSD-ports-2a036dd8032f095c577923b5e3b5ae37f7b24d11.zip
FreeBSD-ports-2a036dd8032f095c577923b5e3b5ae37f7b24d11.tar.gz
- Bump PORTREVISION
- Change master sites and add icon - Take maintainership - Add license (GPLv2) - USES gmake instead of USE_GMAKE - Change DOCS and add DOCS Option - Add Desktop entry file - Change pkg-plist, remove DOCS PR: ports/174069 Submitted by: nemysis (self)
-rw-r--r--misc/explosions/Makefile56
-rw-r--r--misc/explosions/distinfo2
-rw-r--r--misc/explosions/pkg-plist5
3 files changed, 36 insertions, 27 deletions
diff --git a/misc/explosions/Makefile b/misc/explosions/Makefile
index 9fc31cc..7a54ade 100644
--- a/misc/explosions/Makefile
+++ b/misc/explosions/Makefile
@@ -3,39 +3,49 @@
PORTNAME= explosions
PORTVERSION= 0.2005.07.31
-PORTREVISION= 12
+PORTREVISION= 13
CATEGORIES= misc
-MASTER_SITES= ftp://ftp.billsgames.com/unix/x/explosions/
-DISTNAME= ${PORTNAME}-${PORTVERSION:S/^0.//}
-
-MAINTAINER= ports@FreeBSD.org
+MASTER_SITES= ftp://ftp.tuxpaint.org/unix/x/${PORTNAME}/ \
+ ftp://ftp.billsgames.com/unix/x/${PORTNAME}/ \
+ SF/nemysisfreebsdp/${CATEGORIES}/:icons
+DISTFILES= ${PORTNAME}-${PORTVERSION:S/^0.//}${EXTRACT_SUFX} \
+ ${PORTNAME}.png:icons
+EXTRACT_ONLY= ${PORTNAME}-${DISTVERSION:S/^0.//}${EXTRACT_SUFX}
+
+MAINTAINER= nemysis@FreeBSD.org
COMMENT= 3D objects flying around resembling explosions with various effects
-USE_SDL= sdl image
-USE_GMAKE= yes
-USES= perl5
+LICENSE= GPLv2
+
+WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:S/^0.//}
+
+USES= gmake perl5
USE_PERL5= build
+USE_SDL= sdl image
-NO_STAGE= yes
-.include <bsd.port.options.mk>
+PORTDOCS= BUGS.txt CHANGES.txt README.txt
+
+OPTIONS_DEFINE= DOCS
+
+DESKTOP_ENTRIES="Explosions" "" "${PORTNAME}" \
+ "${PORTNAME}" "Game;Graphics;" ""
post-patch:
- @${REINPLACE_CMD} -i '' -e 's!CFLAGS=-Wall -O2!CFLAGS+=-Wall!; \
- s!sdl-config!${SDL_CONFIG}!' \
+ @${REINPLACE_CMD} -e 's|CFLAGS=-Wall -O2|CFLAGS+=-Wall|; \
+ s|sdl-config|${SDL_CONFIG}|' \
${WRKSRC}/Makefile
- @${REINPLACE_CMD} -i '' -e 's!spark%d.png!${DATADIR}/spark%d.png!' \
+ @${REINPLACE_CMD} -e 's|spark%d.png|${DATADIR}/spark%d.png|' \
${WRKSRC}/explosions.c
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/explosions ${PREFIX}/bin
- @${MKDIR} ${DATADIR}
- ${INSTALL_DATA} ${WRKSRC}/spark?.png ${DATADIR}
-
-.if ${PORT_OPTIONS:MDOCS}
- @${MKDIR} ${DOCSDIR}
-.for file in BUGS.txt CHANGES.txt README.txt
- ${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
-.endfor
-.endif
+ ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
+ @${MKDIR} ${STAGEDIR}${DATADIR}
+ ${INSTALL_DATA} ${WRKSRC}/spark?.png ${STAGEDIR}${DATADIR}
+
+ ${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}.png \
+ ${STAGEDIR}${PREFIX}/share/pixmaps/
+
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
diff --git a/misc/explosions/distinfo b/misc/explosions/distinfo
index 38461a4..346c44a 100644
--- a/misc/explosions/distinfo
+++ b/misc/explosions/distinfo
@@ -1,2 +1,4 @@
SHA256 (explosions-2005.07.31.tar.gz) = 8203ed455caee9c0ad0e75b31462bb7c7a9c2860079deb7671c914d5cde37ae8
SIZE (explosions-2005.07.31.tar.gz) = 40219
+SHA256 (explosions.png) = 3f5c330d41b5bf46598a00f8d75ebbe2bfa08bbbb9a649f0e96833331d727a87
+SIZE (explosions.png) = 1740
diff --git a/misc/explosions/pkg-plist b/misc/explosions/pkg-plist
index aefcccd..d5ee7d0 100644
--- a/misc/explosions/pkg-plist
+++ b/misc/explosions/pkg-plist
@@ -1,7 +1,4 @@
bin/explosions
-%%PORTDOCS%%%%DOCSDIR%%/BUGS.txt
-%%PORTDOCS%%%%DOCSDIR%%/CHANGES.txt
-%%PORTDOCS%%%%DOCSDIR%%/README.txt
%%DATADIR%%/spark1.png
%%DATADIR%%/spark2.png
%%DATADIR%%/spark3.png
@@ -9,5 +6,5 @@ bin/explosions
%%DATADIR%%/spark5.png
%%DATADIR%%/spark6.png
%%DATADIR%%/spark7.png
+share/pixmaps/explosions.png
@dirrm %%DATADIR%%
-%%PORTDOCS%%@dirrm %%DOCSDIR%%
OpenPOWER on IntegriCloud