1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-18 03:46:03 +00:00
freebsd-ports/dns/udns/Makefile
Mathieu Arnold f899c758a6 When there is a do-install target, do not use a post-install target, do
everything at once.  Sometime, rename post-install into a options helper
target.

I did not fix ports that were such a mess that I could not figure out
what they really wanted to do.  I also did not change ports that had
some version of an auto-plist code in post-install, for the same reason.

With hat:	portmgr
Sponsored by:	Absolight
2016-07-19 11:04:13 +00:00

54 lines
1.4 KiB
Makefile

# Created by: Martin Matuska <mm@FreeBSD.org>
# $FreeBSD$
PORTNAME= udns
PORTVERSION= 0.4
CATEGORIES= dns
MASTER_SITES= http://www.corpit.ru/mjt/udns/
MAINTAINER= mm@FreeBSD.org
COMMENT= DNS resolver library with sync and async queries
HAS_CONFIGURE= yes
USE_LDCONFIG= yes
OPTIONS_DEFINE= IPV6 DOCS
LICENSE= LGPL21
LICENSE_FILE= ${WRKSRC}/COPYING.LGPL
ALL_TARGET= staticlib shared
PORTDOCS= *
SHLIB_MAJOR= 0
IPV6_CONFIGURE_ENABLE= ipv6
post-build:
@cd ${WRKSRC} && ${STRIP_CMD} dnsget_s ex-rdns_s rblcheck_s
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/libudns.so.${SHLIB_MAJOR} \
${STAGEDIR}${PREFIX}/lib/libudns.so.${SHLIB_MAJOR}
${LN} -sf libudns.so.${SHLIB_MAJOR} \
${STAGEDIR}${PREFIX}/lib/libudns.so
${INSTALL_DATA} ${WRKSRC}/udns.h ${STAGEDIR}${PREFIX}/include/udns.h
${INSTALL_DATA} ${WRKSRC}/libudns.a ${STAGEDIR}${PREFIX}/lib/libudns.a
${INSTALL_PROGRAM} ${WRKSRC}/dnsget_s ${STAGEDIR}${PREFIX}/bin/dnsget
${INSTALL_PROGRAM} ${WRKSRC}/rblcheck_s ${STAGEDIR}${PREFIX}/bin/rblcheck
.for FILE in dnsget.1 rblcheck.1
${INSTALL_MAN} ${WRKSRC}/${FILE} ${STAGEDIR}${MANPREFIX}/man/man1/${FILE}
.endfor
.for FILE in udns.3
${INSTALL_MAN} ${WRKSRC}/${FILE} ${STAGEDIR}${MANPREFIX}/man/man3/${FILE}
.endfor
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for FILE in NEWS NOTES TODO
${INSTALL_DATA} ${WRKSRC}/${FILE} ${STAGEDIR}${DOCSDIR}/${FILE}
.endfor
.include <bsd.port.mk>