The logic in USES=python will automatically convert this to 3.8+ by itself. Adjust two ports that only had Python 3.7 mentioned but build fine on Python 3.8 too. finance/quickfix: mark BROKEN with PYTHON libtool: compile: c++ -DHAVE_CONFIG_H -I. -I../.. -I -I. -I.. -I../.. -I../C++ -DLIBICONV_PLUG -DPYTHON_MAJOR_VERSION=3 -Wno-unused-variable -Wno-maybe-uninitialized -O2 -pipe -DLIBICONV_PLUG -fstack-protector-strong -fno-strict-aliasing -DLIBICONV_PLUG -Wall -ansi -Wno-unused-command-line-argument -Wpointer-arith -Wwrite-strings -Wno-overloaded-virtual -Wno-deprecated-declarations -Wno-deprecated -std=c++0x -MT _quickfix_la-QuickfixPython.lo -MD -MP -MF .deps/_quickfix_la-QuickfixPython.Tpo -c QuickfixPython.cpp -fPIC -DPIC -o .libs/_quickfix_la-QuickfixPython.o warning: unknown warning option '-Wno-maybe-uninitialized'; did you mean '-Wno-uninitialized'? [-Wunknown-warning-option] QuickfixPython.cpp:175:11: fatal error: 'Python.h' file not found ^~~~~~~~~~ 1 warning and 1 error generated. Reviewed by: portmgr, vishwin, yuri Differential Revision: <https://reviews.freebsd.org/D40568>
58 lines
1.3 KiB
Makefile
58 lines
1.3 KiB
Makefile
PORTNAME= freeorion
|
|
DISTVERSIONPREFIX= v
|
|
DISTVERSION= 0.5
|
|
PORTREVISION= 1
|
|
CATEGORIES= games
|
|
|
|
MAINTAINER= amdmi3@FreeBSD.org
|
|
COMMENT= Turn-based space empire and galactic conquest game
|
|
WWW= https://www.freeorion.org/
|
|
|
|
LICENSE= GPLv2 CC-BY-SA-3.0
|
|
LICENSE_COMB= multi
|
|
|
|
LIB_DEPENDS= libboost_thread.so:devel/boost-libs \
|
|
${PY_BOOST}
|
|
|
|
USE_GITHUB= yes
|
|
|
|
USES= cmake compiler:c++17-lang python
|
|
CMAKE_ARGS= -Wno-dev
|
|
|
|
LDFLAGS_i386= -Wl,-znotext
|
|
|
|
PORTDOCS= ChangeLog.md README.md
|
|
PORTDATA= *
|
|
|
|
OPTIONS_DEFINE= DOCS TEST CLIENT_GG
|
|
OPTIONS_DEFAULT=DOCS TEST CLIENT_GG
|
|
OPTIONS_SUB= yes
|
|
|
|
TEST_CMAKE_BOOL= BUILD_TESTING
|
|
TEST_TEST_TARGET= unittest
|
|
TEST_USES= localbase
|
|
|
|
CLIENT_GG_DESC= Build GiGi client
|
|
CLIENT_GG_CMAKE_BOOL= BUILD_CLIENT_GG
|
|
CLIENT_GG_USES= gl openal sdl
|
|
CLIENT_GG_USE= SDL=sdl2 GL=gl,glu,glew
|
|
CLIENT_GG_LIB_DEPENDS= libfreetype.so:print/freetype2 \
|
|
libogg.so:audio/libogg \
|
|
libvorbis.so:audio/libvorbis \
|
|
libpng.so:graphics/png
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${PYTHON_VER} != ${PYTHON_DEFAULT}
|
|
# unable to detect boost_python otherwise since required files are
|
|
# not installed by boost-python-libs
|
|
CMAKE_ARGS+= -DBoost_NO_BOOST_CMAKE:BOOL=YES
|
|
.endif
|
|
|
|
post-install-DOCS-on:
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
.for f in ${PORTDOCS}
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}/
|
|
.endfor
|
|
|
|
.include <bsd.port.post.mk>
|