svn commit: r468029 - head/dns/udns
Kirill Ponomarev
krion at FreeBSD.org
Sun Apr 22 13:37:26 UTC 2018
Author: krion
Date: Sun Apr 22 13:37:25 2018
New Revision: 468029
URL: https://svnweb.freebsd.org/changeset/ports/468029
Log:
Bump PORTREVISION for missing pkg-config dependency
Approved by: maintainer
Modified:
head/dns/udns/Makefile
Modified: head/dns/udns/Makefile
==============================================================================
--- head/dns/udns/Makefile Sun Apr 22 13:35:24 2018 (r468028)
+++ head/dns/udns/Makefile Sun Apr 22 13:37:25 2018 (r468029)
@@ -3,20 +3,23 @@
PORTNAME= udns
PORTVERSION= 0.4
+PORTREVISION= 1
CATEGORIES= dns
MASTER_SITES= http://www.corpit.ru/mjt/udns/
MAINTAINER= mm at 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}
@@ -43,6 +52,9 @@ do-install:
.for FILE in udns.3
${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}
More information about the svn-ports-all
mailing list