freebsd-ports/games/hedgewars/Makefile
Tobias C. Berner 5e373eaa92 Make ninja opt-out in cmake.mk
Using ninja instead of make (1) can lead to significant speed ups while building.
Therefore switch from having the ninja generator opt-in to having it opt-out.

Previously cmake-ports that wanted to use ninja could set
    CMAKE_NINJA=yes
now, ports that do not work with ninja can set
    cmake:<existing args>,noninja
Note, that needing this should be an exception and most often points to a broken
cmake of the port.

The ports using cmake were modified
* removed USES=gmake, if ninja is used
* removed MAKE_ARGS, if ninja is used
* added the cmake-argument noninja if necessary

PR:		219629
PR:		213331
Exp-run by:	antoine
Reviewed by:	rakuco
Differential Revision:	https://reviews.freebsd.org/D10748
2017-06-25 21:07:58 +00:00

73 lines
2.1 KiB
Makefile

# Created by: Dmitry Marakasov <amdmi3@FreeBSD.org>
# $FreeBSD$
PORTNAME= hedgewars
PORTVERSION= 0.9.22
PORTREVISION= 2
CATEGORIES= games
MASTER_SITES= http://download.gna.org/hedgewars/ \
http://mirror.amdmi3.ru/distfiles/
DISTNAME= ${PORTNAME}-src-${DISTVERSION}
MAINTAINER= amdmi3@FreeBSD.org
COMMENT= Free Worms-like turn based strategy game
LICENSE= GPLv2 GFDL
LICENSE_COMB= multi
LIB_DEPENDS= libphysfs.so:devel/physfs
USES= cmake:noninja desktop-file-utils lua:51 tar:bzip2
USE_SDL= sdl mixer image ttf net
USE_FPC= opengl libpng rtl-objpas
USE_QT4= corelib gui moc_build network \
qmake_build rcc_build svg xml \
uic_build linguisttools_build
CMAKE_ARGS= -DNOVIDEOREC=1
USE_LDCONFIG= yes
WRKSRC= ${WRKDIR}/${DISTNAME:C/\.[0-9]$//}
PLIST_FILES= bin/${PORTNAME} bin/hwengine \
share/appdata/hedgewars.appdata.xml \
share/applications/${PORTNAME}.desktop \
share/pixmaps/${PORTNAME}.png \
share/pixmaps/${PORTNAME}.xpm \
lib/libphyslayer.so
PORTDATA= *
# VIDEOREC - broken with recent ffmpeg
OPTIONS_DEFINE= SERVER # VIDEOREC
#OPTIONS_DEFAULT=SERVER # until it's unbroken
SERVER_DESC= Build server (requires haskell)
#VIDEOREC_DESC= Enable video recording (requires ffmpeg)
#VIDEOREC_LIB_DEPENDS=libavcodec0.so:multimedia/ffmpeg0
#VIDEOREC_CMAKE_OFF=-DNOVIDEOREC=1
SERVER_BUILD_DEPENDS= ghc:lang/ghc \
hs-vector>=0:devel/hs-vector \
hs-network>=0:net/hs-network \
hs-utf8-string>=0:devel/hs-utf8-string \
hs-bytestring-show>=0:devel/hs-bytestring-show \
hs-dataenc>=0:converters/hs-dataenc \
hs-random>=0:devel/hs-random \
hs-hslogger>=0:devel/hs-hslogger \
hs-SHA>=0:security/hs-SHA \
hs-entropy>=0:security/hs-entropy \
hs-zlib>=0:archivers/hs-zlib
SERVER_CMAKE_OFF= -DNOSERVER=1
SERVER_PLIST_FILES= bin/${PORTNAME}-server
post-patch:
@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' ${WRKSRC}/cmake_modules/*.cmake
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/*
${INSTALL_DATA} ${WRKSRC}/share/hedgewars/Data/misc/hedgewars.desktop \
${STAGEDIR}${PREFIX}/share/applications/
${INSTALL_DATA} ${WRKSRC}/misc/hedgewars.png \
${STAGEDIR}${PREFIX}/share/pixmaps/
.include <bsd.port.mk>