blob: ea5b6befdfc156aba7019933a4bf87fa45dcaf00 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
# ex:ts=8
# Ports collection makefile for: hydra
# Date created: Apr 2, 2003
# Whom: ijliao
#
# $FreeBSD$
#
PORTNAME= hydra
PORTVERSION= 0.1.7
CATEGORIES= www
MASTER_SITES= ftp://ftp.hellug.gr/pub/software/hydra/ \
http://hydra.hellug.gr/download/ \
ftp://ftp.planetmirror.com/pub/hydra/
MAINTAINER= ports@FreeBSD.org
COMMENT= A high performance multi-threaded web server
LIB_DEPENDS= gnutls.12:${PORTSDIR}/security/gnutls
NO_LATEST_LINK= yes
USE_REINPLACE= yes
GNU_CONFIGURE= yes
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
CPPFLAGS= -I${LOCALBASE}/include
LDFLAGS= -L${LOCALBASE}/lib
post-patch:
@${REINPLACE_CMD} -e "s,-pthread,${PTHREAD_LIBS},g" ${WRKSRC}/configure
.for file in src/defines.h examples/hydra.conf
@${REINPLACE_CMD} -e "s,%%PREFIX%%,${PREFIX},g" ${WRKSRC}/${file}
.endfor
post-install:
@${MKDIR} ${PREFIX}/etc/hydra
.for file in hydra.conf mime.types
${INSTALL_DATA} ${WRKSRC}/examples/${file} ${PREFIX}/etc/hydra/${file}-dist
[ -f ${PREFIX}/etc/hydra/${file} ] || \
${INSTALL_DATA} ${WRKSRC}/examples/${file} ${PREFIX}/etc/hydra/
.endfor
.include <bsd.port.mk>
|