2008-04-25 06:23:07 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.53 2008/04/25 10:23:07 jasper 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
|
|
|
|
2008-03-16 14:43:31 -04:00
|
|
|
DISTNAME= lighttpd-1.4.19
|
2008-04-25 06:23:07 -04:00
|
|
|
PKGNAME= ${DISTNAME}p3
|
2004-10-01 02:23:40 -04:00
|
|
|
CATEGORIES= www net
|
2007-08-31 06:10:17 -04:00
|
|
|
MASTER_SITES= ${HOMEPAGE}/download/
|
2004-10-01 02:23:40 -04:00
|
|
|
|
2007-09-01 16:11:21 -04:00
|
|
|
MAINTAINER= Brad Smith <brad@comstyle.com>
|
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
|
|
|
|
2006-11-05 11:13:31 -05:00
|
|
|
LIB_DEPENDS+= pcre::devel/pcre \
|
|
|
|
lua.>=5.1::lang/lua
|
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
|
2006-11-05 11:13:31 -05:00
|
|
|
WANTLIB= c crypto m ssl z
|
2004-10-01 02:23:40 -04: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
|
2004-10-01 02:23:40 -04:00
|
|
|
CONFIGURE_STYLE= gnu
|
2005-10-08 16:05:06 -04:00
|
|
|
CONFIGURE_ARGS+= --with-openssl \
|
2005-10-07 16:07:04 -04:00
|
|
|
--without-bzip2 \
|
2006-11-05 11:13:31 -05:00
|
|
|
--libdir="${PREFIX}/lib/lighttpd" \
|
|
|
|
--with-lua
|
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
|
|
|
|
LIB_DEPENDS+= lber,ldap::databases/openldap
|
2006-11-11 09:26:03 -05:00
|
|
|
WANTLIB+= sasl2 asn1 com_err gssapi krb5
|
2005-10-08 16:05:06 -04:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${FLAVOR:L:Mmysql}
|
|
|
|
CONFIGURE_ARGS+= --with-mysql
|
2006-09-18 05:04:03 -04:00
|
|
|
LIB_DEPENDS+= mysqlclient.>=10::databases/mysql
|
2005-10-08 16:05:06 -04:00
|
|
|
.endif
|
|
|
|
|
2007-07-25 23:54:06 -04:00
|
|
|
pre-build:
|
2007-04-28 06:08:01 -04:00
|
|
|
@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
|
|
|
|
|
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
|
|
|
|
${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
|
2004-10-01 02:23:40 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|