summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorDavid E. O'Brien <obrien@FreeBSD.org>2010-10-11 07:30:32 +0000
committerDavid E. O'Brien <obrien@FreeBSD.org>2010-10-11 07:30:32 +0000
commit3088cdc842a040e524d5d38cd5f8b3089bea5a63 (patch)
treec28d691391970302177e3581be7fb913067e9ebe /net
parentUpdate to Vim 7.3 patchlevel 21. (diff)
Rdesktop will use several sound related libraries if they are already
installed, without telling it to do so. So ensure these dependencies get registered. PR: 146720 Submitted by: Yuri Pankov <yuri.pankov@gmail.com> (reworked by me)
Notes
Notes: svn path=/head/; revision=262812
Diffstat (limited to 'net')
-rw-r--r--net/rdesktop/Makefile12
1 files changed, 11 insertions, 1 deletions
diff --git a/net/rdesktop/Makefile b/net/rdesktop/Makefile
index 957984ab67b4..a72cb5ee04ef 100644
--- a/net/rdesktop/Makefile
+++ b/net/rdesktop/Makefile
@@ -21,6 +21,16 @@ GNU_CONFIGURE= yes
DOCS= doc/AUTHORS doc/TODO doc/*.txt
MAN1= rdesktop.1
+.include <bsd.port.pre.mk>
+
+.if exists(${LOCALBASE}/lib/libao.so) || defined(WITH_LIBAO)
+LIB_DEPENDS+= ao.3:${PORTSDIR}/audio/libao
+.endif
+
+.if exists(${LOCALBASE}/lib/libsamplerate.so) || defined(WITH_LIBSAMPLERATE)
+LIB_DEPENDS+= samplerate.1:${PORTSDIR}/audio/libsamplerate
+.endif
+
.if !defined(WITHOUT_RDESKTOP_IPV6) && !defined(WITHOUT_IPV6)
CONFIGURE_ARGS+= --with-ipv6
.endif
@@ -53,4 +63,4 @@ do-install:
cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>