aboutsummaryrefslogtreecommitdiff
path: root/devel/libslang2
diff options
context:
space:
mode:
authorRoman Bogorodskiy <novel@FreeBSD.org>2005-05-20 12:07:50 +0000
committerRoman Bogorodskiy <novel@FreeBSD.org>2005-05-20 12:07:50 +0000
commita95c4c592f1623f2a4b991061491e553b27dbf03 (patch)
treeb4ae89bc033a6ea2551989daea2e4d3bea710103 /devel/libslang2
parentb75bede010ebc977e2180e5dcf09a8718476a7ee (diff)
downloadports-a95c4c592f1623f2a4b991061491e553b27dbf03.tar.gz
ports-a95c4c592f1623f2a4b991061491e553b27dbf03.zip
Notes
Diffstat (limited to 'devel/libslang2')
-rw-r--r--devel/libslang2/Makefile16
-rw-r--r--devel/libslang2/pkg-plist4
2 files changed, 18 insertions, 2 deletions
diff --git a/devel/libslang2/Makefile b/devel/libslang2/Makefile
index 2ea8cb962853..bd16700a725a 100644
--- a/devel/libslang2/Makefile
+++ b/devel/libslang2/Makefile
@@ -32,6 +32,22 @@ DOCSDIR= ${PREFIX}/share/doc/slang
PORTDOCS= *
.endif
+.if !defined(WITHOUT_PCRE)
+LIB_DEPENDS+= pcre.0:${PORTSDIR}/devel/pcre
+PLIST_SUB+= PCRE=""
+.else
+CONFIGURE_ARGS+= --disable-pcre
+PLIST_SUB+= PCRE="@comment "
+.endif
+
+.if !defined(WITHOUT_PNG)
+LIB_DEPENDS+= png.5:${PORTSDIR}/graphics/png
+PLIST_SUB+= PNG=""
+.else
+CONFIGURE_ARGS+= --disable-png
+PLIST_SUB+= PNG="@comment "
+.endif
+
.include <bsd.port.pre.mk>
post-patch:
diff --git a/devel/libslang2/pkg-plist b/devel/libslang2/pkg-plist
index d36956fdba79..6372cac6cdc1 100644
--- a/devel/libslang2/pkg-plist
+++ b/devel/libslang2/pkg-plist
@@ -11,8 +11,8 @@ lib/slang/v2/modules/termios-module.so
lib/slang/v2/modules/select-module.so
lib/slang/v2/modules/fcntl-module.so
lib/slang/v2/modules/varray-module.so
-lib/slang/v2/modules/pcre-module.so
-lib/slang/v2/modules/png-module.so
+%%PCRE%%lib/slang/v2/modules/pcre-module.so
+%%PNG%%lib/slang/v2/modules/png-module.so
share/slsh/scripts/jpegsize
share/slsh/scripts/lsrpm
share/slsh/scripts/sldb