f98f93005f
- Replace LAUNCHER option with more generic QT as it now controls the build of Qt-based game launcher and map editor programs - Disable build of LUA/ERM scripting modules as scripting support is far from "production ready" and not something that should be offered to end-users for the time being - Add a couple of missing Oxford commas while I'm at it Reported by: portscout
49 lines
1.3 KiB
Makefile
49 lines
1.3 KiB
Makefile
PORTNAME= vcmi
|
|
PORTVERSION= 1.1.0
|
|
CATEGORIES= games
|
|
|
|
MAINTAINER= danfe@FreeBSD.org
|
|
COMMENT= Open-source engine for Heroes of Might and Magic III
|
|
WWW= https://vcmi.eu/
|
|
|
|
LICENSE= GPLv2+
|
|
|
|
LIB_DEPENDS= libavcodec.so:multimedia/ffmpeg \
|
|
libboost_atomic.so:devel/boost-libs \
|
|
libfuzzylite.so:devel/fuzzylite \
|
|
libminizip.so:archivers/minizip \
|
|
libtbb.so:devel/onetbb
|
|
RUN_DEPENDS= bash:shells/bash
|
|
|
|
USES= cmake pkgconfig sdl shebangfix
|
|
USE_GITHUB= yes
|
|
USE_SDL= image2 mixer2 sdl2 ttf2
|
|
SHEBANG_FILES= vcmibuilder
|
|
CMAKE_ARGS= -DCMAKE_INSTALL_RPATH_USE_LINK_PATH:BOOL=ON \
|
|
-DCMAKE_INSTALL_RPATH:PATH=${PREFIX}/lib/${PORTNAME} \
|
|
-DENABLE_GITVERSION:BOOL=OFF -DENABLE_TEST:BOOL=OFF \
|
|
-DFORCE_BUNDLED_FL:BOOL=OFF
|
|
|
|
PORTDOCS= AUTHORS ChangeLog README.md
|
|
|
|
OPTIONS_DEFINE= DOCS QT
|
|
OPTIONS_DEFAULT= QT
|
|
OPTIONS_SUB= yes
|
|
|
|
QT_DESC= Build Qt-based game launcher and map editor
|
|
QT_USES= qt:5
|
|
QT_USE= QT=buildtools:build,qmake:build,core,gui,network,widgets
|
|
QT_CMAKE_OFF= -DENABLE_LAUNCHER:BOOL=OFF -DENABLE_EDITOR:BOOL=OFF
|
|
|
|
post-configure:
|
|
${SED} -e 's,@GIT_SHA1@,5278271,' ${WRKSRC}/Version.cpp.in \
|
|
> ${BUILD_WRKSRC}/Version.cpp
|
|
|
|
post-install-DOCS-on:
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
|
|
|
|
.include <bsd.port.mk>
|
|
|
|
PATCH_ARGS+= -l
|