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

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

binary dependents of libpoppler: increment revision to rebuild with libpoppler.52.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 4.4 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 136406 2015-05-16 12:40:30Z devans@macports.org $
3
4PortSystem          1.0
5
6name                inkscape
7conflicts           inkscape-devel
8version             0.91
9revision            3
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:gtkspell2 \
50                    port:py27-lxml \
51                    port:py27-numpy
52
53post-patch {
54    xinstall -m 755 ${filespath}/autogen.sh ${worksrcpath}
55    reinplace "s|\"python-interpreter\", \"python\"|\"python-interpreter\", \"python2.7\"|g" ${worksrcpath}/src/extension/implementation/script.cpp
56    reinplace "s|^#include \"Object.h\"|#include \"${prefix}/include/poppler/Object.h\"|" ${worksrcpath}/src/extension/internal/pdfinput/pdf-parser.h
57    reinplace "s|^#include \"Object.h\"|#include \"${prefix}/include/poppler/Object.h\"|" ${worksrcpath}/src/extension/internal/pdfinput/pdf-parser.cpp
58}
59
60variant gtk3 description {Enable experimental GTK+ 3 build} {
61    depends_lib-delete \
62                    port:gtkspell2 \
63                    port:gtk2 \
64                    port:gtkmm
65
66    depends_lib-append \
67                    port:gnome-themes-standard \
68                    port:gtkspell3 \
69                    port:gtk3 \
70                    port:gtkmm3 \
71                    port:gdl3
72
73    configure.args-append \
74                    --enable-gtk3-experimental
75}
76
77variant svg2 description {Enable experimental SVG level 2 proposed features} {
78    configure.cppflags-append \
79                    "-DWITH_MESH -DWITH_CSSBLEND -DWITH_CSSCOMPOSITE -DWITH_SVG2"
80}
81
82configure.cmd       ./autogen.sh && ./configure
83
84configure.python    ${prefix}/bin/python2.7
85
86configure.args      --without-gnome-vfs \
87                    --enable-lcms \
88                    --enable-poppler-cairo \
89                    --enable-dbusapi \
90                    --disable-silent-rules \
91                    --disable-strict-build
92
93configure.cppflags-append \
94                    -I${worksrcpath}/src/extension/script
95
96if {[string match "*clang*" ${configure.compiler}]} {
97    configure.cxxflags-append -std=c++11
98}
99
100variant strict description {Enable strict build} {
101    configure.args-replace  --disable-strict-build --enable-strict-build
102}
103
104default_variants    +strict
105
106#
107# the following dummy variants are used
108# to identify this port's binary dependencies
109# based on which variant of gtkmm is used for the build
110#
111
112variant x11 conflicts quartz {}
113variant quartz conflicts x11 {}
114
115if {![variant_isset quartz]} {
116    default_variants +x11
117}
118
119if {[variant_isset gtk3]} {
120    post-activate {
121        system "${prefix}/bin/gtk-update-icon-cache-3.0 -f -t ${prefix}/share/icons/hicolor"
122        system "${prefix}/bin/update-desktop-database ${prefix}/share/applications"
123    }
124} else {
125    post-activate {
126        system "${prefix}/bin/gtk-update-icon-cache -f -t ${prefix}/share/icons/hicolor"
127        system "${prefix}/bin/update-desktop-database ${prefix}/share/applications"
128    }
129}
130
131livecheck.type      regex
132livecheck.url       https://inkscape.org/en/download/
133livecheck.regex     "Stable release \.*>(\\d+(?:\\.\\d+)*)<"
Note: See TracBrowser for help on using the repository browser.