# -*- 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$ PortSystem 1.0 name inkscape-devel conflicts inkscape set bzr_rev 15137 epoch 1 version 0.92pre2-${bzr_rev} license GPL-2 LGPL-2.1 maintainers devans categories graphics gnome platforms darwin homepage http://www.inkscape.org/ description This is the current pre-release development version of Inkscape taken from \ the upstream bzr release branch. long_description Inkscape is an multi-platform, Open-Source Vector Graphics Editor \ that uses SVG as its native file format. \ ${description} fetch.type bzr bzr.url lp:~inkscape.dev/inkscape/0.92.x bzr.revision ${bzr_rev} 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:potrace \ port:py27-lxml \ port:py27-numpy pre-fetch { ui_msg "---> Fetching source from bzr repository: this may take a while" } patchfiles patch-use-configured-perl.diff post-patch { 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 } 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 none