aboutsummaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2014-05-11 09:40:05 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2014-05-11 09:40:05 +0800
commit5e1ba9e294d3783875dc6c19451d1e68da076373 (patch)
tree0a63f63d7d8ee3375427f52ec93e46b69bdf9257 /games
parent662fe2e23b34956ffc49e3d80f260103d14de6bd (diff)
downloadfreebsd-ports-gnome-5e1ba9e294d3783875dc6c19451d1e68da076373.tar.gz
freebsd-ports-gnome-5e1ba9e294d3783875dc6c19451d1e68da076373.tar.zst
freebsd-ports-gnome-5e1ba9e294d3783875dc6c19451d1e68da076373.zip
- Support staging
- Convert USE_BZIP2 to USES
Diffstat (limited to 'games')
-rw-r--r--games/numptyphysics-npcomplete/Makefile7
-rw-r--r--games/numptyphysics-npcomplete/pkg-plist1
-rw-r--r--games/numptyphysics/Makefile10
3 files changed, 8 insertions, 10 deletions
diff --git a/games/numptyphysics-npcomplete/Makefile b/games/numptyphysics-npcomplete/Makefile
index 5c8fc106fef4..d8373736813c 100644
--- a/games/numptyphysics-npcomplete/Makefile
+++ b/games/numptyphysics-npcomplete/Makefile
@@ -13,18 +13,17 @@ COMMENT= Level pack for Numpty Physics
RUN_DEPENDS= numptyphysics:${PORTSDIR}/games/numptyphysics
-USE_BZIP2= yes
+USES= tar:bzip2
NO_BUILD= yes
WRKSRC= ${WRKDIR}/npcomplete
DATADIR= ${PREFIX}/share/numptyphysics
-NO_STAGE= yes
post-extract:
# this level will crash the game
@${RM} -f "${WRKSRC}/L02_bridge Gaps tut.nph"
do-install:
- ${MKDIR} ${DATADIR}
- ${INSTALL_DATA} ${WRKSRC}/*.nph ${DATADIR}
+ ${MKDIR} ${STAGEDIR}${DATADIR}
+ ${INSTALL_DATA} ${WRKSRC}/*.nph ${STAGEDIR}${DATADIR}
.include <bsd.port.mk>
diff --git a/games/numptyphysics-npcomplete/pkg-plist b/games/numptyphysics-npcomplete/pkg-plist
index f510c8690b6d..c31856f5fd02 100644
--- a/games/numptyphysics-npcomplete/pkg-plist
+++ b/games/numptyphysics-npcomplete/pkg-plist
@@ -90,3 +90,4 @@
%%DATADIR%%/ship.nph
%%DATADIR%%/surfs_up.nph
%%DATADIR%%/szymanowski1.nph
+@dirrmtry %%DATADIR%%
diff --git a/games/numptyphysics/Makefile b/games/numptyphysics/Makefile
index 9d9acc1350e9..9935df3637f2 100644
--- a/games/numptyphysics/Makefile
+++ b/games/numptyphysics/Makefile
@@ -12,7 +12,7 @@ MASTER_SITES= http://mirror.amdmi3.ru/distfiles/ \
MAINTAINER= amdmi3@FreeBSD.org
COMMENT= Drawing physics-based puzzle game
-USE_BZIP2= yes
+USES= tar:bzip2 desktop-file-utils
GNU_CONFIGURE= yes
USE_SDL= sdl image
INSTALLS_ICONS= yes
@@ -24,11 +24,9 @@ CPPFLAGS+= -I${LOCALBASE}/include -DINSTALL_BASE_PATH=\"\\\"${DATADIR}\\\"\"
WRKSRC= ${WRKDIR}/${PORTNAME}
OPTIONS_DEFINE= MOREFPS
+OPTIONS_DEFAULT=MOREFPS
MOREFPS_DESC= Smoother graphics support
-OPTIONS_DEFAULT= MOREFPS
-
-NO_STAGE= yes
.include <bsd.port.options.mk>
post-patch:
@@ -42,7 +40,7 @@ post-patch:
@${REINPLACE_CMD} -e 's|^Exec=.*|Exec=${PORTNAME}|; /^X-Icon-Path/ d' \
${WRKSRC}/data/${PORTNAME}.desktop
-post-install:
- @${STRIP_CMD} ${PREFIX}/bin/${PORTNAME}
+post-build:
+ ${STRIP_CMD} ${WRKSRC}/${PORTNAME}
.include <bsd.port.mk>