aboutsummaryrefslogtreecommitdiffstats
path: root/audio/xmms2
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2006-08-15 23:30:44 +0800
committermiwi <miwi@FreeBSD.org>2006-08-15 23:30:44 +0800
commitd797e2a1c6360c35839023801cdafe8e55bff44d (patch)
tree766769d112adc196a598dbcc694c6608f6562f91 /audio/xmms2
parent736fb88275f46255345a3ed6055161b0663fb8f7 (diff)
downloadfreebsd-ports-graphics-d797e2a1c6360c35839023801cdafe8e55bff44d.tar.gz
freebsd-ports-graphics-d797e2a1c6360c35839023801cdafe8e55bff44d.tar.zst
freebsd-ports-graphics-d797e2a1c6360c35839023801cdafe8e55bff44d.zip
- Support mDNSResponder
- Respect DESTDIR PR: ports/101956 Submitted by: Alexander Botero-Lowry <alex(at)foxybanana.com> (maintainer) Approved by: krion (mentor)
Diffstat (limited to 'audio/xmms2')
-rw-r--r--audio/xmms2/Makefile21
-rw-r--r--audio/xmms2/pkg-plist4
2 files changed, 18 insertions, 7 deletions
diff --git a/audio/xmms2/Makefile b/audio/xmms2/Makefile
index 3e110c67f14..f045b564346 100644
--- a/audio/xmms2/Makefile
+++ b/audio/xmms2/Makefile
@@ -25,7 +25,7 @@ WRKSRC= ${WRKDIR}/${DISTNAME}
USE_PYTHON_BUILD= yes
USE_BZIP2= yes
USE_SCONS= yes
-SCONS_ARGS= EXCLUDE="${EXCLUDE}"
+SCONS_ARGS= INSTALLDIR=${DESTDIR} EXCLUDE="${EXCLUDE}"
.if !defined(XMMS2_SLAVE)
USE_GNOME= glib20
@@ -50,7 +50,8 @@ OPTIONS= FAAD "Support to playback AAC files" on \
MMS "Support to playback streams via MMS" off \
SAMBA "Support to playback files via SMB" off \
FAM "Support to update Media Library on file change" off \
- MDNS "Support to announce XMMS2d via mDNS" off #\
+ MDNS_AVAHI "Support to announce XMMS2d via mDNS (Avahi)" off \
+ MDNS_APPLE "Support to announce XMMS2d via mDNS (Apple)" on #\
# SDL "Support for visualization" on \
# JACK "Support to output via the Jack output server" off
.endif
@@ -180,12 +181,20 @@ EXCLUDE+= medialib-updater
PLIST_SUB+= FAM="@comment "
.endif
-.if defined(WITH_MDNS)
+.if defined(WITH_MDNS_AVAHI)
LIB_DEPENDS+= avahi-core:${PORTSDIR}/net/avahi
-PLIST_SUB+= MDNS=""
+PLIST_SUB+= MDNS_AVAHI=""
.else
-EXCLUDE+= mdns
-PLIST_SUB+= MDNS="@comment "
+EXCLUDE+= avahi
+PLIST_SUB+= MDNS_AVAHI="@comment "
+.endif
+
+.if !defined (WITHOUT_MDNS_APPLE)
+LIB_DEPENDS+= dns_sd:${PORTSDIR}/net/mDNSResponder
+PLIST_SUB+= MDNS_APPLE=""
+.else
+EXCLUDE+= dns_sd
+PLIST_SUB+= MDNS_APPLE="@comment "
.endif
.endif
diff --git a/audio/xmms2/pkg-plist b/audio/xmms2/pkg-plist
index d46daf9c34d..08dba045c3e 100644
--- a/audio/xmms2/pkg-plist
+++ b/audio/xmms2/pkg-plist
@@ -2,7 +2,9 @@ bin/xmms2
bin/xmms2-et
bin/xmms2-launcher
%%FAM%%bin/xmms2-mlib-updater
-%%MDNS%%bin/xmms2-mdns-avahi
+%%MDNS_AVAHI%%bin/xmms2-find-avahi
+%%MDNS_AVAHI%%bin/xmms2-mdns-avahi
+%%MDNS_APPLE%%bin/xmms2-mdns-dnssd
bin/xmms2d
include/xmms2/xmms/xmms_config.h
include/xmms2/xmms/xmms_defs.h