forked from Lainports/freebsd-ports
defined via Mk/bsd.default-versions.mk which has moved from GCC 7.4 t GCC 8.2 under most circumstances. This includes ports - with USE_GCC=yes or USE_GCC=any, - with USES=fortran, - using Mk/bsd.octave.mk which in turn features USES=fortran, and - with USES=compiler specifying openmp, nestedfct, c11, c++0x, c++11-lang, c++11-lib, c++14-lang, c++17-lang, or gcc-c++11-lib plus, as a double check, everything INDEX-11 showed depending on lang/gcc7. PR: 231590
80 lines
2 KiB
Makefile
80 lines
2 KiB
Makefile
# Created by: Valery Komarov <komarov@valerka.net>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= thrift
|
|
PORTVERSION= ${THRIFT_PORTVERSION} # to keep in sync with thrift
|
|
PORTREVISION= 5
|
|
PORTEPOCH= 1
|
|
CATEGORIES= devel
|
|
MASTER_SITES= APACHE/thrift/${PORTVERSION}
|
|
PKGNAMESUFFIX= -cpp
|
|
DISTNAME= thrift-${PORTVERSION}
|
|
|
|
MAINTAINER= komarov@valerka.net
|
|
COMMENT= C++ interface to Thrift
|
|
|
|
LIB_DEPENDS= libboost_system.so:devel/boost-libs \
|
|
libevent.so:devel/libevent
|
|
|
|
DISTINFO_FILE= ${.CURDIR}/../thrift/distinfo
|
|
|
|
BROKEN_powerpc64= fails to compile: undefined reference to std::__throw_out_of_range_fmt
|
|
BROKEN_SSL= openssl111
|
|
BROKEN_SSL_REASON_openssl111= 'configure: error: "Error: libcrypto required."'
|
|
|
|
USES= autoreconf pkgconfig gmake compiler:c++11-lang \
|
|
libtool pathfix ssl
|
|
GNU_CONFIGURE= yes
|
|
USE_LDCONFIG= yes
|
|
MAKE_JOBS_UNSAFE= yes
|
|
PLIST_SUB= PORTVERSION="${THRIFT_PORTVERSION}"
|
|
|
|
OPTIONS_DEFINE= QT4
|
|
QT4_CONFIGURE_WITH= qt4
|
|
QT4_USES= qt:4
|
|
QT4_USE= QT=network,moc_build,qmake_build,rcc_build,uic_build
|
|
|
|
OPTIONS_SUB= yes
|
|
|
|
CONFIGURE_ARGS+= \
|
|
--without-c_glib \
|
|
--with-cpp \
|
|
--with-boost-libdir="${LOCALBASE}/lib" \
|
|
--without-csharp \
|
|
--without-erlang \
|
|
--without-haskell \
|
|
--without-java \
|
|
--without-perl \
|
|
--without-php \
|
|
--without-php_extension \
|
|
--without-python \
|
|
--without-ruby \
|
|
--without-go
|
|
|
|
LDFLAGS+= -L${OPENSSLLIB}
|
|
CFLAGS+= -I${OPENSSLINC}
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MQT4}
|
|
DEPRECATED= Qt4 has been EOL since december 2015
|
|
EXPIRATION_DATE= 2019-03-15
|
|
.endif
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${CHOSEN_COMPILER_TYPE} == clang
|
|
USE_CXXSTD= c++11
|
|
.endif
|
|
|
|
post-install:
|
|
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/lib*.so
|
|
${LN} -sf libthrift-${PORTVERSION}.so ${STAGEDIR}${PREFIX}/lib/libthrift.so.0
|
|
${LN} -sf libthriftnb-${PORTVERSION}.so ${STAGEDIR}${PREFIX}/lib/libthriftnb.so.0
|
|
${LN} -sf libthriftz-${PORTVERSION}.so ${STAGEDIR}${PREFIX}/lib/libthriftz.so.0
|
|
|
|
post-install-QT4-on:
|
|
${LN} -sf libthriftqt-${PORTVERSION}.so ${STAGEDIR}${PREFIX}/lib/libthriftqt.so.0
|
|
|
|
.include "../thrift/bsd.thrift.mk"
|
|
.include <bsd.port.post.mk>
|