mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-19 03:52:17 +00:00
20948f4616
* lang/fpc was updated to 3.2.2
74 lines
2.2 KiB
Makefile
74 lines
2.2 KiB
Makefile
PORTNAME= hedgewars
|
|
PORTVERSION= 1.0.0
|
|
PORTREVISION= 6
|
|
CATEGORIES= games
|
|
MASTER_SITES= http://www.hedgewars.org/download/releases/ \
|
|
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
|
|
|
|
BROKEN_i386= ld: error: duplicate symbol: LandDirty_dimension_info
|
|
|
|
LIB_DEPENDS= libphysfs.so:devel/physfs \
|
|
libpng.so:graphics/png
|
|
|
|
USES= cmake:noninja desktop-file-utils fpc gl lua:51 pkgconfig qt:5 \
|
|
sdl tar:bzip2
|
|
USE_SDL= sdl2 mixer2 image2 ttf2 net2
|
|
USE_FPC= opengl libpng rtl-objpas rtl-extra
|
|
USE_QT= core gui widgets network \
|
|
qmake_build buildtools_build \
|
|
linguisttools_build
|
|
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= *
|
|
|
|
USE_LOCALE= en_US.UTF-8
|
|
MAKE_ENV= LOCALBASE="${LOCALBASE}" # fpc issue https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=251712
|
|
CONFIGURE_ENV= LOCALBASE="${LOCALBASE}" # fpc issue https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=251712
|
|
|
|
OPTIONS_DEFINE= VIDEOREC
|
|
OPTIONS_DEFAULT=VIDEOREC
|
|
OPTIONS_EXCLUDE_i386= VIDEOREC # some pascal issues preventing to use it
|
|
|
|
VIDEOREC_DESC= Enable video recording (requires ffmpeg)
|
|
|
|
VIDEOREC_LIB_DEPENDS= libavcodec.so:multimedia/ffmpeg
|
|
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-patch:
|
|
@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' ${WRKSRC}/cmake_modules/*.cmake
|
|
@${REINPLACE_CMD} -e "s|'liblua'|'liblua-${LUA_VER}'|" ${WRKSRC}/hedgewars/LuaPas.pas
|
|
@${REINPLACE_CMD} -e "/linklib/ s|lua|&-${LUA_VER}|" ${WRKSRC}/hedgewars/LuaPas.pas
|
|
|
|
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.post.mk>
|