1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-23 09:10:43 +00:00

- Switch to options helpers

This commit is contained in:
Dmitry Marakasov 2015-08-24 00:00:30 +00:00
parent dfe369a605
commit ac5c890367
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=395153

View File

@ -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>