aboutsummaryrefslogtreecommitdiffstats
path: root/devel/gnomevfs2
diff options
context:
space:
mode:
authormarcus <marcus@FreeBSD.org>2003-02-11 06:14:58 +0800
committermarcus <marcus@FreeBSD.org>2003-02-11 06:14:58 +0800
commit1300c7d158c8c569df70801d824d97d4f1bfa6ee (patch)
tree97afa015361697a419bc7bd2bb4072e24a611d9e /devel/gnomevfs2
parentdda12961a895465b412863375559b1c551545b9e (diff)
downloadfreebsd-ports-gnome-1300c7d158c8c569df70801d824d97d4f1bfa6ee.tar.gz
freebsd-ports-gnome-1300c7d158c8c569df70801d824d97d4f1bfa6ee.tar.zst
freebsd-ports-gnome-1300c7d158c8c569df70801d824d97d4f1bfa6ee.zip
Add an optional dependency on fam. FAM support will be compiled in if
fam is installed on the system, or the user specifies WITH_FAM.
Diffstat (limited to 'devel/gnomevfs2')
-rw-r--r--devel/gnomevfs2/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/devel/gnomevfs2/Makefile b/devel/gnomevfs2/Makefile
index e5b4258219bf..1bdefdfd22c3 100644
--- a/devel/gnomevfs2/Makefile
+++ b/devel/gnomevfs2/Makefile
@@ -34,9 +34,12 @@ CONFIGURE_TARGET= --target=${MACHINE_ARCH}-unknown-freebsd${OSREL}
.include <bsd.port.pre.mk>
-.if exists(${LOCALBASE}/lib/libcdda_paranoia.so.0)
+.if exists(${LOCALBASE}/lib/libcdda_paranoia.a)
WITH_CDPARANOIA= yes
.endif
+.if exists(${LOCALBASE}/lib/libfam.a)
+WITH_FAM= yes
+.endif
.if defined(WITH_CDPARANOIA)
LIB_DEPENDS+= cdda_paranoia.0:${PORTSDIR}/audio/cdparanoia
@@ -44,6 +47,9 @@ PLIST_SUB+= CDPARANOIA=""
.else
PLIST_SUB+= CDPARANOIA="@comment "
.endif
+.if defined(WITH_FAM)
+LIB_DEPENDS+= fam.0:${PORTSDIR}/devel/fam
+.endif
post-patch:
@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure