2013-03-28 12:22:32 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.110 2013/03/28 16:22:32 brad Exp $
|
2004-10-01 02:23:40 -04:00
|
|
|
|
|
|
|
SHARED_ONLY= Yes
|
|
|
|
|
2007-07-22 15:44:17 -04:00
|
|
|
COMMENT= secure, fast, compliant, and very flexible web-server
|
2004-10-01 02:23:40 -04:00
|
|
|
|
2012-11-21 16:58:18 -05:00
|
|
|
DISTNAME= lighttpd-1.4.32
|
2013-03-28 12:22:32 -04:00
|
|
|
REVISION= 2
|
2004-10-01 02:23:40 -04:00
|
|
|
CATEGORIES= www net
|
2009-11-25 18:06:53 -05:00
|
|
|
MASTER_SITES= http://download.lighttpd.net/lighttpd/releases-1.4.x/
|
2004-10-01 02:23:40 -04:00
|
|
|
|
2004-12-11 20:39:30 -05:00
|
|
|
HOMEPAGE= http://www.lighttpd.net/
|
2004-10-01 02:23:40 -04:00
|
|
|
|
2009-02-17 07:44:17 -05:00
|
|
|
MAINTAINER= Brad Smith <brad@comstyle.com>
|
2004-10-01 02:23:40 -04:00
|
|
|
|
2004-10-17 11:11:46 -04:00
|
|
|
# BSD
|
2004-10-01 02:23:40 -04:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
2012-11-21 16:58:18 -05:00
|
|
|
|
2012-05-15 15:38:01 -04:00
|
|
|
WANTLIB= c crypto ${MODLUA_WANTLIB} m pcre ssl z
|
|
|
|
|
|
|
|
MODULES= lang/lua
|
2012-07-10 11:22:44 -04:00
|
|
|
MODLUA_SA= Yes
|
2004-10-01 02:23:40 -04:00
|
|
|
|
2010-11-22 03:36:47 -05:00
|
|
|
LIB_DEPENDS+= devel/pcre \
|
2012-05-15 15:38:01 -04:00
|
|
|
${MODLUA_LIB_DEPENDS}
|
2010-11-22 03:36:47 -05:00
|
|
|
RUN_DEPENDS+= www/spawn-fcgi
|
2009-02-17 07:44:17 -05:00
|
|
|
|
2007-04-28 06:08:01 -04:00
|
|
|
LIBTOOL_FLAGS= --tag=disable-static
|
2010-07-06 13:17:50 -04:00
|
|
|
CONFIGURE_STYLE= autoconf
|
2012-06-01 04:20:50 -04:00
|
|
|
AUTOCONF_VERSION= 2.69
|
2009-02-17 07:44:17 -05:00
|
|
|
CONFIGURE_ARGS+= --libdir="${PREFIX}/lib/lighttpd" \
|
|
|
|
--with-lua \
|
|
|
|
--with-openssl \
|
2011-07-07 10:34:36 -04:00
|
|
|
--without-bzip2 \
|
|
|
|
--without-libev
|
2004-10-01 02:23:40 -04:00
|
|
|
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include" \
|
2012-07-10 11:22:44 -04:00
|
|
|
LDFLAGS="-L${LOCALBASE}/lib" \
|
|
|
|
LUA_CFLAGS="`pkg-config --cflags ${MODLUA_DEP}`" \
|
|
|
|
LUA_LIBS="`pkg-config --libs ${MODLUA_DEP}`"
|
2004-10-01 02:23:40 -04:00
|
|
|
|
2005-10-08 16:05:06 -04:00
|
|
|
FLAVORS= ldap mysql
|
|
|
|
FLAVOR?=
|
|
|
|
|
2013-02-09 09:49:50 -05:00
|
|
|
.if ${FLAVOR:Mldap}
|
2005-10-08 16:05:06 -04:00
|
|
|
CONFIGURE_ARGS+= --with-ldap
|
2010-11-22 03:36:47 -05:00
|
|
|
LIB_DEPENDS+= databases/openldap
|
2010-11-11 14:56:19 -05:00
|
|
|
WANTLIB+= sasl2 asn1 com_err gssapi krb5 lber ldap
|
2005-10-08 16:05:06 -04:00
|
|
|
.endif
|
|
|
|
|
2013-02-09 09:49:50 -05:00
|
|
|
.if ${FLAVOR:Mmysql}
|
2005-10-08 16:05:06 -04:00
|
|
|
CONFIGURE_ARGS+= --with-mysql
|
2010-11-22 03:36:47 -05:00
|
|
|
LIB_DEPENDS+= databases/mysql
|
|
|
|
WANTLIB += mysqlclient>=10
|
2005-10-08 16:05:06 -04:00
|
|
|
.endif
|
|
|
|
|
2010-08-18 07:16:55 -04:00
|
|
|
post-extract:
|
|
|
|
@cp -f ${FILESDIR}/lighttpd.conf ${WRKSRC}/doc
|
|
|
|
|
2007-07-25 23:54:06 -04:00
|
|
|
pre-build:
|
2010-08-18 07:16:55 -04:00
|
|
|
@${SUBST_CMD} ${WRKSRC}/doc/lighttpd.conf ${WRKSRC}/doc/lighttpd.8
|
2007-04-28 06:08:01 -04:00
|
|
|
|
2004-10-01 02:23:40 -04:00
|
|
|
post-install:
|
2008-04-16 16:42:35 -04:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/lighttpd
|
2004-10-01 02:23:40 -04:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/lighttpd
|
2011-07-07 10:34:36 -04:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/outdated/*.txt \
|
2008-04-16 16:42:35 -04:00
|
|
|
${PREFIX}/share/doc/lighttpd
|
2004-10-01 02:23:40 -04:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/lighttpd.conf \
|
2008-04-16 16:42:35 -04:00
|
|
|
${PREFIX}/share/examples/lighttpd
|
2010-08-18 07:16:55 -04:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/scripts/spawn-php.sh \
|
2008-04-16 16:42:35 -04:00
|
|
|
${PREFIX}/share/examples/lighttpd
|
|
|
|
${INSTALL_DATA} /dev/null \
|
|
|
|
${PREFIX}/share/examples/lighttpd/access.log
|
|
|
|
${INSTALL_DATA} /dev/null \
|
|
|
|
${PREFIX}/share/examples/lighttpd/error.log
|
2004-10-01 02:23:40 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|