blob: 9d4619274c79877dff7b22f60757cecd24e82eef (
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
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>
|