zhuk bce19fb1f9 The datalog port failed to build with our libtool mostly because it stopped
using Lua from system. Make it use Lua 5.3 (same as one bundled in) again.

okay jasper@ (MAINTAINER)
2017-07-27 19:55:46 +00:00

37 lines
867 B
Makefile

# $OpenBSD: Makefile,v 1.13 2017/07/27 19:55:46 zhuk Exp $
COMMENT= deductive database system similar to Prolog
DISTNAME= datalog-2.6
REVISION= 0
SHARED_LIBS += datalog 0.0 # 0.0
CATEGORIES= lang
HOMEPAGE= http://datalog.sourceforge.net/
# LGPLv2.1+
PERMIT_PACKAGE_CDROM= Yes
WANTLIB += c m readline termcap ${MODLUA_WANTLIB}
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=datalog/}
MODULES= lang/lua
# keep same version as bundled
MODLUA_VERSION= 5.3
MODLUA_SA= Yes
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS= --with-lua \
--with-lua-suffix=${MODLUA_VERSION}
# configure is wrong, the --with-lua-suffix option IS used
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS} -I${MODLUA_INCL_DIR}" \
LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib"
# Some extra checks in addition to the check target
post-test:
cd ${WRKSRC} && /bin/sh try.sh
.include <bsd.port.mk>