summaryrefslogtreecommitdiff
path: root/www/monkey/Makefile
blob: c29174533e69ab125b90d0ce3bd9fbed5b2dd0d6 (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
# New ports collection makefile for:	monkey
# Date created:				Mon Oct 20 2003
# Whom:					Clement Laforet <sheepkiller@cultdeadsheep.org>
#
# $FreeBSD$
#

PORTNAME=	monkey
PORTVERSION=	0.8.2
CATEGORIES=	www
MASTER_SITES=	http://monkeyd.sourceforge.net/versions/

MAINTAINER=	clement@FreeBSD.org
COMMENT=	A small, powerful, and fast Web server written in C

LIB_DEPENDS=	execinfo.1:${PORTSDIR}/devel/libexecinfo

USE_GMAKE=	yes
ALL_TARGET=	default
HAS_CONFIGURE=	yes
CONFIGURE_ARGS=	--prefix=${PREFIX} \
		--bindir=${PREFIX}/sbin \
		--cgibin=${PREFIX}/www/cgi-bin \
		--sysconfdir=${PREFIX}/etc/monkey \
		--datadir=${PREFIX}/www/data \
		--logdir=/var/log \
		--lang=en

CONFIGURE_ENV+=	EXTRA_CFLAGS="${CFLAGS}" PTHREAD_LIBS="${PTHREAD_LIBS}"

CFLAGS+=	${PTHREAD_CFLAGS} -I${LOCALBASE}/include
LDFLAGS+=	-L${LOCALBASE}/lib

post-install:
	@${INSTALL_SCRIPT} ${FILESDIR}/monkey.sh ${PREFIX}/etc/rc.d/monkey.sh.sample

.include <bsd.port.mk>