2011-04-25 09:39:36 +00:00
|
|
|
# $OpenBSD: Makefile,v 1.84 2011/04/25 09:39:36 sthen Exp $
|
2004-10-01 06:23:40 +00:00
|
|
|
|
|
|
|
SHARED_ONLY= Yes
|
|
|
|
|
2007-07-22 19:44:17 +00:00
|
|
|
COMMENT= secure, fast, compliant, and very flexible web-server
|
2004-10-01 06:23:40 +00:00
|
|
|
|
2010-08-23 22:44:10 +00:00
|
|
|
DISTNAME= lighttpd-1.4.28
|
2011-04-25 09:39:36 +00:00
|
|
|
REVISION= 4
|
2004-10-01 06:23:40 +00:00
|
|
|
CATEGORIES= www net
|
2009-11-25 23:06:53 +00:00
|
|
|
MASTER_SITES= http://download.lighttpd.net/lighttpd/releases-1.4.x/
|
2004-10-01 06:23:40 +00:00
|
|
|
|
2004-12-12 01:39:30 +00:00
|
|
|
HOMEPAGE= http://www.lighttpd.net/
|
2004-10-01 06:23:40 +00:00
|
|
|
|
2009-02-17 12:44:17 +00:00
|
|
|
MAINTAINER= Brad Smith <brad@comstyle.com>
|
2004-10-01 06:23:40 +00:00
|
|
|
|
2004-10-17 15:11:46 +00:00
|
|
|
# BSD
|
2004-10-01 06:23:40 +00:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
2010-11-22 10:16:08 +00:00
|
|
|
WANTLIB= c crypto lua>=5.1 m pcre ssl z
|
2004-10-01 06:23:40 +00:00
|
|
|
|
2010-11-22 08:36:47 +00:00
|
|
|
LIB_DEPENDS+= devel/pcre \
|
|
|
|
lang/lua
|
|
|
|
RUN_DEPENDS+= www/spawn-fcgi
|
2009-02-17 12:44:17 +00:00
|
|
|
|
2005-08-11 04:38:44 +00:00
|
|
|
USE_LIBTOOL= Yes
|
2007-04-28 10:08:01 +00:00
|
|
|
LIBTOOL_FLAGS= --tag=disable-static
|
2010-07-06 17:17:50 +00:00
|
|
|
CONFIGURE_STYLE= autoconf
|
2011-04-15 21:43:13 +00:00
|
|
|
AUTOCONF_VERSION= 2.67
|
2009-02-17 12:44:17 +00:00
|
|
|
CONFIGURE_ARGS+= --libdir="${PREFIX}/lib/lighttpd" \
|
|
|
|
--with-lua \
|
|
|
|
--with-openssl \
|
|
|
|
--without-bzip2
|
2004-10-01 06:23:40 +00:00
|
|
|
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
|
|
|
|
2005-10-08 20:05:06 +00:00
|
|
|
FLAVORS= ldap mysql
|
|
|
|
FLAVOR?=
|
|
|
|
|
|
|
|
.if ${FLAVOR:L:Mldap}
|
|
|
|
CONFIGURE_ARGS+= --with-ldap
|
2010-11-22 08:36:47 +00:00
|
|
|
LIB_DEPENDS+= databases/openldap
|
2010-11-11 19:56:19 +00:00
|
|
|
WANTLIB+= sasl2 asn1 com_err gssapi krb5 lber ldap
|
2005-10-08 20:05:06 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${FLAVOR:L:Mmysql}
|
|
|
|
CONFIGURE_ARGS+= --with-mysql
|
2010-11-22 08:36:47 +00:00
|
|
|
LIB_DEPENDS+= databases/mysql
|
|
|
|
WANTLIB += mysqlclient>=10
|
2005-10-08 20:05:06 +00:00
|
|
|
.endif
|
|
|
|
|
2010-08-18 11:16:55 +00:00
|
|
|
post-extract:
|
|
|
|
@cp -f ${FILESDIR}/lighttpd.conf ${WRKSRC}/doc
|
|
|
|
|
2007-07-26 03:54:06 +00:00
|
|
|
pre-build:
|
2010-08-18 11:16:55 +00:00
|
|
|
@${SUBST_CMD} ${WRKSRC}/doc/lighttpd.conf ${WRKSRC}/doc/lighttpd.8
|
2007-04-28 10:08:01 +00:00
|
|
|
|
2004-10-01 06:23:40 +00:00
|
|
|
post-install:
|
2008-04-16 20:42:35 +00:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/lighttpd
|
2004-10-01 06:23:40 +00:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/lighttpd
|
2008-04-16 20:42:35 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/*.txt \
|
|
|
|
${PREFIX}/share/doc/lighttpd
|
2004-10-01 06:23:40 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/lighttpd.conf \
|
2008-04-16 20:42:35 +00:00
|
|
|
${PREFIX}/share/examples/lighttpd
|
2010-08-18 11:16:55 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/scripts/spawn-php.sh \
|
2008-04-16 20:42:35 +00: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 06:23:40 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|