aboutsummaryrefslogtreecommitdiffstats
path: root/devel/libslang2-devel
diff options
context:
space:
mode:
authornovel <novel@FreeBSD.org>2005-05-20 20:07:50 +0800
committernovel <novel@FreeBSD.org>2005-05-20 20:07:50 +0800
commitb705559513b81e3bf0f647d4dce5dd073fe5d7c7 (patch)
treea55c273fbf596a42a6334d313830f265495fb6f7 /devel/libslang2-devel
parentad5b545c3d18796adbb41bd6dc5c68767aafd1dc (diff)
downloadfreebsd-ports-gnome-b705559513b81e3bf0f647d4dce5dd073fe5d7c7.tar.gz
freebsd-ports-gnome-b705559513b81e3bf0f647d4dce5dd073fe5d7c7.tar.zst
freebsd-ports-gnome-b705559513b81e3bf0f647d4dce5dd073fe5d7c7.zip
Add WITHOUT_PCRE and WITHOUT_PNG knobs and fix plist.
Reported by: pointyhat via kris
Diffstat (limited to 'devel/libslang2-devel')
-rw-r--r--devel/libslang2-devel/Makefile16
-rw-r--r--devel/libslang2-devel/pkg-plist4
2 files changed, 18 insertions, 2 deletions
diff --git a/devel/libslang2-devel/Makefile b/devel/libslang2-devel/Makefile
index 2ea8cb962853..bd16700a725a 100644
--- a/devel/libslang2-devel/Makefile
+++ b/devel/libslang2-devel/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-devel/pkg-plist b/devel/libslang2-devel/pkg-plist
index d36956fdba79..6372cac6cdc1 100644
--- a/devel/libslang2-devel/pkg-plist
+++ b/devel/libslang2-devel/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