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>
73 lines
1.7 KiB
Makefile
73 lines
1.7 KiB
Makefile
PORTNAME= quickfix
|
|
PORTVERSION= 1.15.1
|
|
DISTVERSIONPREFIX= v
|
|
PORTREVISION= 2
|
|
CATEGORIES= finance devel
|
|
|
|
MAINTAINER= m.tsatsenko@gmail.com
|
|
COMMENT= Free FIX Protocol Implementation
|
|
WWW= https://www.quickfixengine.org/
|
|
|
|
LICENSE= GPLv3+
|
|
|
|
BROKEN_i386= fails to build
|
|
|
|
BUILD_DEPENDS= bash:shells/bash
|
|
|
|
USES= autoreconf gmake gnome iconv libtool shebangfix ssl
|
|
|
|
USE_GITHUB= yes
|
|
|
|
USE_GNOME= libxml2
|
|
USE_LDCONFIG= yes
|
|
SHEBANG_FILES= examples/tradeclientgui/banzai/build.sh
|
|
HAS_CONFIGURE= yes
|
|
CONFIGURE_ENV= CXX=${CXX} CC=${CC} LIBS=-L${LOCALBASE}/lib/
|
|
CONFIGURE_ARGS+= --without-python2
|
|
|
|
OPTIONS_DEFINE= MYSQL PGSQL PYTHON RUBY JAVA
|
|
OPTIONS_DEFAULT= MYSQL
|
|
OPTIONS_SUB= YES
|
|
PGSQL_USES= pgsql
|
|
PGSQL_CONFIGURE_WITH= postgresql
|
|
MYSQL_USES= mysql
|
|
MYSQL_CONFIGURE_WITH= mysql
|
|
MYSQL_VARS= IGNORE_WITH_MYSQL=80
|
|
PYTHON_USES= python:3.8
|
|
PYTHON_CONFIGURE_WITH= python3
|
|
RUBY_USES= ruby
|
|
RUBY_CONFIGURE_WITH= ruby
|
|
RUBY_LIB_DEPENDS+=libunwind.so:devel/libunwind
|
|
JAVA_USE= java=yes
|
|
JAVA_CONFIGURE_WITH= java
|
|
|
|
INSTALL_TARGET=install-strip
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MPYTHON}
|
|
BROKEN= fails to build
|
|
.endif
|
|
|
|
.if ${ARCH} != amd64 && ${ARCH} != i386
|
|
CXXFLAGS+= -DENABLE_BOOST_ATOMIC_COUNT
|
|
LIB_DEPENDS+= libboost_system.so:devel/boost-libs
|
|
USES+= compiler:c++11-lang localbase
|
|
.endif
|
|
|
|
post-extract:
|
|
@${REINPLACE_CMD} -e 's|^make|gmake|' \
|
|
${WRKSRC}/src/ruby/make_ruby.sh
|
|
@${REINPLACE_CMD} -e 's|CXX = g++|CXX = ${CXX}|' \
|
|
${WRKSRC}/UnitTest++/Makefile
|
|
pre-configure:
|
|
cd ${WRKSRC} && ${sh} ${WRKSRC}/bootstrap
|
|
@${REINPLACE_CMD} -e 's|pkgconfdir = .*|pkgconfdir=${LOCALBASE}/libdata/pkgconfig|' \
|
|
${WRKSRC}/Makefile.in
|
|
pre-build:
|
|
${GMAKE} -C ${WRKSRC}/UnitTest++ TestUnitTest++
|
|
|
|
post-install-RUBY-on:
|
|
${STRIP_CMD} ${STAGEDIR}${RUBY_SITEARCHLIBDIR}/quickfix.so
|
|
|
|
.include <bsd.port.mk>
|