# -*- 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 PortSystem 1.0 PortGroup compiler_blacklist_versions 1.0 PortGroup cmake 1.1 PortGroup boost 1.0 name inkscape conflicts inkscape-devel set my_name inkscape set ver_num 1.2.2 set ver_date 2022-12-01 set ver_hash b0a8486541 set ver_gal_item 37360 version ${ver_num} revision 3 epoch 0 categories graphics gnome license GPL-3+ maintainers {mascguy @mascguy} openmaintainer 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} homepage https://inkscape.org/ master_sites https://inkscape.org/gallery/item/${ver_gal_item} worksrcdir ${my_name}-${ver_num}_${ver_date}_${ver_hash} dist_subdir ${my_name} use_xz yes checksums rmd160 365be25c08b16fdffe103fc18301f5eca5e9981b \ sha256 a0c7fd0d03c0a21535e648ef301dcf80dd7cfc1f3545e51065fbf1ba3ee8a5c4 \ size 39392040 cmake.generator Ninja set python_major 3 set python_minor 10 set python_version ${python_major}${python_minor} # Blacklist older Clang versions, for compilation errors: # src/display/cairo-utils.cpp: # No matching function for call to 'isnan' # src/ui/dialog/objects.cpp: # No member named 'extract' # See: https://trac.macports.org/ticket/65002 compiler.blacklist-append \ {clang < 1001} # Blacklist macports-clang-15+ to prevent # error: no template named 'unary_function' in namespace 'std' compiler.blacklist-append \ {macports-clang-1[5-9]} # this port only uses boost headers during build # and does not link with any boost libraries # no need to rebuild due to boost library ABI changes boost.depends_type build depends_build-append \ port:pkgconfig \ port:gettext \ port:gtest depends_lib-append port:desktop-file-utils \ port:libxslt \ port:libsigcxx2 \ port:double-conversion \ port:lib2geom \ port:gdl3 \ path:lib/pkgconfig/libsoup-2.4.pc:libsoup \ path:lib/pkgconfig/cairo.pc:cairo \ path:include/turbojpeg.h:libjpeg-turbo \ port:boehmgc \ port:gettext-runtime \ port:gsl \ port:glibmm \ port:gtkmm3 \ port:gspell \ port:lcms2 \ path:lib/pkgconfig/poppler.pc:poppler \ port:ImageMagick \ port:libcdr-0.1 \ port:libvisio-0.1 \ port:libwpg-0.3 \ port:potrace \ port:python${python_version} depends_run-append port:py${python_version}-cssselect \ port:py${python_version}-lxml \ port:py${python_version}-numpy \ port:adwaita-icon-theme post-patch { reinplace "s|\"python-interpreter\", *\{\"python3\"|\"python-interpreter\", \{\"python${python_major}.${python_minor}\"|g" \ ${worksrcpath}/src/extension/implementation/script.cpp reinplace "s|COMMAND python3 |COMMAND ${prefix}/bin/python${python_major}.${python_minor} |g" \ ${worksrcpath}/share/filters/CMakeLists.txt \ ${worksrcpath}/share/paint/CMakeLists.txt \ ${worksrcpath}/share/palettes/CMakeLists.txt \ ${worksrcpath}/share/symbols/CMakeLists.txt \ ${worksrcpath}/share/templates/CMakeLists.txt reinplace "s|^#include \"Object.h\"|#include |" \ ${worksrcpath}/src/extension/internal/pdfinput/pdf-parser.cpp \ ${worksrcpath}/src/extension/internal/pdfinput/pdf-parser.h reinplace "s|\"\$\{CMAKE_INSTALL_LIBDIR\}/inkscape\"|\$\{CMAKE_INSTALL_LIBDIR\}|" \ ${worksrcpath}/src/CMakeLists.txt } compiler.cxx_standard \ 2017 configure.args-append \ -DWITH_OPENMP=OFF \ -DWITH_MANPAGE_COMPRESSION=OFF # 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 } 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" } notes { Install port 'inkscape-app', to create a macOS app launcher. } livecheck.type regex livecheck.url https://inkscape.org/release/ livecheck.regex ">Inkscape (\\d+(?:\\.\\d+)*)<"