From 682233e6020aceaefbefd61deecb99b52894db73 Mon Sep 17 00:00:00 2001 From: marcus Date: Mon, 17 Feb 2003 18:45:36 +0000 Subject: Add a conditional dependency on nautilus. Submitted by: Olivier Tharan --- www/galeon/Makefile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'www') diff --git a/www/galeon/Makefile b/www/galeon/Makefile index 348250a244f2..9e0f4e506a6b 100644 --- a/www/galeon/Makefile +++ b/www/galeon/Makefile @@ -52,7 +52,6 @@ USE_LIBTOOL= yes USE_REINPLACE= yes CONFIGURE_ARGS= --with-mozilla-includes="${X11BASE}/include/mozilla${HEADERS_SUFX}" \ --with-mozilla-libs="${X11BASE}/lib/${MOZILLA}" \ - --enable-nautilus-view \ ${MOZ_CONFIGURE_ARGS} CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include -D_REENTRANT ${PTHREAD_CFLAGS}" \ LIBS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}" @@ -62,6 +61,15 @@ MAN1= galeon.1 .include +.if exists(${X11BASE}/lib/libnautilus.so.0) +WITH_NAUTILUS= yes +.endif + +.if defined(WITH_NAUTILUS) +LIB_DEPENDS+= nautilus.0:${PORTSDIR}/x11-fm/nautilus +CONFIGURE_ARGS+= --enable-nautilus-view +.endif + .if ${OSVERSION} > 500000 # Galeon does not build correctly in -CURRENT if -Werror is passed # to the compiler. -- cgit