38a31b30c1
The LUA_{LIB,INC}DIR variables point to the default Lua version specified in ports (in this case 5.2) or by the user. When multiple versions of Lua are installed (in this case 5.2 and 5.3), libucl's ./configure auto-detects Lua 5.3 (or perhaps the latest version available), which is a mismatch against those in the provided include/library paths: checking for a Lua interpreter with version >= 5.1... lua53 <-- detected checking for lua53... /usr/local/bin/lua53 checking for lua53 version... 5.3 ... checking for Lua header version... 5.2 <-- Passed by LUA_INCDIR checking if Lua header version matches 5.3... no This change explicitly specifies the version of the Lua interpreter we want to use, which appears to sufficienty influence the behaviour of the ./configure macros. PR: 209887 Reported by: olgeni MFH: 2016Q2
54 lines
1.2 KiB
Makefile
54 lines
1.2 KiB
Makefile
# Created by: Kubilay Kocak <koobs@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= libucl
|
|
PORTVERSION= 0.8.0
|
|
CATEGORIES= textproc devel
|
|
|
|
MAINTAINER= koobs@FreeBSD.org
|
|
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= Enable tools: ucl_chargen, ucl_ucldump, ucl_tool
|
|
|
|
LUA_CONFIGURE_ENABLE= lua
|
|
LUA_CONFIGURE_ENV= LUA=${LOCALBASE}/bin/${LUA_CMD}
|
|
LUA_LDFLAGS= -L${LUA_LIBDIR}
|
|
LUA_USES= lua
|
|
|
|
REGEX_CONFIGURE_ENABLE= regex
|
|
|
|
SIGNATURES_CONFIGURE_ENABLE= signatures
|
|
SIGNATURES_CPPFLAGS= -I${OPENSSLINC}
|
|
SIGNATURES_LDFLAGS= -L${OPENSSLLIB}
|
|
SIGNATURES_USE= OPENSSL=yes
|
|
|
|
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
|
|
|
|
PATHFIX_MAKEFILEIN= Makefile.am
|
|
CONFLICTS_INSTALL= ucl
|
|
|
|
INSTALL_TARGET= install-strip
|
|
TEST_TARGET= check
|
|
|
|
.include <bsd.port.mk>
|