Line 0
Link Here
|
|
|
1 |
# New ports collection makefile for: cherokee |
2 |
# Date created: 01 Jun 2002 |
3 |
# Whom: silence <oksala@videotron.ca> |
4 |
# |
5 |
# $FreeBSD: ports/www/cherokee/Makefile,v 1.29 2006/11/05 04:06:56 lawrance Exp $ |
6 |
# |
7 |
|
8 |
PORTNAME= cherokee |
9 |
PORTVERSION= 0.5.5 |
10 |
PORTREVISION= 1 |
11 |
CATEGORIES= www |
12 |
MASTER_SITES= http://www.cherokee-project.com/download/%SUBDIR%/ \ |
13 |
http://www.alaskaparadise.com/freebsd/ |
14 |
MASTER_SITE_SUBDIR= ${PORTVERSION:R}/${PORTVERSION} |
15 |
|
16 |
MAINTAINER= beech@alaskaparadise.com |
17 |
COMMENT= An extremely fast and flexible web server |
18 |
|
19 |
LIB_DEPENDS= pcre.0:${PORTSDIR}/devel/pcre |
20 |
|
21 |
USE_GNOME= gnomehack gnometarget pkgconfig |
22 |
USE_RC_SUBR= cherokee.sh |
23 |
USE_GCC= 3.4+ |
24 |
USE_BISON= yes |
25 |
USE_GETOPT_LONG= yes |
26 |
USE_GMAKE= yes |
27 |
GNU_CONFIGURE= yes |
28 |
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" |
29 |
CONFIGURE_ARGS= --mandir=${MANPREFIX}/man \ |
30 |
--with-wwwroot=${PREFIX}/www |
31 |
|
32 |
OPTIONS= GNUTLS "TLS/SSL Use gnutls" on \ |
33 |
OPENSSL "TLS/SSL Use openssl" off \ |
34 |
NOTLS "No TLS/SSL" off \ |
35 |
NOIPV6 "No IPv6" off |
36 |
|
37 |
USE_LDCONFIG= yes |
38 |
|
39 |
MAN1= cget.1 cherokee-config.1 cherokee.1 cherokee_logrotate.1 |
40 |
|
41 |
CPPFLAGS= -I${LOCALBASE}/include ${PTHREAD_CFLAGS} |
42 |
LDFLAGS= -L${LOCALBASE}/lib ${PTHREAD_LIBS} |
43 |
|
44 |
.include <bsd.port.pre.mk> |
45 |
|
46 |
.if !defined(WITHOUT_GNUTLS) |
47 |
LIB_DEPENDS+= gnutls.13:${PORTSDIR}/security/gnutls |
48 |
CONFIGURE_ARGS+= --enable-tls=gnutls |
49 |
.endif |
50 |
|
51 |
.if defined(WITH_OPENSSL) |
52 |
CFLAGS+= -DHAVE_OPENSSL |
53 |
CONFIGURE_ARGS+= --enable-tls=openssl |
54 |
LDFLAGS+= -lssl -lcrypto |
55 |
.endif |
56 |
|
57 |
.if defined(WITH_NOTLS) |
58 |
CONFIGURE_ARGS+= --disable-tls |
59 |
.endif |
60 |
|
61 |
.if defined(WITH_NOIPV6) |
62 |
CONFIGURE_ARGS+= --disable-ipv6 |
63 |
.endif |
64 |
|
65 |
.if ${OSVERSION} < 500000 |
66 |
PLIST_SUB+= PAM="" |
67 |
.else |
68 |
PLIST_SUB+= PAM="@comment " |
69 |
.endif |
70 |
|
71 |
post-patch: |
72 |
@${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${REINPLACE_CMD} -e \ |
73 |
's|@mkdir_p@|${MKDIR} --|g' |
74 |
|
75 |
pre-build: |
76 |
.for file in advanced.conf cherokee.conf mods-ssl sites-default sites-example |
77 |
@cd ${BUILD_WRKSRC} && ${SED} -e \ |
78 |
's:%sysconfdir%:${PREFIX}/etc:g ; \ |
79 |
s:%datadir%:${PREFIX}/share:g ; \ |
80 |
s:%wwwroot%:${PREFIX}/www:g ; \ |
81 |
s:%prefix%:${PREFIX}:g' < ${file}.sample.pre > ${file}.sample |
82 |
.endfor |
83 |
|
84 |
pre-install: |
85 |
@if [ ! -f ${PREFIX}/www ]; then \ |
86 |
${MKDIR} ${PREFIX}/www;\ |
87 |
fi |
88 |
@if [ ! -f ${PREFIX}/www/data ] ; then \ |
89 |
${MKDIR} ${PREFIX}/www/data;\ |
90 |
fi |
91 |
@${ECHO_MSG} " `pwd` " |
92 |
|
93 |
post-install: |
94 |
.if !defined(NOPORTDOCS) |
95 |
@${MKDIR} ${DOCSDIR} |
96 |
${INSTALL_DATA} ${WRKSRC}/doc/*.html ${DOCSDIR} |
97 |
${INSTALL_DATA} ${WRKSRC}/doc/*.png ${DOCSDIR} |
98 |
${INSTALL_DATA} ${WRKSRC}/doc/images/*.png ${DOCSDIR} |
99 |
.endif |
100 |
${INSTALL_DATA} ${WRKSRC}/doc/develop/Intro.txt ${DATADIR} |
101 |
@${ECHO_MSG} " " |
102 |
@${ECHO_MSG} " Dont forget to read the doc " |
103 |
@${ECHO_MSG} " ${PREFIX}/share/cherokee/Intro.txt" |
104 |
@${ECHO_MSG} " " |
105 |
|
106 |
.include <bsd.port.post.mk> |