aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkrion <krion@FreeBSD.org>2018-04-22 21:37:25 +0800
committerkrion <krion@FreeBSD.org>2018-04-22 21:37:25 +0800
commit23d8ccfd86ef6338797b306948f570e3a3560ae7 (patch)
treee13c5487b043648f6b11334dcb83106e7d32817a
parent9607ca30e61529943abdf8a32867dbc757ea53f0 (diff)
downloadfreebsd-ports-gnome-23d8ccfd86ef6338797b306948f570e3a3560ae7.tar.gz
freebsd-ports-gnome-23d8ccfd86ef6338797b306948f570e3a3560ae7.tar.zst
freebsd-ports-gnome-23d8ccfd86ef6338797b306948f570e3a3560ae7.zip
Bump PORTREVISION for missing pkg-config dependency
Approved by: maintainer
-rw-r--r--dns/udns/Makefile18
1 files changed, 15 insertions, 3 deletions
diff --git a/dns/udns/Makefile b/dns/udns/Makefile
index 9eb40a2b53c9..4fb4c08d4450 100644
--- a/dns/udns/Makefile
+++ b/dns/udns/Makefile
@@ -3,20 +3,23 @@
PORTNAME= udns
PORTVERSION= 0.4
+PORTREVISION= 1
CATEGORIES= dns
MASTER_SITES= http://www.corpit.ru/mjt/udns/
MAINTAINER= mm@FreeBSD.org
COMMENT= DNS resolver library with sync and async queries
+LICENSE= LGPL21
+LICENSE_FILE= ${WRKSRC}/COPYING.LGPL
+
+USES= pkgconfig
+
HAS_CONFIGURE= yes
USE_LDCONFIG= yes
OPTIONS_DEFINE= IPV6 DOCS
-LICENSE= LGPL21
-LICENSE_FILE= ${WRKSRC}/COPYING.LGPL
-
ALL_TARGET= staticlib shared
PORTDOCS= *
@@ -25,9 +28,15 @@ SHLIB_MAJOR= 0
IPV6_CONFIGURE_ENABLE= ipv6
+PKGCONFIGDIR?= ${PREFIX}/libdata/pkgconfig
+
post-build:
@cd ${WRKSRC} && ${STRIP_CMD} dnsget_s ex-rdns_s rblcheck_s
+post-patch:
+ @${SED} -e 's|%PREFIX%|${PREFIX}|g ; s|%VERSION%|${PORTVERSION}|g' \
+ ${FILESDIR}/libudns.pc.in > ${WRKDIR}/libudns.pc
+
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/libudns.so.${SHLIB_MAJOR} \
${STAGEDIR}${PREFIX}/lib/libudns.so.${SHLIB_MAJOR}
@@ -44,6 +53,9 @@ do-install:
${INSTALL_MAN} ${WRKSRC}/${FILE} ${STAGEDIR}${MANPREFIX}/man/man3/${FILE}
.endfor
+post-install:
+ ${INSTALL_DATA} ${WRKDIR}/libudns.pc ${STAGEDIR}${PKGCONFIGDIR}/
+
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for FILE in NEWS NOTES TODO