sthen ea32a285ed update to haserl-0.9.36
note, the prefix for variables has changed to the REQUEST_METHOD,
previously PUT/DELETE used POST/GET rather than the actual method,
so some changes might be needed if you use PUT/DELETE.
2021-05-24 16:52:33 +00:00

39 lines
737 B
Makefile

# $OpenBSD: Makefile,v 1.10 2021/05/24 16:52:33 sthen Exp $
COMMENT= tiny cgi web script handler using shell or Lua
DISTNAME= haserl-0.9.36
CATEGORIES= www
HOMEPAGE= http://haserl.sourceforge.net/
# GPLv2 only
PERMIT_PACKAGE= Yes
WANTLIB += c
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=haserl/}
FLAVORS= no_lua static
FLAVOR?=
USE_GMAKE= Yes
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS+= --enable-bash-extensions
CONFIGURE_ENV+= LDFLAGS="${LDFLAGS}"
LDFLAGS= -L${LOCALBASE}/lib
.if !${FLAVOR:Mno_lua}
MODULES+= lang/lua
CONFIGURE_ARGS+= --with-lua=lua${MODLUA_DEP_VERSION} # pkg-config name
WANTLIB+= ${MODLUA_WANTLIB} m
LIB_DEPENDS= ${MODLUA_LIB_DEPENDS}
.endif
.if ${FLAVOR:Mstatic}
LDFLAGS+= ${STATIC}
.endif
.include <bsd.port.mk>