freebsd-ports/net/mDNSResponder/Makefile

63 lines
1.6 KiB
Makefile
Raw Normal View History

2004-03-12 01:09:37 +01:00
# Ports collection makefile for: mDNSResponder
2011-05-11 17:47:55 +02:00
# Date created: Tues Mar 2, 2004
# Whom: Alfred Perlstein <alfred@freebsd.org>
#
# $FreeBSD$
#
PORTNAME= mDNSResponder
2011-07-31 19:50:15 +02:00
PORTVERSION= 320.5
2005-02-16 09:13:33 +01:00
CATEGORIES= net dns
2010-01-13 05:55:40 +01:00
MASTER_SITES= http://opensource.apple.com/tarballs/mDNSResponder/
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Apple's mDNSResponder
2004-03-12 01:09:37 +01:00
LICENSE= ASL BSD
LICENSE_COMB= dual
CONFLICTS= avahi-libdns-[0-9]*
BUILD_WRKSRC= ${WRKSRC}/mDNSPosix
INSTALL_WRKSRC= ${WRKSRC}/mDNSPosix
MAKE_ARGS= os=freebsd LOCALBASE=${PREFIX} MANPATH=${MANPREFIX}/man
USE_BISON= build
USE_GMAKE= yes
USE_LDCONFIG= yes
USE_RC_SUBR= mdnsd
2005-02-16 09:13:33 +01:00
EXTRA_BIN= bin/mDNSClientPosix bin/mDNSIdentify bin/mDNSNetMonitor \
bin/mDNSProxyResponderPosix bin/mDNSResponderPosix
EXTRA_MAN8= dnsextd.8 mDNSResponderPosix.8
EXTRA_SBIN= sbin/dnsextd
MAN8= mdnsd.8 ${EXTRA_MAN8}
PLIST_FILES= bin/dns-sd ${EXTRA_BIN} \
include/dns_sd.h \
lib/libdns_sd.so lib/libdns_sd.so.1 \
sbin/mdnsd ${EXTRA_SBIN}
2006-06-10 22:45:58 +02:00
2005-05-21 20:17:12 +02:00
.include <bsd.port.pre.mk>
.if ${ARCH} == "alpha"
BROKEN= Does not compile on alpha
2005-05-21 20:17:12 +02:00
.endif
post-patch:
2011-06-21 06:55:13 +02:00
@${REINPLACE_CMD} -e '/ cc / s|cc|$${CC}|' ${WRKSRC}/Clients/Makefile
@${MV} ${WRKSRC}/mDNSShared/mDNSResponder.8 \
${WRKSRC}/mDNSShared/mDNSResponderPosix.8
2005-02-16 09:13:33 +01:00
pre-build:
@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' \
-e 's|mDNSResponder.8|mDNSResponderPosix.8|g' \
2005-02-16 09:13:33 +01:00
${WRKSRC}/mDNSPosix/Makefile
post-install:
@cd ${INSTALL_WRKSRC}/build/prod && \
${INSTALL_PROGRAM} ${EXTRA_BIN:T} ${PREFIX}/bin/ && \
${INSTALL_PROGRAM} ${EXTRA_SBIN:T} ${PREFIX}/sbin/
@cd ${WRKSRC}/mDNSShared/ && \
${INSTALL_MAN} ${EXTRA_MAN8} ${MAN8PREFIX}/man/man8/
2005-05-21 20:17:12 +02:00
.include <bsd.port.post.mk>