openbsd-ports/www/lighttpd/Makefile
jasper bfe8448a3a - Handle EINTR in mod_cgi during write()
- Fix mod_magnet to set con->mode = p->id if it generates content,
  so returning 4xx/5xx doesn't append an error page

from brad@
2008-04-25 10:23:07 +00:00

71 lines
1.8 KiB
Makefile

# $OpenBSD: Makefile,v 1.53 2008/04/25 10:23:07 jasper Exp $
SHARED_ONLY= Yes
COMMENT= secure, fast, compliant, and very flexible web-server
DISTNAME= lighttpd-1.4.19
PKGNAME= ${DISTNAME}p3
CATEGORIES= www net
MASTER_SITES= ${HOMEPAGE}/download/
MAINTAINER= Brad Smith <brad@comstyle.com>
HOMEPAGE= http://www.lighttpd.net/
LIB_DEPENDS+= pcre::devel/pcre \
lua.>=5.1::lang/lua
# BSD
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB= c crypto m ssl z
USE_LIBTOOL= Yes
LIBTOOL_FLAGS= --tag=disable-static
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS+= --with-openssl \
--without-bzip2 \
--libdir="${PREFIX}/lib/lighttpd" \
--with-lua
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
FLAVORS= ldap mysql
FLAVOR?=
.if ${FLAVOR:L:Mldap}
CONFIGURE_ARGS+= --with-ldap
LIB_DEPENDS+= lber,ldap::databases/openldap
WANTLIB+= sasl2 asn1 com_err gssapi krb5
.endif
.if ${FLAVOR:L:Mmysql}
CONFIGURE_ARGS+= --with-mysql
LIB_DEPENDS+= mysqlclient.>=10::databases/mysql
.endif
pre-build:
@perl -pi -e "s,/usr/bin/rrdtool,${LOCALBASE}/bin/rrdtool,g" \
${WRKSRC}/doc/lighttpd.conf
@perl -pi -e "s,/etc/lighttpd,${SYSCONFDIR},g" \
${WRKSRC}/doc/lighttpd.1
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/lighttpd
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/lighttpd
${INSTALL_DATA} ${WRKSRC}/doc/*.txt \
${PREFIX}/share/doc/lighttpd
${INSTALL_DATA} ${WRKSRC}/doc/lighttpd.conf \
${PREFIX}/share/examples/lighttpd
${INSTALL_DATA} ${WRKSRC}/doc/spawn-php.sh \
${PREFIX}/share/examples/lighttpd
${INSTALL_DATA} /dev/null \
${PREFIX}/share/examples/lighttpd/access.log
${INSTALL_DATA} /dev/null \
${PREFIX}/share/examples/lighttpd/error.log
.include <bsd.port.mk>