# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 # $Id: Portfile 136406 2015-05-16 12:40:30Z devans@macports.org $ PortSystem 1.0 name inkscape conflicts inkscape-devel version 0.91 revision 3 license GPL-2 LGPL-2.1 maintainers devans categories graphics gnome platforms darwin homepage http://www.inkscape.org/ description Inkscape is an multi-platform, Open-Source Vector Graphics Editor \ that uses SVG as its native file format. long_description ${description} master_sites https://inkscape.global.ssl.fastly.net/media/resources/file/ use_bzip2 yes checksums rmd160 77421bcb96c6ad4fe17e775e86b77d576b90cf32 \ sha256 4d901f8a9e1924404e797ad23b8b0c495a9d155448816d95a55974314e1f141b depends_build port:pkgconfig \ port:autoconf \ port:automake \ port:libtool \ port:intltool \ path:bin/perl:perl5 depends_lib port:desktop-file-utils \ port:popt \ path:lib/libgc.dylib:boehmgc \ port:gsl \ port:gtkmm \ port:dbus-glib \ port:lcms2 \ port:poppler \ port:boost \ port:ImageMagick \ port:libcdr-0.1 \ port:libexif \ port:libvisio-0.1 \ port:libwpg-0.3 \ port:gtkspell2 \ port:py27-lxml \ port:py27-numpy post-patch { xinstall -m 755 ${filespath}/autogen.sh ${worksrcpath} reinplace "s|\"python-interpreter\", \"python\"|\"python-interpreter\", \"python2.7\"|g" ${worksrcpath}/src/extension/implementation/script.cpp reinplace "s|^#include \"Object.h\"|#include \"${prefix}/include/poppler/Object.h\"|" ${worksrcpath}/src/extension/internal/pdfinput/pdf-parser.h reinplace "s|^#include \"Object.h\"|#include \"${prefix}/include/poppler/Object.h\"|" ${worksrcpath}/src/extension/internal/pdfinput/pdf-parser.cpp } variant gtk3 description {Enable experimental GTK+ 3 build} { depends_lib-delete \ port:gtkspell2 \ port:gtk2 \ port:gtkmm depends_lib-append \ port:gnome-themes-standard \ port:gtkspell3 \ port:gtk3 \ port:gtkmm3 \ port:gdl3 configure.args-append \ --enable-gtk3-experimental } variant svg2 description {Enable experimental SVG level 2 proposed features} { configure.cppflags-append \ "-DWITH_MESH -DWITH_CSSBLEND -DWITH_CSSCOMPOSITE -DWITH_SVG2" } configure.cmd ./autogen.sh && ./configure configure.python ${prefix}/bin/python2.7 configure.args --without-gnome-vfs \ --enable-lcms \ --enable-poppler-cairo \ --enable-dbusapi \ --disable-silent-rules \ --disable-strict-build configure.cppflags-append \ -I${worksrcpath}/src/extension/script if {[string match "*clang*" ${configure.compiler}]} { configure.cxxflags-append -std=c++11 } variant strict description {Enable strict build} { configure.args-replace --disable-strict-build --enable-strict-build } default_variants +strict # # the following dummy variants are used # to identify this port's binary dependencies # based on which variant of gtkmm is used for the build # variant x11 conflicts quartz {} variant quartz conflicts x11 {} if {![variant_isset quartz]} { default_variants +x11 } if {[variant_isset gtk3]} { post-activate { system "${prefix}/bin/gtk-update-icon-cache-3.0 -f -t ${prefix}/share/icons/hicolor" system "${prefix}/bin/update-desktop-database ${prefix}/share/applications" } } else { post-activate { system "${prefix}/bin/gtk-update-icon-cache -f -t ${prefix}/share/icons/hicolor" system "${prefix}/bin/update-desktop-database ${prefix}/share/applications" } } livecheck.type regex livecheck.url https://inkscape.org/en/download/ livecheck.regex "Stable release \.*>(\\d+(?:\\.\\d+)*)<"