blob: c1f52ad0cc24212e8200bff4a83027502d79b45a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
PORTNAME= widelands
DISTVERSIONPREFIX= v
DISTVERSION= 1.1
PORTREVISION= 8
CATEGORIES= games
MAINTAINER= amdmi3@FreeBSD.org
COMMENT= Realtime strategy game inspired by Settlers II
WWW= https://wl.widelands.org/
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libpng.so:graphics/png \
libicuuc.so:devel/icu \
libboost_system.so:devel/boost-libs \
libminizip.so:archivers/minizip
BUILD_DEPENDS= ${PREFIX}/include/asio.hpp:net/asio
USES= cmake compiler:c++11-lib cpe gettext gl pkgconfig \
python:build sdl
USE_GITHUB= yes
USE_GL= gl glew
USE_SDL= sdl2 mixer2 image2 ttf2
CMAKE_ARGS= -DWL_INSTALL_BINDIR=bin \
-DWL_INSTALL_BASEDIR="${PREFIX}" \
-DWL_INSTALL_DATADIR="${DATADIR}" \
-DWL_INSTALL_DOCDIR="${DOCSDIR}" \
-DWL_VERSION="${DISTVERSION}" \
-DWL_OPTIMIZE_FLAGS="" \
-Wno-dev
CMAKE_BUILD_TYPE=None
PORTSCOUT= limit:^[0-9]+\.
PORTDATA= *
PORTDOCS= *
OPTIONS_DEFINE= DOCS LTO NLS TEST
OPTIONS_DEFAULT=LTO
OPTIONS_EXCLUDE_riscv64= LTO
LTO_CMAKE_ON= -DUSE_FLTO_IF_AVAILABLE:STRING="yes"
NLS_CMAKE_BOOL= OPTION_BUILD_TRANSLATIONS
TEST_CMAKE_BOOL=OPTION_BUILD_TESTS
post-patch:
@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' \
${WRKSRC}/cmake/Modules/*.cmake
.include <bsd.port.mk>
|