aboutsummaryrefslogtreecommitdiffstats
path: root/x11-toolkits/flowcanvas/Makefile
blob: e8b5ad75dc69794a94d7bae5df77e5cb47f78b88 (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
45
46
47
48
49
50
# Created by: Edward Tomasz Napierala <trasz@FreeBSD.org>
# $FreeBSD$

PORTNAME=   flowcanvas
PORTVERSION=    0.7.1
PORTREVISION=   4
CATEGORIES= x11-toolkits
MASTER_SITES=   http://download.drobilla.net/

MAINTAINER= ports@FreeBSD.org
COMMENT=    Interactive Gtkmm/Gnomecanvasmm widget

LICENSE=    GPLv2 GPLv3
LICENSE_COMB=   dual

LIB_DEPENDS=    libboost_date_time.so:${PORTSDIR}/devel/boost-libs \
        libgvc.so:${PORTSDIR}/graphics/graphviz \
        libgnomecanvasmm-2.6.so:${PORTSDIR}/graphics/libgnomecanvasmm26 \
        libgtkmm-2.4.so:${PORTSDIR}/x11-toolkits/gtkmm24

USES=       tar:bzip2 pkgconfig
USE_PYTHON_BUILD=yes
USE_LDCONFIG=   yes

CFLAGS+=    -I${LOCALBASE}/include

.include <bsd.port.pre.mk>

.if defined(BATCH) || defined(PACKAGE_BUILDING)
WAF_VERBOSE=    --verbose
.endif

WAF_JOBS=   --jobs=${MAKE_JOBS_NUMBER}

post-patch:
    @${REINPLACE_CMD} -e \
        "s|$$[{]LIBDIRNAME[}]/pkgconfig|libdata/pkgconfig| ; \
         s|-fshow-column'|-fshow-column ${CXXFLAGS}'|" \
            ${WRKSRC}/autowaf/autowaf.py

do-configure:
    @(cd ${WRKSRC} && ./waf ${WAF_VERBOSE} --prefix=${PREFIX} configure)

do-build:
    @(cd ${WRKSRC} && ./waf ${WAF_VERBOSE} ${WAF_JOBS} build)

do-install:
    @(cd ${WRKSRC} && ./waf ${WAF_VERBOSE} --destdir=${STAGEDIR} install)

.include <bsd.port.post.mk>