2014-03-04 03:52:52 +01:00
|
|
|
# Created by: Ryan Steinmetz <zi@FreeBSD.org>
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= getdns
|
2016-01-29 04:22:27 +01:00
|
|
|
PORTVERSION= 0.9.0
|
2016-03-15 07:21:32 +01:00
|
|
|
PORTREVISION= 2
|
2014-03-04 03:52:52 +01:00
|
|
|
CATEGORIES= dns ipv6
|
2015-09-13 16:09:14 +02:00
|
|
|
MASTER_SITES= https://getdnsapi.net/dist/ \
|
2016-04-01 15:18:17 +02:00
|
|
|
https://mirrors.rit.edu/zi/ \
|
2015-09-13 16:09:14 +02:00
|
|
|
http://getdnsapi.net/dist/ \
|
|
|
|
http://mirrors.rit.edu/zi/
|
2014-03-04 03:52:52 +01:00
|
|
|
|
|
|
|
MAINTAINER= zi@FreeBSD.org
|
|
|
|
COMMENT= Modern asynchronous DNS API
|
|
|
|
|
|
|
|
LICENSE= BSD3CLAUSE
|
2014-08-22 11:06:34 +02:00
|
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
2014-03-04 03:52:52 +01:00
|
|
|
|
2016-04-01 16:00:51 +02:00
|
|
|
LIB_DEPENDS= libexpat.so:textproc/expat2 \
|
|
|
|
libidn.so:dns/libidn \
|
|
|
|
libldns.so:dns/ldns \
|
|
|
|
libunbound.so:dns/unbound
|
2014-03-04 03:52:52 +01:00
|
|
|
|
2016-10-21 17:21:13 +02:00
|
|
|
USES= libtool pathfix
|
2014-03-04 03:52:52 +01:00
|
|
|
USE_LDCONFIG= yes
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_ARGS= --with-libidn=${LOCALBASE} --docdir=${DOCSDIR} \
|
|
|
|
--with-trust-anchor=${LOCALBASE}/etc/unbound/root.key
|
|
|
|
|
|
|
|
PLIST_SUB+= PORTVERSION="${PORTVERSION}"
|
|
|
|
SUB_FILES+= pkg-message
|
|
|
|
|
|
|
|
OPTIONS_SUB= yes
|
|
|
|
OPTIONS_DEFINE= EXAMPLES DOCS LIBEV LIBUV LIBEVENT
|
|
|
|
|
|
|
|
LIBEV_DESC= Build with libev extension
|
|
|
|
LIBUV_DESC= Build with libuv extension
|
|
|
|
LIBEVENT_DESC= Build with libevent extension
|
|
|
|
|
2016-04-01 16:00:51 +02:00
|
|
|
LIBEV_LIB_DEPENDS= libev.so:devel/libev
|
2014-03-25 13:53:35 +01:00
|
|
|
LIBEV_CONFIGURE_WITH= libev
|
2016-04-01 16:00:51 +02:00
|
|
|
LIBUV_LIB_DEPENDS= libuv.so:devel/libuv
|
2014-03-25 13:53:35 +01:00
|
|
|
LIBUV_CONFIGURE_WITH= libuv
|
2016-04-01 16:00:51 +02:00
|
|
|
LIBEVENT_LIB_DEPENDS= libevent.so:devel/libevent2
|
2014-03-25 13:53:35 +01:00
|
|
|
LIBEVENT_CONFIGURE_WITH=libevent
|
2014-03-04 03:52:52 +01:00
|
|
|
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
2016-02-05 05:12:21 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${OSVERSION} <= 1000000
|
|
|
|
CONFIGURE_ARGS+= --disable-gost
|
|
|
|
.endif
|
|
|
|
|
2014-03-04 03:52:52 +01:00
|
|
|
post-patch:
|
2015-02-12 14:49:43 +01:00
|
|
|
${REINPLACE_CMD} -Ee 's,^(sharedoc = ).*,\1${WRKDIR}/doc,' \
|
2016-04-01 15:18:17 +02:00
|
|
|
-e '/echo .\*\*\*/d' ${WRKSRC}/Makefile.in
|
2014-03-04 03:52:52 +01:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
.if ${PORT_OPTIONS:MEXAMPLES}
|
2016-01-29 04:22:27 +01:00
|
|
|
(cd ${WRKSRC}/spec/example && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}/)
|
2014-03-04 03:52:52 +01:00
|
|
|
.endif
|
2015-04-09 14:01:17 +02:00
|
|
|
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libgetdns.so.*
|
2014-03-04 03:52:52 +01:00
|
|
|
|
2016-02-05 05:12:21 +01:00
|
|
|
.include <bsd.port.post.mk>
|