openbsd-ports/www/hiawatha/Makefile
2012-12-12 09:39:52 +00:00

44 lines
1023 B
Makefile

# $OpenBSD: Makefile,v 1.33 2012/12/12 09:39:52 jasper Exp $
COMMENT= secure webserver
DISTNAME= hiawatha-8.6
CATEGORIES= www net
HOMEPAGE= http://www.hiawatha-webserver.org/
# GPLv2
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= ${HOMEPAGE}files/
MODULES= devel/cmake
WANTLIB += c pthread xml2 z xslt
LIB_DEPENDS= textproc/libxslt
CONFIGURE_ARGS= -DWEBROOT_DIR="/var/hiawatha" \
-DWORK_DIR="/var/db/hiawatha/" \
-DCONFIG_DIR="${SYSCONFDIR}/hiawatha/" \
-DLOG_DIR="/var/log/hiawatha/" \
-DCMAKE_INSTALL_MANDIR="${PREFIX}/man/" \
-DENABLE_XSLT=ON
NO_REGRESS= Yes
pre-configure:
${SUBST_CMD} ${WRKSRC}/config/hiawatha.conf.in \
${WRKSRC}/config/cgi-wrapper.conf \
${WRKSRC}/config/php-fcgi.conf.in \
${WRKSRC}/man/hiawatha.1.in
post-install:
mv ${DESTDIR}/etc/hiawatha/ ${PREFIX}/share/examples/hiawatha/
mv ${DESTDIR}/var/hiawatha/index.html ${PREFIX}/share/examples/hiawatha/
rm -r ${PREFIX}/var/
.include <bsd.port.mk>