blob: 7707bcb90d5d6485c08e40c1c9269ab0213f2bf5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
# $NetBSD: Makefile,v 1.19 2006/03/03 22:30:56 wiz Exp $
DISTNAME= mDNSResponder-108
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
.if !empty(MACHINE_PLATFORM:MNetBSD-3.99.[1-7]-*) || \
!empty(MACHINE_PLATFORM:MNetBSD-3.[0-9]-*) || \
!empty(MACHINE_PLATFORM:MNetBSD-3.[0-9][._]*) || \
!empty(MACHINE_PLATFORM:MNetBSD-[0-2]*) || \
!empty(MACHINE_PLATFORM:MSunOS-5.[0-9]-*)
.include "../../devel/librfuncs/buildlink3.mk"
MAKE_ENV+= EXTRA_LIBS=-Wl,-R${BUILDLINK_PREFIX.librfuncs:Q}/lib\ ${BUILDLINK_LDFLAGS.librfuncs:Q}
.else
MAKE_ENV+= EXTRA_LIBS=
.endif
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"
|