diff options
Diffstat (limited to 'games/hedgewars/Makefile')
-rw-r--r-- | games/hedgewars/Makefile | 32 |
1 files changed, 7 insertions, 25 deletions
diff --git a/games/hedgewars/Makefile b/games/hedgewars/Makefile index 8155aad9143d..28471e857b03 100644 --- a/games/hedgewars/Makefile +++ b/games/hedgewars/Makefile @@ -1,6 +1,6 @@ PORTNAME= hedgewars -PORTVERSION= 1.0.2 -PORTREVISION= 5 +PORTVERSION= 1.0.3 +PORTREVISION= 1 CATEGORIES= games MASTER_SITES= https://www.hedgewars.org/download/releases/ DISTNAME= ${PORTNAME}-src-${DISTVERSION} @@ -15,8 +15,6 @@ LICENSE_COMB= multi LIB_DEPENDS= libphysfs.so:devel/physfs \ libpng.so:graphics/png -ONLY_FOR_ARCHS= amd64 i386 - USES= cmake:noninja desktop-file-utils fpc gl lua:51 pkgconfig qt:5 \ sdl tar:bzip2 USE_SDL= sdl2 mixer2 image2 ttf2 net2 @@ -28,36 +26,20 @@ USE_GL= gl glu USE_LDCONFIG= yes CMAKE_ON= NOSERVER -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 \ - lib/libphyslayer.so.1.0 PORTDATA= * +ONLY_FOR_ARCHS= amd64 +ONLY_FOR_ARCHS_REASON= FPC and GHC limitations + OPTIONS_DEFINE= VIDEOREC OPTIONS_DEFAULT=VIDEOREC -OPTIONS_EXCLUDE_i386= VIDEOREC # some pascal issues preventing to use it +OPTIONS_SUB= yes VIDEOREC_DESC= Enable video recording (requires ffmpeg) VIDEOREC_LIB_DEPENDS= libavcodec.so.58:multimedia/ffmpeg4 -VIDEOREC_PLIST_FILES= lib/libavwrapper.so \ - lib/libavwrapper.so.1.0 VIDEOREC_CMAKE_OFF= -DNOVIDEOREC=1 -.include <bsd.port.pre.mk> - -.if ${ARCH} == i386 -BUILD_DEPENDS+= ghc:lang/ghc -.endif - -post-extract: - # Remove included CMakeFile, which is incompatible with >= cmake-3.24 - ${RM} ${WRKSRC}/cmake_modules/CMakeSystemSpecificInformation.cmake - post-patch: @${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' ${WRKSRC}/cmake_modules/*.cmake @${REINPLACE_CMD} -e "s|'liblua'|'liblua-${LUA_VER}'|" ${WRKSRC}/hedgewars/LuaPas.pas @@ -72,4 +54,4 @@ post-install: ${INSTALL_DATA} ${WRKSRC}/misc/hedgewars.png \ ${STAGEDIR}${PREFIX}/share/pixmaps/ -.include <bsd.port.post.mk> +.include <bsd.port.mk> |