aboutsummaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authormezz <mezz@FreeBSD.org>2007-12-19 02:57:35 +0800
committermezz <mezz@FreeBSD.org>2007-12-19 02:57:35 +0800
commit3d2571e528fccb58f27aa45bc21a53329e531edb (patch)
tree6b6f956d47d8f834dd5be99577c6d29a59738d2c /graphics
parentddf785d435083800ca482e7a28dd411ee257d2ab (diff)
downloadfreebsd-ports-gnome-3d2571e528fccb58f27aa45bc21a53329e531edb.tar.gz
freebsd-ports-gnome-3d2571e528fccb58f27aa45bc21a53329e531edb.tar.zst
freebsd-ports-gnome-3d2571e528fccb58f27aa45bc21a53329e531edb.zip
It looks like it supports both libslang and libslang2. Remove the autocheck.
Add a check on libslang.so.1 if it exists in system then depend on libslang instead of libslang2. If libslang.so.1 doesn't exist then libslang2 is the default in WITH_SLANG. Add '--disable-slang' flag to avoid the autocheck in configure. Bump the PORTREVISION. Reported by: Andriy Gapon <avg@icyb.net.ua>
Diffstat (limited to 'graphics')
-rw-r--r--graphics/libcaca/Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/graphics/libcaca/Makefile b/graphics/libcaca/Makefile
index 9de73ccb64e2..65d9c1678751 100644
--- a/graphics/libcaca/Makefile
+++ b/graphics/libcaca/Makefile
@@ -7,7 +7,7 @@
PORTNAME= libcaca
DISTVERSION= 0.99.beta11
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= graphics
MASTER_SITES= http://libcaca.zoy.org/files/
@@ -41,9 +41,15 @@ LIB_DEPENDS+= Imlib2.4:${PORTSDIR}/graphics/imlib2
.include <bsd.port.pre.mk>
-.if defined(WITH_SLANG) || exists(${LOCALBASE}/lib/libslang.so.2)
+.if defined(WITH_SLANG)
+. if exists(${LOCALBASE}/lib/libslang.so.1)
+LIB_DEPENDS+= slang.1:${PORTSDIR}/devel/libslang
+. else
LIB_DEPENDS+= slang.2:${PORTSDIR}/devel/libslang2
+. endif
CONFIGURE_ARGS+=--enable-slang
+.else
+CONFIGURE_ARGS+=--disable-slang
.endif
post-patch: