svn commit: r395153 - head/games/blinkensisters
Dmitry Marakasov
amdmi3 at FreeBSD.org
Mon Aug 24 00:00:31 UTC 2015
Author: amdmi3
Date: Mon Aug 24 00:00:30 2015
New Revision: 395153
URL: https://svnweb.freebsd.org/changeset/ports/395153
Log:
- Switch to options helpers
Modified:
head/games/blinkensisters/Makefile
Modified: head/games/blinkensisters/Makefile
==============================================================================
--- head/games/blinkensisters/Makefile Sun Aug 23 23:59:05 2015 (r395152)
+++ head/games/blinkensisters/Makefile Mon Aug 24 00:00:30 2015 (r395153)
@@ -10,6 +10,8 @@ MASTER_SITES= SF/${PORTNAME}/Blinkensist
MAINTAINER= amdmi3 at 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:${PORTS
.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>
More information about the svn-ports-all
mailing list