Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Apr 2018 13:37:25 +0000 (UTC)
From:      Kirill Ponomarev <krion@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r468029 - head/dns/udns
Message-ID:  <201804221337.w3MDbPkR076859@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201804221337.w3MDbPkR076859>