1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-20 08:27:15 +00:00
freebsd-ports/dns/getdns/Makefile

68 lines
1.7 KiB
Makefile
Raw Normal View History

# Created by: Ryan Steinmetz <zi@FreeBSD.org>
# $FreeBSD$
PORTNAME= getdns
2017-01-19 13:49:33 +00:00
PORTVERSION= 1.0.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
PLIST_SUB+= PORTVERSION="${PORTVERSION}"
SUB_FILES+= pkg-message
OPTIONS_SUB= yes
OPTIONS_DEFINE= DOCS DIAGS EXAMPLES LIBEV LIBUV LIBEVENT
DIAGS_DESC= Build diagnostic tools
LIBEV_DESC= Build with libev extension
LIBUV_DESC= Build with libuv extension
LIBEVENT_DESC= Build with libevent extension
LIBEV_LIB_DEPENDS= libev.so:devel/libev
2014-03-25 12:53:35 +00:00
LIBEV_CONFIGURE_WITH= libev
LIBUV_LIB_DEPENDS= libuv.so:devel/libuv
2014-03-25 12:53:35 +00:00
LIBUV_CONFIGURE_WITH= libuv
LIBEVENT_LIB_DEPENDS= libevent.so:devel/libevent2
2014-03-25 12:53:35 +00:00
LIBEVENT_CONFIGURE_WITH=libevent
DIAGS_VARS= PLIST_FILES+=bin/${PORTNAME}_query
do-build-DIAGS-on:
(cd ${WRKSRC}/src/test && ${MAKE})
do-install-DIAGS-on:
(cd ${WRKSRC}/src/test && ${MAKE} DESTDIR=${STAGEDIR} install)
post-patch:
${REINPLACE_CMD} -Ee 's,^(sharedoc = ).*,\1${WRKDIR}/doc,' \
-e '/echo .\*\*\*/d' ${WRKSRC}/Makefile.in
post-install:
2015-04-09 12:01:17 +00:00
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libgetdns.so.*
post-install-DIAGS-on:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/getdns_query
post-install-EXAMPLES-on:
(cd ${WRKSRC}/spec/example && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}/)
.include <bsd.port.mk>