blob: 41b17954ea4f653f8b726af40debf3582cca4979 (
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
|
# Created by: Valery Komarov <komarov@valerka.net>
# $FreeBSD$
PORTNAME= thrift
PORTVERSION= ${THRIFT_PORTVERSION} # to keep in sync with thrift
PORTREVISION= 7
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}"
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.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
.include "../thrift/bsd.thrift.mk"
.include <bsd.port.post.mk>
|