ports/textproc/libucl/Makefile
Muhammad Moinur Rahman d1f211911e
textproc/{py-}libucl: Use internal uthash
The bundled uthash and the uthash library in ports tree are different in
major API libs which causes build failure when uthash is already
installed from the tree.

PR:		269048
Reported by:	jcfyecrayz@liamekaens.com
2025-07-16 16:53:26 +02:00

53 lines
1.3 KiB
Makefile

PORTNAME= libucl
DISTVERSION= 0.9.2
PORTREVISION= 2
CATEGORIES= textproc devel
# implicit-approval+: bapt dvl
MAINTAINER= bofh@FreeBSD.org
COMMENT= Universal configuration library parser
WWW= https://github.com/vstakhov/libucl
LICENSE= BSD2CLAUSE
LICENSE_FILE= ${WRKSRC}/COPYING
BROKEN_mips= fails to link: undefined reference to '__sync_add_and_fetch_4'
BROKEN_mips64= fails to link: undefined reference to '__sync_add_and_fetch_4'
USES= autoreconf gmake libtool pathfix pkgconfig
USE_GITHUB= yes
GH_ACCOUNT= vstakhov
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
INSTALL_TARGET= install-strip
TEST_TARGET= check
CPPFLAGS= -I../uthash
CONFLICTS_INSTALL= ucl
OPTIONS_DEFINE= LUA REGEX SIGNATURES URLS UTILS
OPTIONS_DEFAULT= LUA REGEX UTILS
OPTIONS_SUB= yes
REGEX_DESC= Enable regex checking for schema
SIGNATURES_DESC= Enable signatures checking
URLS_DESC= Enable fetching URLs
UTILS_DESC= Enable tools: ucl_chargen, ucl_ucldump, ucl_tool
LUA_USES= lua
LUA_CONFIGURE_ENABLE= lua
LUA_CONFIGURE_ENV= LUA=${LOCALBASE}/bin/${LUA_CMD}
LUA_LDFLAGS= -L${LUA_LIBDIR}
REGEX_CONFIGURE_ENABLE= regex
SIGNATURES_USES= ssl
SIGNATURES_CONFIGURE_ENABLE= signatures
SIGNATURES_CPPFLAGS= -I${OPENSSLINC}
SIGNATURES_LDFLAGS= -L${OPENSSLLIB}
URLS_CONFIGURE_ENABLE= urls
UTILS_CONFIGURE_ENABLE= utils
.include <bsd.port.mk>