summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornemysis <nemysis@FreeBSD.org>2013-12-06 23:31:35 +0000
committernemysis <nemysis@FreeBSD.org>2013-12-06 23:31:35 +0000
commitf0939028c27aa631aeb49ce3430e67af64ec72e0 (patch)
tree8684c974bdde6b0cf2614d95033241398ddf73fd
parenta8b73f549fb61e2a3aebffd893603336752e1d2b (diff)
downloadFreeBSD-ports-f0939028c27aa631aeb49ce3430e67af64ec72e0.zip
FreeBSD-ports-f0939028c27aa631aeb49ce3430e67af64ec72e0.tar.gz
- Change master sites
- Change maintainer email to @FreeBSD.org - Add DOCS Option - Change desktop entry - Support STAGEDIR Approved by: pawel / wg (mentors, implicit)
-rw-r--r--games/defendguin/Makefile35
-rw-r--r--games/defendguin/pkg-plist1
2 files changed, 17 insertions, 19 deletions
diff --git a/games/defendguin/Makefile b/games/defendguin/Makefile
index 4ba0cd27..adcfbbb 100644
--- a/games/defendguin/Makefile
+++ b/games/defendguin/Makefile
@@ -7,13 +7,13 @@ PORTREVISION= 4
CATEGORIES= games
MASTER_SITES= ftp://ftp.tuxpaint.org/unix/x/defendguin/src/ \
ftp://ftp.billsgames.com/unix/x/defendguin/src/ \
- SF/nemysisfreebsdp/:icons
+ SF/nemysisfreebsdp/${CATEGORIES}/:icons
DISTFILES= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX} \
${PORTNAME}.png:icons
DIST_SUBDIR= ${PORTNAME}
EXTRACT_ONLY= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX}
-MAINTAINER= nemysis@gmx.ch
+MAINTAINER= nemysis@FreeBSD.org
COMMENT= Your mission is to defend little penguinoids
LICENSE= GPLv2
@@ -24,15 +24,10 @@ USE_SDL= mixer sdl
PORTDOCS= AUTHORS.txt CHANGES.txt README.txt TODO.txt
-MAN6= ${PORTNAME}.6
+OPTIONS_DEFINE= DOCS
-DESKTOP_ENTRIES="Defendguin" "${COMMENT}" \
- "share/pixmaps/${PORTNAME}" \
- "${PORTNAME}" "Game;ArcadeGame;" false
-
-
-NO_STAGE= yes
-.include <bsd.port.options.mk>
+DESKTOP_ENTRIES="Defendguin" "" "${PORTNAME}" \
+ "${PORTNAME}" "Game;ArcadeGame;" ""
do-build:
cd ${WRKSRC} && ${CC} ${CFLAGS} -DDATA_PREFIX=\"${DATADIR}/\" \
@@ -40,14 +35,16 @@ do-build:
`${SDL_CONFIG} --libs` -lSDL_mixer
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/
- @(cd ${WRKSRC}/../data && ${COPYTREE_SHARE} "images music sounds" ${DATADIR})
- ${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}.png ${PREFIX}/share/pixmaps/
- ${INSTALL_MAN} ${MAN6:S|^|${WRKSRC}/|} ${MAN6PREFIX}/man/man6/
-
-.if ${PORT_OPTIONS:MDOCS}
- ${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/../docs/|} ${DOCSDIR}
-.endif
+ ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
+
+.for d in images music sounds
+ @(cd ${WRKSRC}/../data && ${COPYTREE_SHARE} ${d} ${STAGEDIR}${DATADIR})
+.endfor
+
+ ${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}.png ${STAGEDIR}${PREFIX}/share/pixmaps/
+ ${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.6 ${STAGEDIR}${MAN6PREFIX}/man/man6/
+
+ ${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/../docs/|} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
diff --git a/games/defendguin/pkg-plist b/games/defendguin/pkg-plist
index 481f95c..3d48ce1 100644
--- a/games/defendguin/pkg-plist
+++ b/games/defendguin/pkg-plist
@@ -1,4 +1,5 @@
bin/defendguin
+man/man6/defendguin.6.gz
%%DATADIR%%/images/baiter/baiter0.bmp
%%DATADIR%%/images/baiter/baiter1.bmp
%%DATADIR%%/images/baiter/baiter2.bmp
OpenPOWER on IntegriCloud