# $OpenBSD$

COMMENT =		small scripting language

DISTNAME =		execline-2.7.0.0

SHARED_LIBS =		execline	2.7

CATEGORIES =		sysutils

HOMEPAGE =		https://skarnet.org/software/execline/

# ISC
PERMIT_PACKAGE =	Yes

WANTLIB =		skarnet

MASTER_SITES =		${HOMEPAGE}

LIB_DEPENDS =		devel/skalibs

USE_GMAKE =		Yes

CONFIGURE_STYLE =	gnu
CONFIGURE_ARGS =	--with-include=${LOCALBASE}/include \
			--with-lib=${LOCALBASE}/lib/skalibs \
			--with-dynlib=${LOCALBASE}/lib \
			--enable-shared \
			--disable-nsss

FLAVORS =		static
FLAVOR ?=

.if ${FLAVOR:Mstatic}
CONFIGURE_ARGS +=	--enable-static-libc
CONFIGURE_ENV =		LDFLAGS_NOSHARED="${STATIC}"
.else
WANTLIB +=		c

CONFIGURE_ARGS +=	--disable-allstatic
.endif

NO_TEST =		Yes

.include <bsd.port.mk>
