mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-15 03:14:23 +00:00
12382b2fed
PR: hasn't arrived yet Submitted by: Beech Rintoul <beech@alaskaparadise.com>
89 lines
2.2 KiB
Makefile
89 lines
2.2 KiB
Makefile
# New ports collection makefile for: cherokee
|
|
# Date created: 01 Jun 2002
|
|
# Whom: silence <oksala@videotron.ca>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= cherokee
|
|
PORTVERSION= 0.5.5
|
|
CATEGORIES= www
|
|
MASTER_SITES= http://www.cherokee-project.com/download/%SUBDIR%/
|
|
MASTER_SITE_SUBDIR= ${PORTVERSION:R}/${PORTVERSION}
|
|
|
|
MAINTAINER= beech@alaskaparadise.com
|
|
COMMENT= An extremely fast and flexible web server
|
|
|
|
LIB_DEPENDS= pcre.0:${PORTSDIR}/devel/pcre
|
|
|
|
USE_GNOME= gnomehack gnometarget pkgconfig
|
|
USE_RC_SUBR= cherokee.sh
|
|
USE_GCC= 3.4+
|
|
USE_BISON= yes
|
|
USE_GETOPT_LONG= yes
|
|
USE_GMAKE= yes
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
|
|
CONFIGURE_ARGS= --mandir=${MANPREFIX}/man \
|
|
--with-wwwroot=${PREFIX}/www
|
|
USE_LDCONFIG= yes
|
|
|
|
MAN1= cget.1 cherokee-config.1 cherokee.1 cherokee_logrotate.1
|
|
|
|
CPPFLAGS= -I${LOCALBASE}/include ${PTHREAD_CFLAGS}
|
|
LDFLAGS= -L${LOCALBASE}/lib ${PTHREAD_LIBS}
|
|
|
|
.if defined(WITHOUT_GNUTLS)
|
|
USE_OPENSSL= yes
|
|
CONFIGURE_ARGS+= --enable-tls=openssl
|
|
LDFLAGS+= -lssl -lcrypto
|
|
.else
|
|
LIB_DEPENDS+= gnutls.13:${PORTSDIR}/security/gnutls
|
|
CONFIGURE_ARGS+= --enable-tls=gnutls
|
|
.endif
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${OSVERSION} < 500000
|
|
PLIST_SUB+= PAM=""
|
|
.else
|
|
PLIST_SUB+= PAM="@comment "
|
|
.endif
|
|
|
|
post-patch:
|
|
@${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${REINPLACE_CMD} -e \
|
|
's|@mkdir_p@|${MKDIR} --|g'
|
|
|
|
pre-build:
|
|
.for file in advanced.conf cherokee.conf mods-ssl sites-default sites-example
|
|
@cd ${BUILD_WRKSRC} && ${SED} -e \
|
|
's:%sysconfdir%:${PREFIX}/etc:g ; \
|
|
s:%datadir%:${PREFIX}/share:g ; \
|
|
s:%wwwroot%:${PREFIX}/www:g ; \
|
|
s:%prefix%:${PREFIX}:g' < ${file}.sample.pre > ${file}.sample
|
|
.endfor
|
|
|
|
pre-install:
|
|
@if [ ! -f ${PREFIX}/www ]; then \
|
|
${MKDIR} ${PREFIX}/www;\
|
|
fi
|
|
@if [ ! -f ${PREFIX}/www/data ] ; then \
|
|
${MKDIR} ${PREFIX}/www/data;\
|
|
fi
|
|
@${ECHO_MSG} " `pwd` "
|
|
|
|
post-install:
|
|
.if !defined(NOPORTDOCS)
|
|
@${MKDIR} ${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/doc/*.html ${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/doc/*.png ${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/doc/images/*.png ${DOCSDIR}
|
|
.endif
|
|
${INSTALL_DATA} ${WRKSRC}/doc/develop/Intro.txt ${DATADIR}
|
|
@${ECHO_MSG} " "
|
|
@${ECHO_MSG} " Dont forget to read the doc "
|
|
@${ECHO_MSG} " ${PREFIX}/share/cherokee/Intro.txt"
|
|
@${ECHO_MSG} " "
|
|
|
|
.include <bsd.port.post.mk>
|