9fd8660bee
Bump PKGREVISION.
75 lines
2.1 KiB
Makefile
75 lines
2.1 KiB
Makefile
# $NetBSD: Makefile,v 1.44 2017/11/10 11:21:52 jperkin Exp $
|
|
|
|
DISTNAME= mDNSResponder-258.14
|
|
PKGREVISION= 3
|
|
CATEGORIES= net
|
|
MASTER_SITES= http://www.opensource.apple.com/tarballs/mDNSResponder/
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= https://developer.apple.com/bonjour/
|
|
COMMENT= Apple's mDNS responder
|
|
LICENSE= apache-2.0 AND modified-bsd
|
|
|
|
USE_TOOLS+= gmake flex bison
|
|
BUILD_DIRS= mDNSPosix
|
|
BUILDDIR= ${WRKSRC}/mDNSPosix/build/prod
|
|
AUTO_MKDIRS= yes
|
|
MAKE_JOBS_SAFE= no
|
|
|
|
USE_GCC_RUNTIME= yes
|
|
|
|
MAKE_ENV.NetBSD+= os=netbsd
|
|
MAKE_ENV.FreeBSD+= os=freebsd
|
|
MAKE_ENV.OpenBSD+= os=openbsd
|
|
MAKE_ENV.SunOS+= os=solaris
|
|
MAKE_ENV.Linux+= os=linux
|
|
MAKE_ENV.Darwin+= os=x
|
|
MAKE_ENV.*+= os=netbsd
|
|
|
|
OPSYSVARS+= SO_SUFFIX
|
|
SO_SUFFIX.Darwin= dylib
|
|
SO_SUFFIX.*= so
|
|
PLIST_SUBST+= SO_SUFFIX=${SO_SUFFIX:Q}
|
|
|
|
BINARY= mDNSClientPosix mDNSIdentify mDNSNetMonitor \
|
|
mDNSProxyResponderPosix mDNSResponderPosix
|
|
SBINARY= mdnsd dnsextd
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
.if !empty(MACHINE_PLATFORM:MSunOS-5.[0-9]-*)
|
|
.include "../../devel/librfuncs/buildlink3.mk"
|
|
|
|
MAKE_ENV+= EXTRA_LIBS=-Wl,-R${BUILDLINK_PREFIX.librfuncs}/lib\ ${BUILDLINK_LDFLAGS.librfuncs:Q}
|
|
.else
|
|
MAKE_ENV+= EXTRA_LIBS=
|
|
.endif
|
|
|
|
LDFLAGS.SunOS+= -lsocket
|
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.mDNSResponder
|
|
PKG_SUPPORTED_OPTIONS= inet6
|
|
PKG_SUGGESTED_OPTIONS= inet6
|
|
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
.if !empty(PKG_OPTIONS:Minet6)
|
|
MAKE_ENV+= HAVE_IPV6=1
|
|
.endif
|
|
|
|
do-install:
|
|
for i in ${BINARY}; do \
|
|
${INSTALL_PROGRAM} ${BUILDDIR}/$$i ${DESTDIR}${PREFIX}/bin; \
|
|
done
|
|
for i in ${SBINARY}; do \
|
|
${INSTALL_PROGRAM} ${BUILDDIR}/$$i ${DESTDIR}${PREFIX}/sbin; \
|
|
done
|
|
${INSTALL_PROGRAM} ${WRKSRC}/Clients/build/dns-sd ${DESTDIR}${PREFIX}/bin
|
|
${INSTALL_MAN} ${WRKSRC}/mDNSShared/dns-sd.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
|
|
${INSTALL_MAN} ${WRKSRC}/mDNSShared/dnsextd.8 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8
|
|
${INSTALL_MAN} ${WRKSRC}/mDNSShared/mDNSResponder.8 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8/mdnsd.8
|
|
${INSTALL_DATA} ${WRKSRC}/mDNSShared/dns_sd.h ${DESTDIR}${PREFIX}/include
|
|
${INSTALL_LIB} ${BUILDDIR}/libdns_sd.${SO_SUFFIX} ${DESTDIR}${PREFIX}/lib
|
|
|
|
.include "../../mk/pthread.buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|