2010-11-22 05:16:08 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.78 2010/11/22 10:16:08 espie 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
|
|
|
|
2010-08-23 18:44:10 -04:00
|
|
|
DISTNAME= lighttpd-1.4.28
|
2010-11-07 14:13:40 -05:00
|
|
|
REVISION= 1
|
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
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
2010-11-22 05:16:08 -05:00
|
|
|
WANTLIB= c crypto lua>=5.1 m pcre ssl z
|
2004-10-01 02:23:40 -04:00
|
|
|
|
2010-11-22 03:36:47 -05:00
|
|
|
LIB_DEPENDS+= devel/pcre \
|
|
|
|
lang/lua
|
|
|
|
RUN_DEPENDS+= www/spawn-fcgi
|
2009-02-17 07:44:17 -05:00
|
|
|
|
2005-08-11 00:38:44 -04:00
|
|
|
USE_LIBTOOL= Yes
|
2007-04-28 06:08:01 -04:00
|
|
|
LIBTOOL_FLAGS= --tag=disable-static
|
2010-10-19 04:02:53 -04:00
|
|
|
USE_GROFF = Yes
|
2010-07-06 13:17:50 -04:00
|
|
|
CONFIGURE_STYLE= autoconf
|
|
|
|
# Should be 2.65
|
|
|
|
AUTOCONF_VERSION= 2.64
|
2009-02-17 07:44:17 -05:00
|
|
|
CONFIGURE_ARGS+= --libdir="${PREFIX}/lib/lighttpd" \
|
|
|
|
--with-lua \
|
|
|
|
--with-openssl \
|
|
|
|
--without-bzip2
|
2004-10-01 02:23:40 -04:00
|
|
|
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
|
|
|
|
2005-10-08 16:05:06 -04:00
|
|
|
FLAVORS= ldap mysql
|
|
|
|
FLAVOR?=
|
|
|
|
|
|
|
|
.if ${FLAVOR:L:Mldap}
|
|
|
|
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
|
|
|
|
|
|
|
|
.if ${FLAVOR:L:Mmysql}
|
|
|
|
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
|
2008-04-16 16:42:35 -04:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/*.txt \
|
|
|
|
${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>
|