aboutsummaryrefslogtreecommitdiffstats
path: root/devel/eventxx/Makefile
blob: 8191f814c7226f7533ed8cc214cc07ee49d20be6 (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
# ex:ts=8
# Ports collection makefile for:    eventxx
# Date created:         Apr 9, 2007
# Whom:             ijliao
#
# $FreeBSD$
#

PORTNAME=   eventxx
PORTVERSION=    1.0
CATEGORIES= devel
MASTER_SITES=   http://proj.llucax.com.ar/home/eventxx/releases/
MASTER_SITE_SUBDIR= gahr
DISTNAME=   ${PORTNAME}

MAINTAINER= glarkin@FreeBSD.org
COMMENT=    A C++ wrapper for libevent

LIB_DEPENDS=    event-1.3e:${PORTSDIR}/devel/libevent

WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}

NO_BUILD=   yes

post-extract:
    ${REINPLACE_CMD} -e 's|-I..|-I.. -I${LOCALBASE}/include -L${LOCALBASE}/lib|g' \
        ${WRKSRC}/test/Makefile

do-install:
    @${INSTALL_DATA} ${WRKSRC}/eventxx ${PREFIX}/include

post-install:
.if !defined(NOPORTEXAMPLES)
    ${INSTALL} -d ${EXAMPLESDIR}
    (cd ${WRKSRC}/test && ${COPYTREE_SHARE} \*.cpp ${EXAMPLESDIR})
    ${INSTALL_DATA} ${WRKSRC}/test/Makefile ${EXAMPLESDIR}
.endif

.include <bsd.port.mk>