1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-15 03:14:23 +00:00
freebsd-ports/dns/mDNSResponder_nss/Makefile
Sunpoet Po-Chuan Hsieh 580c13670d Fix typo
- Bump PORTREVISION for package change

PR:		228321
Submitted by:	Jose Luis Duran <jlduran@gmail.com>
Approved by:	Matthieu Volat <mazhe@alkumuna.eu> (maintainer)
2018-05-21 02:35:40 +00:00

56 lines
1.4 KiB
Makefile

# $FreeBSD$
PORTNAME= mDNSResponder
PORTVERSION= 878.1.1
PORTREVISION= 1
CATEGORIES= dns net
MASTER_SITES= http://opensource.apple.com/tarballs/mDNSResponder/
PKGNAMESUFFIX= _nss
MAINTAINER= mazhe@alkumuna.eu
COMMENT= Apple mDNS responder - FreeBSD nsswitch module
LICENSE= APACHE20 BSD3CLAUSE
LICENSE_COMB= dual
LIB_DEPENDS= libdns_sd.so:net/mDNSResponder
CONFLICTS_INSTALL= nss_mdns-[0-9]*
WRKSRC= ${WRKDIR}/${PORTNAME:S/_nss//}-${PORTVERSION}
.include <bsd.port.pre.mk>
.if ${ARCH:C/^(...).*/\1/} == "arm"
LD=${CC}
.endif
post-extract:
@${CP} ${FILESDIR}/nss_mdns_freebsd.c ${WRKSRC}/mDNSPosix
do-build:
(cd ${WRKSRC}/mDNSPosix && ${CC} ${CFLAGS} -c -std=c99 -Wall -fPIC \
-I. -I${PREFIX}/include -DPREFIX=\"${PREFIX}\" \
nss_mdns.c nss_mdns_freebsd.c)
(cd ${WRKSRC}/mDNSPosix && ${LD} -shared nss_mdns.o nss_mdns_freebsd.o \
-o nss_mdns.so.1 -L${PREFIX}/lib -R${PREFIX}/lib -ldns_sd)
post-build:
${STRIP_CMD} ${WRKSRC}/mDNSPosix/nss_mdns.so.1
do-install:
${INSTALL_LIB} ${WRKSRC}/mDNSPosix/nss_mdns.so.1 \
${STAGEDIR}${PREFIX}/lib
${LN} -sf ${PREFIX}/lib/nss_mdns.so.1 \
${STAGEDIR}${PREFIX}/lib/nss_mdns.so
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/mDNSPosix/nss_mdns.conf \
${STAGEDIR}${EXAMPLESDIR}
${INSTALL_MAN} ${WRKSRC}/mDNSPosix/nss_mdns.conf.5 \
${STAGEDIR}${MANPREFIX}/man/man5
${INSTALL_DATA} ${WRKSRC}/mDNSPosix/nss_mdns.conf \
${STAGEDIR}${PREFIX}/etc/nss_mdns.conf.sample
.include <bsd.port.post.mk>