# New ports collection Makefile for:	morebalance
# Date created:				Wed Oct 8
# Whom:					Clement Laforet <sheepkiller@cultdeadsheep.org>
#
# $FreeBSD: ports/net/morebalance/Makefile,v 1.15 2007/07/01 08:56:13 novel Exp $
#

PORTNAME=	morebalance
PORTVERSION=	0.4
PORTREVISION=	3
CATEGORIES=	net
MASTER_SITES=	http://morebalance.coolprojects.org/

MAINTAINER=	clement@FreeBSD.org
COMMENT=	A modular open source user-space load balancing system

LIB_DEPENDS+=	pcre.0:${PORTSDIR}/devel/pcre \
		gnutls.13:${PORTSDIR}/security/gnutls \
		ggz.5:${PORTSDIR}/games/libggz

CFLAGS+=	${PTHREAD_CFLAGS} -I${LOCALBASE}/include
MAKE_ARGS+=	CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
USE_GETTEXT=	YES
USE_GETOPT_LONG=yes

LDFLAGS+=	-L${LOCALBASE}/lib -lpcre -lggz -lgnutls \
		-L${LOCALBASE}/lib ${PTHREAD_LIBS}

MAN1=		morebalance.1
MAN5=		morebalance.conf.5

do-install:
	@${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/sbin
	@${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.conf ${PREFIX}/etc/${PORTNAME}.conf.sample
	@${INSTALL_MAN} ${WRKSRC}/doc/${PORTNAME}.1 ${MANPREFIX}/man/man1
	@${INSTALL_MAN} ${WRKSRC}/doc/${PORTNAME}.conf.5 ${MANPREFIX}/man/man5
	@${MAKE_ENV} ${MAKE} -C ${WRKSRC} install-messages

.include <bsd.port.mk>


syntax highlighted by Code2HTML, v. 0.9.1