aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/graphviz/Makefile
blob: 9524fdb955543ecd5573fee98305d3a49d013c9d (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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# New ports collection makefile for:    graphviz
# Date created:     03 Feb 1998
# Whom:         Thomas Gellekum <tg@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   graphviz
PORTVERSION=    2.6
PORTREVISION=   4
CATEGORIES= graphics tk84
MASTER_SITES=   http://www.graphviz.org/pub/graphviz/ARCHIVE/

MAINTAINER= shaun@inerd.com
COMMENT=    Graph Visualization Software from AT&T and Bell Labs

LIB_DEPENDS=    jpeg.9:${PORTSDIR}/graphics/jpeg \
        png.5:${PORTSDIR}/graphics/png \
        freetype.9:${PORTSDIR}/print/freetype2 \
        fontconfig.1:${PORTSDIR}/x11-fonts/fontconfig \
        tk84.1:${PORTSDIR}/x11-toolkits/tk84 \
        expat.6:${PORTSDIR}/textproc/expat2 \
        gd.4:${PORTSDIR}/graphics/gd

USE_BISON=  yes
USE_GMAKE=  yes
USE_ICONV=  yes
USE_REINPLACE=  yes
USE_XPM=    yes
USE_AUTOTOOLS=  libltdl:15
GNU_CONFIGURE=  yes
CONFIGURE_ENV=  CPPFLAGS="-I${X11BASE}/include -I${LOCALBASE}/include -I${LOCALBASE}/include/tcl8.4 -I${LOCALBASE}/include/tk8.4" \
        LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib" \
        TCLCONFIG=${LOCALBASE}/lib/tcl8.4/tclConfig.sh \
        TKCONFIG=${LOCALBASE}/lib/tk8.4/tkConfig.sh \
        MISSING=${TRUE}
CONFIGURE_ARGS= --program-transform-name="s/x/x/" \
        --enable-dependency-tracking \
        --with-iconvlibdir=${LOCALBASE}/lib \
        --with-tclsh=${LOCALBASE}/tcl8.4 \
        --with-wish=${LOCALBASE}/wish8.4 \
        --with-fontconfigincludedir=${X11BASE}/include \
        --with-fontconfiglibdir=${X11BASE}/lib
MAKE_ENV=   EXPR_COMPAT=yes MISSING=${TRUE}

MAN1=       acyclic.1 bcomps.1 ccomps.1 dijkstra.1 dot.1 \
        dotty.1 gc.1 gvcolor.1 gvpack.1 gvpr.1 gxl2dot.1 lefty.1 \
        lneato.1 nop.1 prune.1 sccmap.1 tred.1 unflatten.1
MAN3=       agraph.3 cdt.3 expr.3 graph.3 pack.3 pathplan.3
MANN=       gdtclft.n tcldot.n tkspline.n
MLINKS=     dot.1 circo.1 \
        gxl2dot.1 dot2gxl.1 \
        dot.1 fdp.1 \
        dot.1 neato.1 \
        dot.1 twopi.1

MYPORTDOCS= dotguide.pdf dottyguide.pdf leftyguide.pdf \
        neatoguide.pdf Dot.ref FAQ.html

INSTALLS_SHLIB= yes
LDCONFIG_DIRS=  %%PREFIX%%/lib/${PORTNAME}
USE_LDCONFIG=   ${PREFIX}/lib/${PORTNAME}

.include <bsd.port.pre.mk>
.include "${PORTSDIR}/misc/ldconfig_compat/bsd.ldconfig.mk"

post-patch:
    @${FIND} ${WRKSRC} -name Makefile.in | ${XARGS} ${REINPLACE_CMD} -e 's|(libdir)/pkgconfig|(prefix)/libdata/pkgconfig|'
.if ${OSVERSION} < 500000
    @${REINPLACE_CMD} 's|-Wno-unused-parameter||g' ${WRKSRC}/configure
.endif

post-install: install-ldconfig-file
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
.for file in ${MYPORTDOCS}
    ${INSTALL_DATA} ${WRKSRC}/doc/${file} ${DOCSDIR}
.endfor
.endif

.include <bsd.port.post.mk>