52 lines
1.2 KiB
Makefile
52 lines
1.2 KiB
Makefile
# $OpenBSD: Makefile,v 1.31 2020/07/31 16:09:38 kirby Exp $
|
|
|
|
COMMENT= economic and military simulation game
|
|
|
|
V = 21
|
|
DISTNAME = widelands-build${V}-source
|
|
PKGNAME= widelands-0.${V}
|
|
CATEGORIES= games
|
|
|
|
HOMEPAGE= https://wl.widelands.org/
|
|
MASTER_SITES = https://launchpad.net/widelands/build${V}/build${V}/+download/
|
|
|
|
# GPLv2+
|
|
PERMIT_PACKAGE = Yes
|
|
|
|
WANTLIB += ${COMPILER_LIBCXX} GL GLEW SDL2 SDL2_image SDL2_mixer
|
|
WANTLIB += SDL2_ttf boost_regex-mt boost_unit_test_framework-mt boost_system-mt
|
|
WANTLIB += c execinfo iconv icuuc intl m png z
|
|
|
|
# c++11
|
|
COMPILER = base-clang ports-gcc
|
|
|
|
BUILD_DEPENDS = devel/gettext,-tools
|
|
LIB_DEPENDS = devel/boost \
|
|
devel/gettext,-runtime \
|
|
devel/libexecinfo \
|
|
devel/sdl2-image \
|
|
devel/sdl2-mixer \
|
|
devel/sdl2-ttf \
|
|
graphics/png \
|
|
graphics/glew \
|
|
textproc/icu4c
|
|
|
|
MODULES = devel/cmake \
|
|
lang/lua \
|
|
lang/python
|
|
|
|
MODPY_RUNDEP= No
|
|
|
|
CONFIGURE_ARGS = -DWL_INSTALL_DATADIR=${PREFIX}/share/widelands \
|
|
-DWL_INSTALL_BASEDIR=${PREFIX}/share/widelands \
|
|
-DCMAKE_DISABLE_FIND_PACKAGE_Doxygen=ON
|
|
|
|
CONFIGURE_ENV = LDFLAGS="${LDFLAGS} -lGL -lexecinfo -lintl -liconv \
|
|
-L${LOCALBASE}/lib -L${X11BASE}/lib"
|
|
|
|
NO_TEST= Yes
|
|
|
|
WRKDIST= ${WRKDIR}/${DISTNAME:S/-source//}
|
|
|
|
.include <bsd.port.mk>
|