mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-15 03:14:23 +00:00
0a9f13e63f
Approvd by: SSL blanket
139 lines
3.6 KiB
Makefile
139 lines
3.6 KiB
Makefile
# Created by: Konstantin Saurbier <saurbier@math.uni-bielefeld.de>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= ldns
|
|
PORTVERSION= 1.6.17
|
|
PORTREVISION= 5
|
|
CATEGORIES= dns
|
|
MASTER_SITES= http://www.nlnetlabs.nl/downloads/ldns/ \
|
|
LOCAL/ehaupt
|
|
|
|
MAINTAINER= jaap@NLnetLabs.nl
|
|
COMMENT= Library for programs conforming to DNS RFCs and drafts
|
|
|
|
LICENSE= BSD3CLAUSE
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
GNU_CONFIGURE= yes
|
|
USES= cpe gmake libtool ssl
|
|
CPE_VENDOR= nlnetlabs
|
|
USE_LDCONFIG= yes
|
|
|
|
CONFIGURE_ARGS+= --with-ssl=${OPENSSLBASE}
|
|
|
|
.if ! (defined(BUILD_PYLDNS) || defined(BUILD_P5PERL))
|
|
OPTIONS_DEFINE= DOXYGEN EXAMPLES DRILL
|
|
OPTIONS_DEFAULT= DRILL
|
|
|
|
DRILL_DESC= With drill program
|
|
|
|
DOXYGEN_BUILD_DEPENDS= doxygen:devel/doxygen
|
|
DOXYGEN_ALL_TARGET= doc
|
|
DOXYGEN_INSTALL_TARGET= install-manpages
|
|
.endif
|
|
|
|
OPTIONS_DEFINE+= GOST \
|
|
RRTYPENINFO RRTYPERKEY RRTYPECDS RRTYPEURI RRTYPETA
|
|
|
|
GOST_DESC= GOST signatures enabled, requires openssl >= 1.0.0
|
|
RRTYPENINFO_DESC= Enable draft RR type ninfo.
|
|
RRTYPERKEY_DESC= Enable draft RR type rkey.
|
|
RRTYPECDS_DESC= Enable draft RR type cds.
|
|
RRTYPEURI_DESC= Enable draft RR type uri.
|
|
RRTYPETA_DESC= Enable draft RR type ta.
|
|
|
|
OPTIONS_SUB= yes
|
|
|
|
GOST_CONFIGURE_ENABLE= gost
|
|
RRTYPENINFO_CONFIGURE_ENABLE= rrtype-ninfo
|
|
RRTYPERKEY_CONFIGURE_ENABLE= rrtype-rkey
|
|
RRTYPECDS_CONFIGURE_ENABLE= rrtype-cds
|
|
RRTYPEURI_CONFIGURE_ENABLE= rrtype-uri
|
|
RRTYPETA_CONFIGURE_ENABLE= rrtype-ta
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if defined(BUILD_PYLDNS)
|
|
USES+= python
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
ALL_TARGET= pyldns
|
|
INSTALL_TARGET= install-pyldns
|
|
|
|
CONFIGURE_ARGS+=--with-pyldns
|
|
LIB_DEPENDS+= libldns.so:dns/ldns
|
|
BUILD_DEPENDS+= ${LOCALBASE}/bin/swig:devel/swig13
|
|
CFLAGS+= -I${OPENSSLINC}
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} \
|
|
-e 's=-I./include/ldns=-I${LOCALBASE}/include/ldns=' \
|
|
${WRKSRC}/Makefile.in
|
|
.elif defined(BUILD_P5PERL)
|
|
USES+= perl5
|
|
USE_PERL5= build run
|
|
PKGNAMEPREFIX= p5-DNS-
|
|
|
|
ALL_TARGET= p5-dns-ldns
|
|
INSTALL_TARGET= install-p5-dns-ldns
|
|
|
|
CONFIGURE_ARGS+=--with-p5-dns-ldns
|
|
LIB_DEPENDS+= libldns.so:dns/ldns
|
|
|
|
post-patch:
|
|
@${SED} -i '' -e 's=-I./include/ldns=-I${LOCALBASE}/include/ldns=' ${WRKSRC}/Makefile.in
|
|
.else
|
|
ALL_TARGET= all
|
|
INSTALL_TARGET= install-lib install-h install-config
|
|
|
|
.endif # BUILD_PYLDNS || BUILD_P5PERL
|
|
|
|
.if ${PORT_OPTIONS:MGOST}
|
|
. if !defined(SSL_DEFAULT) || ${SSL_DEFAULT} == "base"
|
|
IGNORE_FreeBSD_9= Requires openssl version >= 1.0.0
|
|
. endif
|
|
.else
|
|
NO_GOST= --disable-gost
|
|
.endif
|
|
|
|
.if ! (defined(BUILD_PYLDNS) || defined(BUILD_P5PERL))
|
|
|
|
post-patch:
|
|
# fix list CPPFLAGS in examples/configure for ssl in LOCALBASE case
|
|
@${REINPLACE_CMD} -e '/tmp_CPPFLAGS/d' ${WRKSRC}/examples/configure
|
|
|
|
post-configure:
|
|
# ac_cv_prog_libtool=../libtool => Always use bundled libtool
|
|
.if ${PORT_OPTIONS:MEXAMPLES}
|
|
@(cd ${WRKSRC}/examples; ./configure --prefix=${PREFIX} \
|
|
--infodir=${PREFIX}/${INFO_PATH} --mandir=${MANPREFIX}/man \
|
|
--build=${CONFIGURE_TARGET} ${NO_GOST} ${NO_SHA2} \
|
|
ac_cv_prog_libtool=../libtool)
|
|
.endif
|
|
.if ${PORT_OPTIONS:MDRILL}
|
|
@(cd ${WRKSRC}/drill; ./configure --prefix=${PREFIX} \
|
|
--mandir=${MANPREFIX}/man \
|
|
--build=${CONFIGURE_TARGET} \
|
|
ac_cv_prog_libtool=../libtool)
|
|
.endif
|
|
|
|
post-build:
|
|
.if ${PORT_OPTIONS:MEXAMPLES}
|
|
@(cd ${WRKSRC}/examples; ${MAKE_CMD})
|
|
.endif
|
|
.if ${PORT_OPTIONS:MDRILL}
|
|
@(cd ${WRKSRC}/drill; ${MAKE_CMD})
|
|
.endif
|
|
|
|
post-install:
|
|
.if ${PORT_OPTIONS:MEXAMPLES}
|
|
@(cd ${WRKSRC}/examples; ${MAKE_CMD} ${MAKE_ARGS} install)
|
|
.endif
|
|
.if ${PORT_OPTIONS:MDRILL}
|
|
@(cd ${WRKSRC}/drill; ${MAKE_CMD} ${MAKE_ARGS} install)
|
|
.endif
|
|
${INSTALL_DATA} ${WRKSRC}/packaging/libldns.pc ${STAGEDIR}${PREFIX}/libdata/pkgconfig
|
|
|
|
.endif # BUILD_PYLDNS || BUILD_P5PERL
|
|
|
|
.include <bsd.port.mk>
|