# New ports collection makefile for:	libevent-hiphop
# Date created:				16 July 2012
# Whom:					Martin Matuska <mm@FreeBSd.org>
#
# $FreeBSD: branches/RELEASE_8_4_0/devel/libevent-hiphop/Makefile 300952 2012-07-16 15:04:34Z mm $
#

PKGNAMESUFFIX=	-hiphop

MAINTAINER=	mm@FreeBSD.org
COMMENT=	Static libevent with custom patches for HipHop

LICENSE=	BSD

HIPHOP_DIR=	share/hiphop-php

_BUILDING_LIBEVENT_HIPHOP=	yes
CONFIGURE_ARGS+=	--disable-shared --enable-static
EXTRA_PATCHES=	${.CURDIR}/files/extra-patch-hiphop
GNU_CONFIGURE_PREFIX=	${PREFIX}/${HIPHOP_DIR}/ext
INSTALL_TARGET=	install-libLTLIBRARIES \
		install-includeHEADERS \
		install-nodist_includeHEADERS
PLIST_SUB+=	HIPHOP_DIR="${HIPHOP_DIR}"
PLIST=		${.CURDIR}/pkg-plist
DESCR=		${.CURDIR}/pkg-descr

MASTERDIR=	${.CURDIR}/../libevent

.include "${MASTERDIR}/Makefile"
