# -*- 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 154342 2016-10-28 09:37:00Z devans@macports.org $ PortSystem 1.0 name inkscape conflicts inkscape-devel version 0.91 revision 18 license GPL-2 LGPL-2.1 maintainers devans categories graphics gnome platforms darwin homepage http://www.inkscape.org/ description This is the current stable release version of Inkscape. long_description Inkscape is an multi-platform, Open-Source Vector Graphics Editor \ that uses SVG as its native file format. \ ${description} master_sites https://inkscape.org/en/gallery/item/3860/ use_bzip2 yes checksums rmd160 77421bcb96c6ad4fe17e775e86b77d576b90cf32 \ sha256 4d901f8a9e1924404e797ad23b8b0c495a9d155448816d95a55974314e1f141b set perl_version 5.24 depends_build port:pkgconfig \ port:autoconf \ port:automake \ port:libtool \ port:intltool \ port:perl${perl_version} 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:aspell \ port:gtkspell2 \ port:py27-lxml \ port:py27-numpy patchfiles patch-use-configured-perl.diff post-patch { xinstall -m 755 ${filespath}/autogen.sh ${worksrcpath} reinplace "s|@@MP_PERL@@|${prefix}/bin/perl${perl_version}|" ${worksrcpath}/Makefile.am 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 } # py27-numpy is currently not universal (#48263). universal_variant no variant gtk3 description {Enable experimental GTK+ 3 build} { depends_lib-delete \ port:gtkspell2 \ port:gtk2 \ port:gtkmm depends_lib-append \ 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 platform darwin { if {[string match "*clang*" ${configure.compiler}]} { if {${configure.cxx_stdlib} eq "libstdc++"} { configure.cxxflags-append -std=c++98 } else { configure.cxxflags-append -std=c++11 } } } variant strict description {Enable strict build} { configure.args-replace --disable-strict-build --enable-strict-build } # don't build strict by default after upgrade of glib2 to 2.48.2 # https://trac.macports.org/ticket/52248 # 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/source/ livecheck.regex "stable version\.* (\\d+(?:\\.\\d+)*)<"