source: trunk/dports/graphics/inkscape/Portfile @ 153987

Last change on this file since 153987 was 153987, checked in by devans@…, 4 years ago

dependents of poppler: increment revision to rebuild with libpoppler.64.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 4.6 KB
Line 
1# -*- 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
2# $Id: Portfile 153987 2016-10-17 16:08:29Z devans@macports.org $
3
4PortSystem          1.0
5
6name                inkscape
7conflicts           inkscape-devel
8version             0.91
9revision            18
10license             GPL-2 LGPL-2.1
11maintainers         devans
12categories          graphics gnome
13platforms           darwin
14homepage            http://www.inkscape.org/
15
16description         Inkscape is an multi-platform, Open-Source Vector Graphics Editor \
17                    that uses SVG as its native file format.
18
19long_description    ${description}
20
21master_sites        https://inkscape.global.ssl.fastly.net/media/resources/file/
22
23use_bzip2           yes
24
25checksums           rmd160  77421bcb96c6ad4fe17e775e86b77d576b90cf32 \
26                    sha256  4d901f8a9e1924404e797ad23b8b0c495a9d155448816d95a55974314e1f141b
27
28depends_build       port:pkgconfig \
29                    port:autoconf \
30                    port:automake \
31                    port:libtool \
32                    port:intltool \
33                    path:bin/perl:perl5
34
35depends_lib         port:desktop-file-utils \
36                    port:popt \
37                    path:lib/libgc.dylib:boehmgc \
38                    port:gsl \
39                    port:gtkmm \
40                    port:dbus-glib \
41                    port:lcms2 \
42                    port:poppler \
43                    port:boost \
44                    port:ImageMagick \
45                    port:libcdr-0.1 \
46                    port:libexif \
47                    port:libvisio-0.1 \
48                    port:libwpg-0.3 \
49                    port:aspell \
50                    port:gtkspell2 \
51                    port:py27-lxml \
52                    port:py27-numpy
53
54post-patch {
55    xinstall -m 755 ${filespath}/autogen.sh ${worksrcpath}
56    reinplace "s|\"python-interpreter\", \"python\"|\"python-interpreter\", \"python2.7\"|g" ${worksrcpath}/src/extension/implementation/script.cpp
57    reinplace "s|^#include \"Object.h\"|#include \"${prefix}/include/poppler/Object.h\"|" ${worksrcpath}/src/extension/internal/pdfinput/pdf-parser.h
58    reinplace "s|^#include \"Object.h\"|#include \"${prefix}/include/poppler/Object.h\"|" ${worksrcpath}/src/extension/internal/pdfinput/pdf-parser.cpp
59}
60
61# py27-numpy is currently not universal (#48263).
62
63universal_variant no
64
65variant gtk3 description {Enable experimental GTK+ 3 build} {
66    depends_lib-delete \
67                    port:gtkspell2 \
68                    port:gtk2 \
69                    port:gtkmm
70
71    depends_lib-append \
72                    port:gtkspell3 \
73                    port:gtk3 \
74                    port:gtkmm3 \
75                    port:gdl3
76
77    configure.args-append \
78                    --enable-gtk3-experimental
79}
80
81variant svg2 description {Enable experimental SVG level 2 proposed features} {
82    configure.cppflags-append \
83                    "-DWITH_MESH -DWITH_CSSBLEND -DWITH_CSSCOMPOSITE -DWITH_SVG2"
84}
85
86configure.cmd       ./autogen.sh && ./configure
87
88configure.python    ${prefix}/bin/python2.7
89
90configure.args      --without-gnome-vfs \
91                    --enable-lcms \
92                    --enable-poppler-cairo \
93                    --enable-dbusapi \
94                    --disable-silent-rules \
95                    --disable-strict-build
96
97configure.cppflags-append \
98                    -I${worksrcpath}/src/extension/script
99
100if {[string match "*clang*" ${configure.compiler}]} {
101    configure.cxxflags-append -std=c++11
102}
103
104variant strict description {Enable strict build} {
105    configure.args-replace  --disable-strict-build --enable-strict-build
106}
107
108# don't build strict by default after upgrade of glib2 to 2.48.2
109# https://trac.macports.org/ticket/52248
110# default_variants    +strict
111
112#
113# the following dummy variants are used
114# to identify this port's binary dependencies
115# based on which variant of gtkmm is used for the build
116#
117
118variant x11 conflicts quartz {}
119variant quartz conflicts x11 {}
120
121if {![variant_isset quartz]} {
122    default_variants +x11
123}
124
125if {[variant_isset gtk3]} {
126    post-activate {
127        system "${prefix}/bin/gtk-update-icon-cache-3.0 -f -t ${prefix}/share/icons/hicolor"
128        system "${prefix}/bin/update-desktop-database ${prefix}/share/applications"
129    }
130} else {
131    post-activate {
132        system "${prefix}/bin/gtk-update-icon-cache -f -t ${prefix}/share/icons/hicolor"
133        system "${prefix}/bin/update-desktop-database ${prefix}/share/applications"
134    }
135}
136
137livecheck.type      regex
138livecheck.url       https://inkscape.org/en/download/
139livecheck.regex     "Stable release \.*>(\\d+(?:\\.\\d+)*)<"
Note: See TracBrowser for help on using the repository browser.