b71a1d488b
example MAKE_ENV+=FOO=${BAR} is changed to MAKE_ENV+=FOO=${BAR:Q}. Some other changes are outlined in http://mail-index.netbsd.org/tech-pkg/2005/12/02/0034.html
60 lines
1.5 KiB
Makefile
60 lines
1.5 KiB
Makefile
# $NetBSD: Makefile,v 1.9 2005/12/05 20:50:47 rillig Exp $
|
|
|
|
DISTNAME= mDNSResponder-107.1
|
|
PKGREVISION= 1
|
|
CATEGORIES= net
|
|
MASTER_SITES= http://darwinsource.opendarwin.org/tarballs/apsl/
|
|
|
|
MAINTAINER= tech-pkg@NetBSD.org
|
|
HOMEPAGE= http://developer.apple.com/darwin/projects/bonjour/
|
|
COMMENT= Apple's mDNS responder
|
|
|
|
USE_TOOLS+= gmake
|
|
BUILD_DIRS= mDNSPosix
|
|
BUILDDIR= ${WRKSRC}/mDNSPosix/build/prod
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
SO_SUFFIX= so
|
|
.if ${OPSYS} == "NetBSD"
|
|
MAKE_ENV+= os=netbsd
|
|
.elif ${OPSYS} == "FreeBSD"
|
|
MAKE_ENV+= os=freebsd
|
|
.elif ${OPSYS} == "OpenBSD"
|
|
MAKE_ENV+= os=openbsd
|
|
.elif ${OPSYS} == "SunOS"
|
|
MAKE_ENV+= os=solaris
|
|
.elif ${OPSYS} == "Linux"
|
|
MAKE_ENV+= os=linux
|
|
.elif ${OPSYS} == "Darwin"
|
|
. if !empty(OS_VERSION:M6*)
|
|
MAKE_ENV+= os=jaguar
|
|
. elif !empty(OS_VERSION:M7*)
|
|
MAKE_ENV+= os=panther
|
|
. elif !empty(OS_VERSION:M8*)
|
|
MAKE_ENV+= os=tiger
|
|
. endif
|
|
SO_SUFFIX= dylib
|
|
.else
|
|
MAKE_ENV+= os=netbsd
|
|
.endif
|
|
PLIST_SUBST+= SO_SUFFIX=${SO_SUFFIX:Q}
|
|
|
|
BINARY= mDNSClientPosix mDNSIdentify mDNSNetMonitor \
|
|
mDNSProxyResponderPosix mDNSResponderPosix
|
|
SBINARY= mdnsd dnsextd
|
|
|
|
INSTALLATION_DIRS= bin include lib sbin
|
|
|
|
do-install:
|
|
for i in ${BINARY}; do \
|
|
${INSTALL_PROGRAM} ${BUILDDIR}/$$i ${PREFIX}/bin; \
|
|
done
|
|
for i in ${SBINARY}; do \
|
|
${INSTALL_PROGRAM} ${BUILDDIR}/$$i ${PREFIX}/sbin; \
|
|
done
|
|
${INSTALL_DATA} ${WRKSRC}/mDNSShared/dns_sd.h ${PREFIX}/include
|
|
${INSTALL_LIB} ${BUILDDIR}/libdns_sd.${SO_SUFFIX} ${PREFIX}/lib
|
|
|
|
.include "../../mk/pthread.buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|