openbsd-ports/www/haserl/Makefile
2013-03-11 11:35:43 +00:00

42 lines
775 B
Makefile

# $OpenBSD: Makefile,v 1.3 2013/03/11 11:44:42 espie Exp $
COMMENT= tiny cgi web script handler using shell or Lua
DISTNAME= haserl-0.9.29
CATEGORIES= www
HOMEPAGE= http://haserl.sourceforge.net/
MAINTAINER= Stuart Henderson <sthen@openbsd.org>
# GPLv2 only
PERMIT_PACKAGE_CDROM= Yes
WANTLIB += c
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=haserl/}
FLAVORS= no_lua static
FLAVOR?=
USE_GMAKE= Yes
CONFIGURE_STYLE= autoconf
AUTOCONF_VERSION= 2.68
CONFIGURE_ARGS+= --enable-bash-extensions
CONFIGURE_ENV+= LDFLAGS="${LDFLAGS}"
LDFLAGS= -L${LOCALBASE}/lib
.if !${FLAVOR:Mno_lua}
MODULES+= lang/lua
CONFIGURE_ARGS+= --with-lua
WANTLIB+= ${MODLUA_WANTLIB} m
LIB_DEPENDS= ${MODLUA_LIB_DEPENDS}
.endif
.if ${FLAVOR:Mstatic}
LDFLAGS+= -static
.endif
.include <bsd.port.mk>