# Created by: Dmitry Marakasov # $FreeBSD$ PORTNAME= hedgewars PORTVERSION= 0.9.22 PORTREVISION= 1 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 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 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