aboutsummaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authordinoex <dinoex@FreeBSD.org>2008-03-29 02:21:23 +0800
committerdinoex <dinoex@FreeBSD.org>2008-03-29 02:21:23 +0800
commit18d1be52640527183f42ca6ee41efa05e6992c65 (patch)
tree8951492516aba1b88d965b10670efe702b896743 /graphics
parent9311b025291a8298eb3b5280176a5c34e2f4ec8c (diff)
downloadfreebsd-ports-gnome-18d1be52640527183f42ca6ee41efa05e6992c65.tar.gz
freebsd-ports-gnome-18d1be52640527183f42ca6ee41efa05e6992c65.tar.zst
freebsd-ports-gnome-18d1be52640527183f42ca6ee41efa05e6992c65.zip
- change default options, bump PORTREVISION
- fix build WITHOUT_TK - 118094
Diffstat (limited to 'graphics')
-rw-r--r--graphics/graphviz/Makefile41
-rw-r--r--graphics/graphviz/pkg-plist8
2 files changed, 26 insertions, 23 deletions
diff --git a/graphics/graphviz/Makefile b/graphics/graphviz/Makefile
index ef1bfef76f3b..24630f44152c 100644
--- a/graphics/graphviz/Makefile
+++ b/graphics/graphviz/Makefile
@@ -7,6 +7,7 @@
PORTNAME= graphviz
PORTVERSION= 2.16.1
+PORTREVISION= 1
CATEGORIES= graphics tk84
MASTER_SITES= http://www.graphviz.org/pub/graphviz/ARCHIVE/ \
http://mirror.inerd.com/FreeBSD/distfiles/${PORTNAME}/
@@ -26,8 +27,8 @@ USE_GMAKE= yes
USE_AUTOTOOLS= libltdl:15 libtool:15
WANT_GNOME= yes
GNU_CONFIGURE= yes
-LDFLAGS+= -L${LOCALBASE}/lib -L${X11BASE}/lib
-CPPFLAGS+= -I${X11BASE}/include -I${LOCALBASE}/include -I${TCL_INCLUDEDIR} -I${TK_INCLUDEDIR}
+LDFLAGS+= -L${LOCALBASE}/lib
+CPPFLAGS+= -I${LOCALBASE}/include
MAKE_ENV= EXPR_COMPAT=yes MISSING=${TRUE}
@@ -65,16 +66,16 @@ PDOCS_HTML= doc/*.html doc/info/*.html doc/info/*.gif
USE_LDCONFIG= ${PREFIX}/lib/${PORTNAME}
-OPTIONS= TK "Build with TK support" on \
+OPTIONS= ICONV "Build with ICONV support" on \
XPM "Build with XPM support" on \
- ICONV "Build with ICONV support" on \
+ DIGCOLA "DIGCOLA features in neato layout engine" on \
+ IPSEPCOLA "IPSEPCOLA features in neato layout engine" on \
NLS "Build with gettext support" on \
+ TK "Build with TK support" off \
PANGOCAIRO "build with pangocairo support" off \
GTK "build with gtk plugin" off \
GDK_PIXBUF "build with gdk pixbuf support" off \
GNOMEUI "build with libgnomeui support" off \
- DIGCOLA "DIGCOLA features in neato layout engine" off \
- IPSEPCOLA "IPSEPCOLA features in neato layout engine" off \
MING "Build with ming plugin" off \
PERL "Perl bindings (swig)" off \
PHP "PHP bindings (swig)" off \
@@ -104,21 +105,23 @@ CONFIGURE_ENV+= CFLAGS="${CFLAGS}" \
LDFLAGS="${LDFLAGS}" \
MISSING=${TRUE}
-.if !defined(WITHOUT_TK)
-USE_TK_BUILD= 84
-.include "${PORTSDIR}/Mk/bsd.tcl.mk"
-CONFIGURE_ARGS+= --with-tclsh=${TCLSH} \
- --with-wish=${WISH}
-CONFIGURE_ENV+= TCLCONFIG="${TCL_LIBDIR}/tclConfig.sh" \
- TKCONFIG="${TK_LIBDIR}/tkConfig.sh"
-MANN= gdtclft.n tcldot.n tkspline.n
+.if defined(WITH_TK)
+CPPFLAGS+= -I${TK_INCLUDEDIR}
+USE_TK_BUILD= 84
+CONFIGURE_ARGS+= --with-wish=${WISH}
+CONFIGURE_ENV+= TKCONFIG="${TK_LIBDIR}/tkConfig.sh"
+MANN+= tkspline.n
+PLIST_SUB+= WITH_TK=""
.else
-.if defined(WITH_TCL)
-USE_TCL_BUILD= 84
+PLIST_SUB+= WITH_TK="@comment "
+.endif
+.if defined(WITH_TCL) || defined(WITH_TK)
+CPPFLAGS+= -I${TCL_INCLUDEDIR}
+USE_TCL_BUILD= 84
.include "${PORTSDIR}/Mk/bsd.tcl.mk"
CONFIGURE_ARGS+= --with-tclsh=${TCLSH}
-CONFIGURE_ENV+= TCLCONFIG="${TCL_LIBDIR}/tclConfig.sh"
-.endif
+CONFIGURE_ENV+= TCLCONFIG="${TCL_LIBDIR}/tclConfig.sh"
+MANN+= gdtclft.n tcldot.n
.endif
.if defined(WITHOUT_ICONV)
@@ -333,7 +336,7 @@ pre-patch:
@${REINPLACE_CMD} -e "s|/usr/include/php|${LOCALBASE}/include/php|g" \
-e "s|-lruby|-lruby${RUBY_SUFFIX}|g" ${WRKSRC}/configure
-.if !defined(WITHOUT_TK)
+.if defined(WITH_TK)
post-install-script:
${INSTALL_MAN} \
${WRKSRC}/tclpkg/gdtclft/gdtclft.n \
diff --git a/graphics/graphviz/pkg-plist b/graphics/graphviz/pkg-plist
index 1ceccb7f3d89..0f88a6cddc7c 100644
--- a/graphics/graphviz/pkg-plist
+++ b/graphics/graphviz/pkg-plist
@@ -157,10 +157,10 @@ lib/graphviz/tcl/gv.so
%%WITH_TCL%%lib/graphviz/tcl/libtclplan.la
%%WITH_TCL%%lib/graphviz/tcl/libtclplan.so
%%WITH_TCL%%lib/graphviz/tcl/libtclplan.so.0
-%%WITH_TCL%%lib/graphviz/tcl/libtkspline.a
-%%WITH_TCL%%lib/graphviz/tcl/libtkspline.la
-%%WITH_TCL%%lib/graphviz/tcl/libtkspline.so
-%%WITH_TCL%%lib/graphviz/tcl/libtkspline.so.0
+%%WITH_TK%%lib/graphviz/tcl/libtkspline.a
+%%WITH_TK%%lib/graphviz/tcl/libtkspline.la
+%%WITH_TK%%lib/graphviz/tcl/libtkspline.so
+%%WITH_TK%%lib/graphviz/tcl/libtkspline.so.0
lib/graphviz/lua/gv.so
%%WITH_LUA%%lib/graphviz/lua/libgv_lua.a
%%WITH_LUA%%lib/graphviz/lua/libgv_lua.la