2000-01-29 22:51:04 +01:00
|
|
|
# New ports collection makefile for: graphviz
|
|
|
|
# Date created: 03 Feb 1998
|
|
|
|
# Whom: Thomas Gellekum <tg@FreeBSD.org>
|
1998-02-04 09:37:51 +01:00
|
|
|
#
|
1999-08-25 08:16:32 +02:00
|
|
|
# $FreeBSD$
|
1998-02-04 09:37:51 +01:00
|
|
|
#
|
|
|
|
|
2000-04-14 12:48:02 +02:00
|
|
|
PORTNAME= graphviz
|
2007-03-04 08:02:34 +01:00
|
|
|
PORTVERSION= 2.12
|
2003-07-07 08:45:45 +02:00
|
|
|
CATEGORIES= graphics tk84
|
2006-04-29 11:17:28 +02:00
|
|
|
MASTER_SITES= http://www.graphviz.org/pub/graphviz/ARCHIVE/ \
|
|
|
|
http://mirror.inerd.com/FreeBSD/distfiles/${PORTNAME}/
|
1998-02-04 09:37:51 +01:00
|
|
|
|
2007-03-04 07:37:17 +01:00
|
|
|
MAINTAINER= dinoex@FreeBSD.org
|
2003-02-25 07:25:35 +01:00
|
|
|
COMMENT= Graph Visualization Software from AT&T and Bell Labs
|
1998-02-04 09:37:51 +01:00
|
|
|
|
2007-03-04 08:02:34 +01:00
|
|
|
LIB_DEPENDS+= jpeg.9:${PORTSDIR}/graphics/jpeg \
|
2006-05-05 11:46:58 +02:00
|
|
|
png.5:${PORTSDIR}/graphics/png \
|
|
|
|
freetype.9:${PORTSDIR}/print/freetype2 \
|
|
|
|
fontconfig.1:${PORTSDIR}/x11-fonts/fontconfig \
|
|
|
|
expat.6:${PORTSDIR}/textproc/expat2 \
|
2005-10-15 11:54:39 +02:00
|
|
|
gd.4:${PORTSDIR}/graphics/gd
|
2000-10-23 14:37:30 +02:00
|
|
|
|
2006-05-14 14:30:53 +02:00
|
|
|
USE_TK= 84
|
2004-05-14 08:50:12 +02:00
|
|
|
USE_BISON= yes
|
|
|
|
USE_GMAKE= yes
|
2004-03-30 21:20:22 +02:00
|
|
|
USE_ICONV= yes
|
2000-11-14 16:49:46 +01:00
|
|
|
USE_XPM= yes
|
2007-02-01 03:42:05 +01:00
|
|
|
USE_AUTOTOOLS= libltdl:15 libtool:15
|
2006-02-23 11:40:44 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2007-03-04 08:02:34 +01:00
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib -L${X11BASE}/lib
|
|
|
|
CPPFLAGS+= -I${X11BASE}/include -I${LOCALBASE}/include -I${TCL_INCLUDEDIR} -I${TK_INCLUDEDIR}
|
|
|
|
|
2004-05-14 08:50:12 +02:00
|
|
|
MAKE_ENV= EXPR_COMPAT=yes MISSING=${TRUE}
|
2000-10-23 14:37:30 +02:00
|
|
|
|
2006-05-05 11:46:58 +02:00
|
|
|
MAN1= acyclic.1 bcomps.1 ccomps.1 dijkstra.1 dot.1 \
|
2005-03-05 05:50:47 +01:00
|
|
|
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
|
2007-03-04 08:02:34 +01:00
|
|
|
MAN3= agraph.3 cdt.3 expr.3 graph.3 gvc.3 pathplan.3
|
2005-03-05 05:50:47 +01:00
|
|
|
MANN= gdtclft.n tcldot.n tkspline.n
|
2006-05-05 11:46:58 +02:00
|
|
|
MLINKS= dot.1 circo.1 \
|
|
|
|
gxl2dot.1 dot2gxl.1 \
|
|
|
|
dot.1 fdp.1 \
|
|
|
|
dot.1 neato.1 \
|
2005-03-05 05:50:47 +01:00
|
|
|
dot.1 twopi.1
|
2001-02-28 16:03:58 +01:00
|
|
|
|
2006-05-14 14:30:53 +02:00
|
|
|
PATCH_TCL_SCRIPTS= tclpkg/gv/Makefile.in tclpkg/tcldot/demo/doted \
|
|
|
|
tclpkg/tclpathplan/demo/pathplan tclpkg/tkspline/demo/spline
|
|
|
|
PATCH_TK_SCRIPTS= ${PATCH_TCL_SCRIPTS}
|
|
|
|
|
2006-05-05 11:46:58 +02:00
|
|
|
PDOCS_TXT= AUTHORS NEWS ChangeLog cpl1.0.txt doc/Dot.ref doc/latex_suggestions.txt
|
|
|
|
PDOCS_PDF= doc/*.pdf */*/*.pdf
|
|
|
|
PDOCS_HTML= doc/*.html doc/info/*.html doc/info/*.gif
|
1998-02-04 09:37:51 +01:00
|
|
|
|
2006-01-16 23:18:06 +01:00
|
|
|
USE_LDCONFIG= ${PREFIX}/lib/${PORTNAME}
|
|
|
|
|
2007-03-04 08:02:34 +01:00
|
|
|
OPTIONS= PANGOCAIRO "build with pangocairo support (gtk)" off \
|
|
|
|
PERL "Perl bindings (swig)" off \
|
|
|
|
PHP "PHP bindings (swig)" off \
|
|
|
|
PYTHON "Python bindings (swig)" off \
|
|
|
|
RUBY "Ruby bindings (swig)" off \
|
|
|
|
LUA "Lua bindings (swig)" off \
|
|
|
|
TCL "TCL bindings (swig)" off \
|
|
|
|
GUILE "Guile bindings (swig)" off
|
|
|
|
|
2005-12-29 21:04:14 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
2007-03-04 08:02:34 +01:00
|
|
|
|
|
|
|
CONFIGURE_ARGS= --program-transform-name="s/x/x/" \
|
|
|
|
--enable-dependency-tracking \
|
|
|
|
--with-iconvlibdir=${LOCALBASE}/lib \
|
|
|
|
--with-libgd \
|
|
|
|
--with-tclsh=${TCLSH} \
|
|
|
|
--with-wish=${WISH} \
|
|
|
|
--with-fontconfigincludedir=${X11BASE}/include \
|
|
|
|
--with-fontconfiglibdir=${X11BASE}/lib \
|
|
|
|
--disable-io --disable-ocaml --disable-java \
|
|
|
|
--disable-sharp
|
|
|
|
|
|
|
|
CONFIGURE_ENV= CFLAGS="${CFLAGS}" \
|
|
|
|
CPPFLAGS="${CPPFLAGS}" \
|
|
|
|
LDFLAGS="${LDFLAGS}" \
|
|
|
|
TCLCONFIG="${TCL_LIBDIR}/tclConfig.sh" \
|
|
|
|
TKCONFIG="${TK_LIBDIR}/tkConfig.sh" \
|
|
|
|
MISSING=${TRUE}
|
|
|
|
|
|
|
|
.if !defined(WITH_PANGOCAIRO)
|
|
|
|
CONFIGURE_ARGS+= --with-pangocairo=no
|
|
|
|
PLIST_SUB+= WITH_PANGOCAIRO="@comment "
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --with-gtk --with-pangocairo
|
|
|
|
PLIST_SUB+= WITH_PANGOCAIRO=""
|
|
|
|
USE_GNOME= gtk20 pango
|
|
|
|
.include "${PORTSDIR}/Mk/bsd.gnome.mk"
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_PERL) || defined(WITH_PHP) || defined(WITH_PYTHON) || \
|
|
|
|
defined(WITH_RUBY) || defined(WITH_LUA) || defined(WITH_TCL) || defined(WITH_GUILE)
|
|
|
|
BUILD_DEPENDS+= swig1.3:${PORTSDIR}/devel/swig13
|
|
|
|
RUN_DEPENDS+= swig1.3:${PORTSDIR}/devel/swig13
|
|
|
|
CONFIGURE_ARGS+= --enable-swig
|
|
|
|
CONFIGURE_ENV+= SWIG="${LOCALBASE}/bin/swig1.3"
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-swig
|
|
|
|
.endif
|
|
|
|
|
|
|
|
. if !defined(WITH_PERL)
|
|
|
|
CONFIGURE_ARGS+= --disable-perl
|
|
|
|
PLIST_SUB+= WITH_PERL="@comment "
|
|
|
|
. else
|
|
|
|
CONFIGURE_ARGS+= --enable-perl
|
|
|
|
PLIST_SUB+= WITH_PERL=""
|
|
|
|
USE_PERL5= yes
|
|
|
|
. endif
|
|
|
|
|
|
|
|
. if !defined(WITH_PHP)
|
|
|
|
CONFIGURE_ARGS+= --disable-php
|
|
|
|
PLIST_SUB+= WITH_PHP="@comment "
|
|
|
|
. else
|
|
|
|
CONFIGURE_ARGS+= --enable-php
|
|
|
|
PLIST_SUB+= WITH_PHP=""
|
|
|
|
USE_PHP_BUILD= yes
|
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include/php/Zend
|
|
|
|
. endif
|
|
|
|
|
|
|
|
. if !defined(WITH_PYTHON)
|
|
|
|
CONFIGURE_ARGS+= --disable-python
|
|
|
|
PLIST_SUB+= WITH_PYTHON="@comment "
|
|
|
|
. else
|
|
|
|
CONFIGURE_ARGS+= --enable-python
|
|
|
|
PLIST_SUB+= WITH_PYTHON=""
|
|
|
|
USE_PYTHON_BUILD= yes
|
|
|
|
.include "${PORTSDIR}/Mk/bsd.python.mk"
|
|
|
|
LDFLAGS+= "-L${PYTHON_LIBDIR}"
|
|
|
|
. endif
|
|
|
|
|
|
|
|
. if !defined(WITH_RUBY)
|
|
|
|
CONFIGURE_ARGS+= --disable-ruby
|
|
|
|
PLIST_SUB+= WITH_RUBY="@comment "
|
|
|
|
. else
|
|
|
|
CONFIGURE_ARGS+= --enable-ruby
|
|
|
|
PLIST_SUB+= WITH_RUBY=""
|
|
|
|
USE_RUBY= yes
|
|
|
|
.include "${PORTSDIR}/Mk/bsd.ruby.mk"
|
|
|
|
. endif
|
|
|
|
|
|
|
|
. if !defined(WITH_LUA)
|
|
|
|
CONFIGURE_ARGS+= --disable-lua
|
|
|
|
PLIST_SUB+= WITH_LUA="@comment "
|
|
|
|
. else
|
|
|
|
CONFIGURE_ARGS+= --enable-lua
|
|
|
|
PLIST_SUB+= WITH_LUA=""
|
|
|
|
USE_LUA= yes
|
|
|
|
.include "${PORTSDIR}/Mk/bsd.lua.mk"
|
|
|
|
CPPFLAGS+= -I${LUA_INCDIR}
|
|
|
|
LDFLAGS+= -L${LUA_LIBDIR}
|
|
|
|
CONFIGURE_ENV+= LUA="${LUA_BINDIR}/lua"
|
|
|
|
. endif
|
|
|
|
|
|
|
|
. if !defined(WITH_TCL)
|
|
|
|
CONFIGURE_ARGS+= --disable-tcl
|
|
|
|
PLIST_SUB+= WITH_TCL="@comment "
|
|
|
|
. else
|
|
|
|
CONFIGURE_ARGS+= --enable-tcl
|
|
|
|
PLIST_SUB+= WITH_TCL=""
|
|
|
|
. endif
|
|
|
|
|
|
|
|
. if !defined(WITH_GUILE)
|
|
|
|
CONFIGURE_ARGS+= --disable-guile
|
|
|
|
PLIST_SUB+= WITH_GUILE="@comment "
|
|
|
|
. else
|
|
|
|
CONFIGURE_ARGS+= --enable-guile
|
|
|
|
PLIST_SUB+= WITH_GUILE=""
|
|
|
|
LIB_DEPENDS+= guile.15:${PORTSDIR}/lang/guile
|
|
|
|
. endif
|
2005-12-29 21:04:14 +01:00
|
|
|
|
2006-05-14 14:30:53 +02:00
|
|
|
pre-patch:
|
2006-05-05 11:46:58 +02:00
|
|
|
@${FIND} ${WRKSRC} -name Makefile.in | ${XARGS} \
|
|
|
|
${REINPLACE_CMD} -e 's|(libdir)/pkgconfig|(prefix)/libdata/pkgconfig|' \
|
|
|
|
-e "s|\([^:]*:.*\) install-pdfDATA\(.*\)|\1\2|g" \
|
|
|
|
-e "s|\([^:]*:.*\) install-htmlDATA\(.*\)|\1\2|g" \
|
|
|
|
-e "s|\([^:]*:.*\) install-txtDATA\(.*\)|\1\2|g" \
|
|
|
|
-e "s|\([^:]*:.*\) install-demoDATA\(.*\)|\1\2|g" \
|
|
|
|
-e "s|\([^:]*:.*\) install-demoSCRIPTS\(.*\)|\1\2|g" \
|
|
|
|
-e "s|\([^:]*:.*\) install-pathplanexampleDATA\(.*\)|\1\2|g" \
|
|
|
|
-e 's|demodir = $$(pkgdatadir)/demo|demodir = ${EXAMPLESDIR}|';
|
|
|
|
|
|
|
|
@${REINPLACE_CMD} -e 's|^\.SUFFIXES: \(.*\)\.1\(.*\)|.SUFFIXES: \1 \2|' \
|
|
|
|
${WRKSRC}/cmd/tools/Makefile.in \
|
|
|
|
${WRKSRC}/cmd/gvpr/Makefile.in
|
|
|
|
|
2007-03-04 08:02:34 +01:00
|
|
|
@${FIND} ${WRKSRC}/lib -name 'Makefile.in' | ${XARGS} \
|
|
|
|
${REINPLACE_CMD} -e 's|libdir = @libdir@|libdir = @libdir@/graphviz|g';
|
|
|
|
|
|
|
|
@${REINPLACE_CMD} -e "s|/usr/include/php|${LOCALBASE}/include/php|g" \
|
|
|
|
-e "s|-lruby|-lruby${RUBY_SUFFIX}|g" ${WRKSRC}/configure
|
2006-05-05 11:46:58 +02:00
|
|
|
|
|
|
|
post-install-script:
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/tclpkg/gdtclft/gdtclft.n ${MANNPREFIX}/man/mann
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/tclpkg/tcldot/tcldot.n ${MANNPREFIX}/man/mann
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/tclpkg/tkspline/tkspline.n ${MANNPREFIX}/man/mann
|
2005-12-29 22:28:58 +01:00
|
|
|
|
2006-01-16 23:18:06 +01:00
|
|
|
post-install: install-ldconfig-file
|
2001-02-28 16:03:58 +01:00
|
|
|
.if !defined(NOPORTDOCS)
|
2006-05-05 11:46:58 +02:00
|
|
|
@${MKDIR} ${DOCSDIR}/html
|
|
|
|
@${MKDIR} ${DOCSDIR}/pdf
|
|
|
|
cd ${WRKSRC} && ${INSTALL_DATA} ${PDOCS_TXT} ${DOCSDIR} \
|
|
|
|
&& ${INSTALL_DATA} ${PDOCS_PDF} ${DOCSDIR}/pdf \
|
|
|
|
&& ${INSTALL_DATA} ${PDOCS_HTML} ${DOCSDIR}/html
|
|
|
|
|
|
|
|
. for i in neato.pdf twopi.pdf fdp.pdf circo.pdf
|
|
|
|
cd ${DOCSDIR}/pdf && ${LN} -fs dot.pdf ${i}
|
|
|
|
. endfor
|
|
|
|
cd ${DOCSDIR}/pdf && ${LN} -fs gxl2dot.pdf dot2gxl.pdf
|
2001-02-28 16:03:58 +01:00
|
|
|
.endif
|
|
|
|
|
2006-05-05 11:46:58 +02:00
|
|
|
@${ECHO_MSG} "Installing demo data..."
|
|
|
|
@${MKDIR} ${EXAMPLESDIR}
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/tclpkg/gdtclft/demo/entities ${EXAMPLESDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/tclpkg/gdtclft/demo/entities.README ${EXAMPLESDIR}
|
|
|
|
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/tclpkg/tcldot/demo/doted ${EXAMPLESDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/tclpkg/tcldot/demo/doted.README ${EXAMPLESDIR}
|
|
|
|
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/tclpkg/tcldot/demo/gcat ${EXAMPLESDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/tclpkg/tcldot/demo/gcat.README ${EXAMPLESDIR}
|
|
|
|
|
|
|
|
@${MKDIR} ${EXAMPLESDIR}/pathplan_data
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/tclpkg/tclpathplan/demo/pathplan ${EXAMPLESDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/tclpkg/tclpathplan/demo/pathplan.README ${EXAMPLESDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/tclpkg/tclpathplan/demo/pathplan_data/*.dat \
|
|
|
|
${EXAMPLESDIR}/pathplan_data
|
|
|
|
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/tclpkg/tkspline/demo/spline ${EXAMPLESDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/tclpkg/tkspline/demo/spline.README ${EXAMPLESDIR}
|
|
|
|
|
2005-12-29 21:04:14 +01:00
|
|
|
.include <bsd.port.post.mk>
|