aboutsummaryrefslogtreecommitdiff
path: root/textproc/libucl
diff options
context:
space:
mode:
authorKubilay Kocak <koobs@FreeBSD.org>2014-11-28 04:23:58 +0000
committerKubilay Kocak <koobs@FreeBSD.org>2014-11-28 04:23:58 +0000
commitbc3b2e02394d69f09aacef556178cae30442dbd6 (patch)
treef157395a8ecd41dff1f0f439d9f6883725e43ad9 /textproc/libucl
parent037515d032b1ffd9015193c32c13f94b505cc5d2 (diff)
downloadports-bc3b2e02394d69f09aacef556178cae30442dbd6.tar.gz
ports-bc3b2e02394d69f09aacef556178cae30442dbd6.zip
Notes
Diffstat (limited to 'textproc/libucl')
-rw-r--r--textproc/libucl/Makefile27
-rw-r--r--textproc/libucl/pkg-plist5
2 files changed, 32 insertions, 0 deletions
diff --git a/textproc/libucl/Makefile b/textproc/libucl/Makefile
index 9a62c22a18d4..95889569ec6d 100644
--- a/textproc/libucl/Makefile
+++ b/textproc/libucl/Makefile
@@ -3,6 +3,7 @@
PORTNAME= libucl
PORTVERSION= 0.5.2
+PORTREVISION= 1
CATEGORIES= textproc devel
MAINTAINER= koobs@FreeBSD.org
@@ -11,11 +12,34 @@ COMMENT= Universal configuration library parser
LICENSE= BSD2CLAUSE
LICENSE_FILE= ${WRKSRC}/COPYING
+OPTIONS_DEFINE= LUA REGEX SIGNATURES URLS UTILS
+OPTIONS_DEFAULT= REGEX UTILS
+OPTIONS_SUB= yes
+
+REGEX_DESC= Enable regex checking for schema
+SIGNATURES_DESC= Enable signatures checking
+URLS_DESC= Enable fetching URLs
+UTILS_DESC= Install utilities: chargen, ucldump
+
+LUA_USES= lua
+LUA_CONFIGURE_ENABLE= lua
+
+REGEX_CONFIGURE_ENABLE= regex
+
+SIGNATURES_USE= OPENSSL=yes
+SIGNATURES_CONFIGURE_ENABLE= signatures
+SIGNATURES_CPPFLAGS= -I${OPENSSLINC}
+SIGNATURES_LDFLAGS= -L${OPENSSLLIB}
+
+URLS_CONFIGURE_ENABLE= urls
+UTILS_CONFIGURE_ENABLE= utils
+
USES= autoreconf gmake libtool pathfix pkgconfig
USE_GITHUB= yes
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
+CONFIGURE_ARGS+= --disable-silent-rules
GH_ACCOUNT= vstakhov
GH_PROJECT= ${PORTNAME}
@@ -26,4 +50,7 @@ PATHFIX_MAKEFILEIN= Makefile.am
INSTALL_TARGET= install-strip
CONFLICTS_INSTALL= ucl
+regression-test: build
+ @cd ${WRKSRC} && ${MAKE} check
+
.include <bsd.port.mk>
diff --git a/textproc/libucl/pkg-plist b/textproc/libucl/pkg-plist
index fae4f98b4838..98c0b77369b9 100644
--- a/textproc/libucl/pkg-plist
+++ b/textproc/libucl/pkg-plist
@@ -1,7 +1,12 @@
+%%UTILS%%bin/ucl_chargen
+%%UTILS%%bin/ucl_objdump
+%%LUA%%include/lua_ucl.h
include/ucl.h
lib/libucl.a
lib/libucl.so
lib/libucl.so.0
lib/libucl.so.0.2.0
+%%LUA%%%%LUA_MODLIBDIR%%/ucl.a
+%%LUA%%%%LUA_MODLIBDIR%%/ucl.so
libdata/pkgconfig/libucl.pc
man/man3/libucl.3.gz