2013-09-21 01:17:30 +02:00
|
|
|
# Created by: Maxim Ignatenko
|
2010-08-26 15:20:17 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= exmpp
|
2014-07-23 15:53:07 +02:00
|
|
|
PORTVERSION= 0.9.9
|
2015-05-07 22:24:15 +02:00
|
|
|
DISTVERSIONPREFIX= v
|
2015-01-15 10:05:37 +01:00
|
|
|
PORTREVISION= 1
|
2015-06-27 14:54:11 +02:00
|
|
|
CATEGORIES= devel net-im
|
|
|
|
PKGNAMEPREFIX= erlang-
|
2010-08-26 15:20:17 +02:00
|
|
|
|
2014-07-22 18:02:05 +02:00
|
|
|
MAINTAINER= olgeni@FreeBSD.org
|
2010-08-26 15:20:17 +02:00
|
|
|
COMMENT= Fast and scalable library for XMPP written in Erlang/OTP
|
|
|
|
|
2014-07-22 18:02:05 +02:00
|
|
|
LICENSE= EPL
|
|
|
|
|
2016-04-01 16:00:51 +02:00
|
|
|
BUILD_DEPENDS= erlc:lang/erlang
|
|
|
|
RUN_DEPENDS= erl:lang/erlang
|
|
|
|
LIB_DEPENDS= libexpat.so:textproc/expat2 \
|
|
|
|
libxml2.so:textproc/libxml2
|
2010-08-26 15:20:17 +02:00
|
|
|
|
2014-07-23 15:53:07 +02:00
|
|
|
USE_GITHUB= yes
|
|
|
|
GH_ACCOUNT= processone
|
|
|
|
|
2010-08-26 15:20:17 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2014-07-22 18:02:05 +02:00
|
|
|
CONFIGURE_ARGS+=--enable-static=yes \
|
|
|
|
--enable-shared=yes \
|
|
|
|
--with-erlang=${LOCALBASE} \
|
|
|
|
--with-expat=${LOCALBASE} \
|
2015-01-15 10:05:37 +01:00
|
|
|
--with-openssl=${OPENSSLBASE} \
|
2014-07-22 18:02:05 +02:00
|
|
|
--disable-debug \
|
|
|
|
--disable-warnings \
|
|
|
|
--disable-examples \
|
|
|
|
--enable-escaping-using-cdata
|
2010-08-26 15:20:17 +02:00
|
|
|
GNU_CONFIGURE_PREFIX= "${PREFIX}/lib/erlang/lib"
|
2014-07-22 18:02:05 +02:00
|
|
|
PLIST_SUB= VERSION=${PORTVERSION}
|
2016-09-12 10:33:56 +02:00
|
|
|
USES= autoreconf cpe libtool pkgconfig ssl
|
2015-05-12 14:48:14 +02:00
|
|
|
CPE_VENDOR= process-one
|
2010-08-26 15:20:17 +02:00
|
|
|
|
2015-09-01 18:20:47 +02:00
|
|
|
DOCS_CONFIGURE_ENABLE= documentation
|
2010-08-26 15:20:17 +02:00
|
|
|
|
2014-07-07 14:17:32 +02:00
|
|
|
MAKE_JOBS_UNSAFE= yes
|
|
|
|
|
2010-08-26 15:20:17 +02:00
|
|
|
post-configure:
|
2016-09-12 10:33:56 +02:00
|
|
|
${REINPLACE_CMD} 's|\(-spec.*\)\/[0-9] ::\(.*\)|\1\2|g' ${WRKSRC}/src/network/*.erl
|
|
|
|
${REINPLACE_CMD} 's|\(-spec.*\)\/[0-9] ::\(.*\)|\1\2|g' ${WRKSRC}/src/core/*.erl
|
2015-04-18 14:58:34 +02:00
|
|
|
${MAKE_CMD} clean -C ${WRKSRC}
|
2010-08-26 15:20:17 +02:00
|
|
|
|
2014-07-22 18:02:05 +02:00
|
|
|
post-install:
|
|
|
|
.for _file in exmpp_xml_expat_legacy.so exmpp_compress_zlib.so \
|
|
|
|
exmpp_xml_expat.so exmpp_stringprep.so exmpp_xml_libxml2.so \
|
|
|
|
exmpp_tls_openssl.so
|
|
|
|
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/erlang/lib/${PORTNAME}-${PORTVERSION}/priv/lib/${_file}
|
|
|
|
.endfor
|
|
|
|
|
2010-08-26 15:20:17 +02:00
|
|
|
.include <bsd.port.mk>
|