63 lines
1.5 KiB
Makefile
63 lines
1.5 KiB
Makefile
# $OpenBSD: Makefile,v 1.11 2021/05/27 04:14:22 rsadowski Exp $
|
|
|
|
V = 0.4.10.1
|
|
COMMENT = turn-based space empire and galactic conquest computer game
|
|
DISTNAME = FreeOrion_v${V}_2020-09-25.39cfe10_Source
|
|
PKGNAME = freeorion-${V}
|
|
REVISION = 0
|
|
CATEGORIES = games
|
|
|
|
HOMEPAGE = https://www.freeorion.org/
|
|
MAINTAINER = Tom Murphy <openbsd@pertho.net>
|
|
|
|
#Game: GPLv2+
|
|
#Assets: CC-BY-SA 3.0
|
|
PERMIT_PACKAGE = Yes
|
|
|
|
WANTLIB += ${COMPILER_LIBCXX} GL GLEW SDL2 boost_atomic-mt
|
|
WANTLIB += boost_chrono-mt boost_date_time-mt boost_filesystem-mt
|
|
WANTLIB += boost_iostreams-mt boost_locale-mt boost_log-mt boost_log_setup-mt
|
|
WANTLIB += boost_python${MODPY_VERSION:C/\.//g}-mt boost_regex-mt
|
|
WANTLIB += boost_serialization-mt boost_thread-mt c freetype m ogg openal
|
|
WANTLIB += png ${MODPY_WANTLIB} vorbis vorbisenc vorbisfile z
|
|
|
|
MASTER_SITES = https://github.com/freeorion/freeorion/releases/download/v${V}/
|
|
|
|
COMPILER = base-clang ports-gcc
|
|
|
|
MODULES = devel/cmake \
|
|
lang/python
|
|
|
|
BUILD_DEPENDS = devel/cppcheck \
|
|
devel/doxygen \
|
|
devel/py-codestyle${MODPY_FLAVOR}
|
|
|
|
RUN_DEPENDS = devel/desktop-file-utils \
|
|
x11/gtk+3,-guic
|
|
|
|
LIB_DEPENDS = ${MODPY_LIB_DEPENDS} \
|
|
audio/libogg \
|
|
audio/libvorbis \
|
|
audio/openal \
|
|
devel/sdl2 \
|
|
devel/boost>=1.67.0 \
|
|
graphics/glew \
|
|
graphics/png
|
|
|
|
NO_TEST = Yes
|
|
|
|
WRKDIST = ${WRKDIR}/src-tarball
|
|
|
|
.if ${MACHINE_ARCH:Mpowerpc}
|
|
DPB_PROPERTIES = lonesome
|
|
.endif
|
|
|
|
pre-configure:
|
|
${SUBST_CMD} ${WRKSRC}/GG/CMakeLists.txt
|
|
|
|
post-install:
|
|
${MODPY_BIN} ${MODPY_LIBDIR}/compileall.py \
|
|
${PREFIX}/share/freeorion/default/
|
|
|
|
.include <bsd.port.mk>
|