freebsd-ports/dns/getdns/Makefile
2017-04-26 16:48:06 +00:00

62 lines
1.6 KiB
Makefile

# Created by: Ryan Steinmetz <zi@FreeBSD.org>
# $FreeBSD$
PORTNAME= getdns
PORTVERSION= 1.1.0
CATEGORIES= dns ipv6
MASTER_SITES= https://getdnsapi.net/dist/ \
https://mirrors.rit.edu/zi/ \
http://getdnsapi.net/dist/ \
http://mirrors.rit.edu/zi/
MAINTAINER= zi@FreeBSD.org
COMMENT= Modern asynchronous DNS API
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
LIB_DEPENDS= libexpat.so:textproc/expat2 \
libidn.so:dns/libidn \
libldns.so:dns/ldns \
libunbound.so:dns/unbound
USES= libtool pathfix ssl
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-libidn=${LOCALBASE} --docdir=${DOCSDIR} \
--with-trust-anchor=${LOCALBASE}/etc/unbound/root.key
SOVERSION= 6.0.0
SOMAJVER= ${SOVERSION:C/([0-9]).*/\1/1}
MAKE_JOBS_UNSAFE=yes
PLIST_SUB+= SOVERSION="${SOVERSION}" SOMAJVER="${SOMAJVER}"
SUB_FILES+= pkg-message
OPTIONS_SUB= yes
OPTIONS_DEFINE= DOCS EXAMPLES LIBEV LIBEVENT LIBUV
LIBEV_DESC= Build with libev extension
LIBEVENT_DESC= Build with libevent extension
LIBUV_DESC= Build with libuv extension
LIBEV_LIB_DEPENDS= libev.so:devel/libev
LIBEV_CONFIGURE_WITH= libev
LIBEVENT_LIB_DEPENDS= libevent_core.so:devel/libevent2
LIBEVENT_CONFIGURE_WITH=libevent
LIBUV_LIB_DEPENDS= libuv.so:devel/libuv
LIBUV_CONFIGURE_WITH= libuv
post-patch:
${REINPLACE_CMD} -Ee 's,^(sharedoc = ).*,\1${WRKDIR}/doc,' \
-e '/echo .\*\*\*/d' ${WRKSRC}/Makefile.in
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libgetdns*.so.*
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/getdns_query \
${STAGEDIR}${PREFIX}/bin/stubby
post-install-EXAMPLES-on:
(cd ${WRKSRC}/spec/example && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}/)
.include <bsd.port.mk>