aboutsummaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2015-08-24 08:00:30 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2015-08-24 08:00:30 +0800
commit7f467f319f4da7cb21c4ca644f19bf2f12c633f5 (patch)
tree055ea08ad1eea47fcd9986e2a3cd4415ef8c9b96 /games
parent5dce4669c67b2ee7f1f9685d457cee374835afc4 (diff)
downloadfreebsd-ports-gnome-7f467f319f4da7cb21c4ca644f19bf2f12c633f5.tar.gz
freebsd-ports-gnome-7f467f319f4da7cb21c4ca644f19bf2f12c633f5.tar.zst
freebsd-ports-gnome-7f467f319f4da7cb21c4ca644f19bf2f12c633f5.zip
- Switch to options helpers
Diffstat (limited to 'games')
-rw-r--r--games/blinkensisters/Makefile16
1 files changed, 6 insertions, 10 deletions
diff --git a/games/blinkensisters/Makefile b/games/blinkensisters/Makefile
index 552b05741bc7..4fc409ee0203 100644
--- a/games/blinkensisters/Makefile
+++ b/games/blinkensisters/Makefile
@@ -10,6 +10,8 @@ MASTER_SITES= SF/${PORTNAME}/Blinkensisters%20-%20Lost%20Pixels/LostPixels%20${P
MAINTAINER= amdmi3@FreeBSD.org
COMMENT= Parallax-style 2D scrolling platform game
+BROKEN_sparc64= does not compile on sparc64
+
USE_SDL= sdl image ttf
USE_PERL5= build
USES= cmake perl5 compiler:c++11-lang # actually, old gcc fails in theora.h
@@ -49,10 +51,6 @@ THEORA_LIB_DEPENDS= libtheora.so:${PORTSDIR}/multimedia/libtheora
.include <bsd.port.options.mk>
-.if ${ARCH} == "sparc64"
-BROKEN= Does not compile on sparc64
-.endif
-
.if ${PORT_OPTIONS:MADDONS}
DISTNAME= LostPixels-${PORTVERSION}-source-with-addons
PKGNAMESUFFIX= -with-addons
@@ -64,18 +62,16 @@ post-patch:
@${REINPLACE_CMD} -e 's|share/blinkensisters|${DATADIR:S,${PREFIX}/,,}|; \
s|share/doc/blinkensisters|${DOCSDIR:S,${PREFIX}/,,}|' \
${WRKSRC}/CMakeLists.txt
-.if ${PORT_OPTIONS:MADDONS}
+
+post-patch-ADDONS-on:
@${FIND} ${ADDONS_WRKSRC} -name "Makefile" | ${XARGS} \
${REINPLACE_CMD} -e 's|bmfcompress|${WRKSRC}/&|'
-.endif
-.if ${PORT_OPTIONS:MADDONS}
-post-build:
+post-build-ADDONS-on:
cd ${ADDONS_WRKSRC} && ${MAKE}
-post-install:
+post-install-ADDONS-on:
${MKDIR} ${STAGEDIR}${DATADIR}
${INSTALL_DATA} ${ADDONS_WRKSRC}/for_upload/*.bmf ${STAGEDIR}${DATADIR}/
-.endif
.include <bsd.port.mk>