diff options
author | ehaupt <ehaupt@FreeBSD.org> | 2011-04-17 04:36:06 +0800 |
---|---|---|
committer | ehaupt <ehaupt@FreeBSD.org> | 2011-04-17 04:36:06 +0800 |
commit | be57837870c607380fb84cc87fdfacf3476f4b09 (patch) | |
tree | 37834600052d1868c5694a445a4dc8dab3117462 /dns/ldns | |
parent | 7f7336fe29db795c58f80f0bbb2e7efc3a0c33be (diff) | |
download | freebsd-ports-gnome-be57837870c607380fb84cc87fdfacf3476f4b09.tar.gz freebsd-ports-gnome-be57837870c607380fb84cc87fdfacf3476f4b09.tar.zst freebsd-ports-gnome-be57837870c607380fb84cc87fdfacf3476f4b09.zip |
Add an option for installing python bindings.
PR: 156419
Approved by: Jaap Akkerhuis <jaap@NLnetLabs.nl> (maintainer)
Diffstat (limited to 'dns/ldns')
-rw-r--r-- | dns/ldns/Makefile | 17 | ||||
-rw-r--r-- | dns/ldns/pkg-plist | 6 |
2 files changed, 21 insertions, 2 deletions
diff --git a/dns/ldns/Makefile b/dns/ldns/Makefile index e9d518b89b6e..5b7b6dbac1fa 100644 --- a/dns/ldns/Makefile +++ b/dns/ldns/Makefile @@ -8,7 +8,8 @@ PORTNAME= ldns PORTVERSION= 1.6.9 CATEGORIES= dns -MASTER_SITES= http://www.nlnetlabs.nl/downloads/ldns/ +MASTER_SITES= http://www.nlnetlabs.nl/downloads/ldns/ \ + CRITICAL MAINTAINER= jaap@NLnetLabs.nl COMMENT= A library for programs conforming to DNS RFCs and drafts @@ -24,7 +25,8 @@ OPTIONS= DOCS "With documentation" Off \ EXAMPLES "With example programs" Off \ DRILL "With drill program" Off \ GOST "GOST signatures enabled (requires openssl >= 1.0.0)" Off \ - ECDSA "With highly experimental ECDSA support" Off + ECDSA "With highly experimental ECDSA support" Off \ + PYLDNS "Build python bindings" Off .include <bsd.port.pre.mk> @@ -255,6 +257,17 @@ PLIST_SUB+= EXAMPLES="@comment " CONFIGURE_ARGS+= --enable-ecdsa .endif +.if defined(WITH_PYLDNS) +USE_PYTHON= yes +.include "${PORTSDIR}/Mk/bsd.python.mk" +CONFIGURE_ARGS+= --with-pyldns +BUILD_DEPENDS+= ${LOCALBASE}/bin/swig:${PORTSDIR}/devel/swig13 +INSTALL_TARGET+= install-pyldns +PLIST_SUB+= PYLDNS="" +.else +PLIST_SUB+= PYLDNS="@comment " +.endif + .if ${OSVERSION} < 700000 NO_SHA2= --disable-sha2 CONFIGURE_ARGS+= ${NO_SHA2} diff --git a/dns/ldns/pkg-plist b/dns/ldns/pkg-plist index c6fb32565584..54577cb9b2c6 100644 --- a/dns/ldns/pkg-plist +++ b/dns/ldns/pkg-plist @@ -55,4 +55,10 @@ lib/libldns.a lib/libldns.la lib/libldns.so lib/libldns.so.1 +%%PYLDNS%%%%PYTHON_SITELIBDIR%%/_ldns.so.1 +%%PYLDNS%%%%PYTHON_SITELIBDIR%%/ldns.py +%%PYLDNS%%%%PYTHON_SITELIBDIR%%/_ldns.so +%%PYLDNS%%%%PYTHON_SITELIBDIR%%/_ldns.la +%%PYLDNS%%%%PYTHON_SITELIBDIR%%/_ldns.a +%%PYLDNS%%@dirrm %%PYTHON_SITELIBDIR%%/ldns @dirrm include/ldns |