aboutsummaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authornemysis <nemysis@FreeBSD.org>2014-01-25 03:04:50 +0800
committernemysis <nemysis@FreeBSD.org>2014-01-25 03:04:50 +0800
commit979797f582f3b0986b7f1168d6f86f8ae23000a5 (patch)
treef41de855e622a2b35cb8311781704461a4f91168 /games
parent238cf413b5aea774f24669dc4cfa77ae9a84ac7c (diff)
downloadfreebsd-ports-gnome-979797f582f3b0986b7f1168d6f86f8ae23000a5.tar.gz
freebsd-ports-gnome-979797f582f3b0986b7f1168d6f86f8ae23000a5.tar.zst
freebsd-ports-gnome-979797f582f3b0986b7f1168d6f86f8ae23000a5.zip
- Bump PORTREVISION
- Disable all warnings with -w - Support STAGEDIR - Change Desktop entry file - Add REINPLACE_CMD to store highscore in $HOME - Remove not needed pkg-install.in Reviewed by: horia
Diffstat (limited to 'games')
-rw-r--r--games/xgalaga++/Makefile36
-rw-r--r--games/xgalaga++/files/pkg-install.in7
2 files changed, 15 insertions, 28 deletions
diff --git a/games/xgalaga++/Makefile b/games/xgalaga++/Makefile
index 2d48b24a2867..10e802b0dd62 100644
--- a/games/xgalaga++/Makefile
+++ b/games/xgalaga++/Makefile
@@ -3,6 +3,7 @@
PORTNAME= xgalaga++
PORTVERSION= 0.8.4
+PORTREVISION= 1
CATEGORIES= games
MASTER_SITES= http://marc.mongenet.ch/OSS/XGalaga/ \
SF/nemysisfreebsdp/:icons
@@ -20,39 +21,32 @@ WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
USES= gmake
ALL_TARGET= ${PORTNAME}
USE_XORG= x11 xpm
-MAN6= xgalaga++.6
-
-SUB_FILES= pkg-install
+CFLAGS+= -w
PLIST_FILES= bin/${PORTNAME} \
+ man/man6/${PORTNAME}.6.gz \
share/pixmaps/${PORTNAME}.png
PORTDOCS= README
-DESKTOP_ENTRIES="XGalaga++" "${COMMENT}" "${PORTNAME}" \
- "${PORTNAME}" "Game;ArcadeGame;" false
-
OPTIONS_DEFINE= DOCS
-NO_STAGE= yes
-.include <bsd.port.options.mk>
+DESKTOP_ENTRIES="XGalaga++" "" "${PORTNAME}" \
+ "${PORTNAME}" "Game;ArcadeGame;" ""
post-patch:
- @${REINPLACE_CMD} -e '/^CXX =/ d; s|/usr/local|${LOCALBASE}|' \
+ @${REINPLACE_CMD} -e 's|CXX =|CXX ?=|; \
+ s|HIGH_SCORES_FILE=/|#HIGH_SCORES_FILE=/|; \
+ s|#HIGH_SCORES_FILE=.|HIGH_SCORES_FILE=.|; \
+ s|/usr/local|${LOCALBASE}|' \
${WRKSRC}/Makefile
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/
- ${INSTALL_MAN} ${WRKSRC}/xgalaga++.6x ${MAN6PREFIX}/man/man6/xgalaga++.6
- @${CHGRP} games ${PREFIX}/bin/${PORTNAME}
- @${CHMOD} g+s ${PREFIX}/bin/${PORTNAME}
- ${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}.png ${PREFIX}/share/pixmaps/
-
-.if ${PORT_OPTIONS:MDOCS}
- @${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
-.endif
-
- @${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
+ ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
+ ${INSTALL_MAN} ${WRKSRC}/xgalaga++.6x ${STAGEDIR}${MAN6PREFIX}/man/man6/xgalaga++.6
+ ${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/games/xgalaga++/files/pkg-install.in b/games/xgalaga++/files/pkg-install.in
deleted file mode 100644
index 4e2eb0f36e2e..000000000000
--- a/games/xgalaga++/files/pkg-install.in
+++ /dev/null
@@ -1,7 +0,0 @@
-#!/bin/sh
-
-FILE="/var/games/xgalaga++.scores"
-
-touch $FILE
-chgrp games $FILE
-chmod 664 $FILE