source: trunk/dports/graphics/inkscape-devel/Portfile @ 138498

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

binary dependents of libpoppler: increment revision to rebuild with libpoppler.53 after upgrade to poppler 0.34.0.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 4.1 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 138498 2015-07-10 05:18:32Z devans@macports.org $
3
4PortSystem          1.0
5
6name                inkscape-devel
7conflicts           inkscape
8set bzr_rev         14237
9version             0.91.99.${bzr_rev}
10revision            1
11epoch               1
12license             GPL-2 LGPL-2.1
13maintainers         devans
14categories          graphics gnome
15platforms           darwin
16homepage            http://www.inkscape.org/
17
18description         This is the ongoing unstable development version of Inkscape taken from \
19                    recent bzr trunk.
20
21long_description    Inkscape is an multi-platform, Open-Source Vector Graphics Editor \
22                    that uses SVG as its native file format. \
23                    ${description}
24
25fetch.type          bzr
26bzr.url             lp:inkscape
27bzr.revision        ${bzr_rev}
28
29depends_build       port:pkgconfig \
30                    port:autoconf \
31                    port:automake \
32                    port:libtool \
33                    port:intltool \
34                    path:bin/perl:perl5
35
36depends_lib         port:desktop-file-utils \
37                    port:popt \
38                    path:lib/libgc.dylib:boehmgc \
39                    port:gsl \
40                    port:gtkmm \
41                    port:dbus-glib \
42                    port:lcms2 \
43                    port:poppler \
44                    port:boost \
45                    port:ImageMagick \
46                    port:libcdr-0.1 \
47                    port:libexif \
48                    port:libvisio-0.1 \
49                    port:libwpg-0.3 \
50                    port:gtkspell2 \
51                    port:py27-lxml \
52                    port:py27-numpy
53
54pre-fetch {
55    ui_msg "--->  Fetching source from bzr repository: this may take a while"
56}
57
58post-patch {
59    reinplace "s|\"python-interpreter\", \"python\"|\"python-interpreter\", \"python2.7\"|g" ${worksrcpath}/src/extension/implementation/script.cpp
60    reinplace "s|^#include \"Object.h\"|#include \"${prefix}/include/poppler/Object.h\"|" ${worksrcpath}/src/extension/internal/pdfinput/pdf-parser.h
61    reinplace "s|^#include \"Object.h\"|#include \"${prefix}/include/poppler/Object.h\"|" ${worksrcpath}/src/extension/internal/pdfinput/pdf-parser.cpp
62}
63
64variant gtk3 description {Enable experimental GTK+ 3 build} {
65    depends_lib-delete \
66                    port:gtkspell2 \
67                    port:gtk2 \
68                    port:gtkmm
69
70    depends_lib-append \
71                    port:gnome-themes-standard \
72                    port:gtkspell3 \
73                    port:gtk3 \
74                    port:gtkmm3 \
75                    port:gdl3
76
77    configure.args-append \
78                    --enable-gtk3-experimental
79}
80
81configure.cmd       ./autogen.sh && ./configure
82
83configure.python    ${prefix}/bin/python2.7
84
85configure.args      --without-gnome-vfs \
86                    --enable-lcms \
87                    --enable-poppler-cairo \
88                    --enable-dbusapi \
89                    --disable-silent-rules \
90                    --disable-strict-build
91
92configure.cppflags-append \
93                    -I${worksrcpath}/src/extension/script
94
95if {[string match "*clang*" ${configure.compiler}]} {
96    configure.cxxflags-append -std=c++11
97}
98
99variant strict description {Enable strict build} {
100    configure.args-replace  --disable-strict-build --enable-strict-build
101}
102
103default_variants    +strict
104
105#
106# the following dummy variants are used
107# to identify this port's binary dependencies
108# based on which variant of gtkmm is used for the build
109#
110
111variant x11 conflicts quartz {}
112variant quartz conflicts x11 {}
113
114if {![variant_isset quartz]} {
115    default_variants +x11
116}
117
118if {[variant_isset gtk3]} {
119    post-activate {
120        system "${prefix}/bin/gtk-update-icon-cache-3.0 -f -t ${prefix}/share/icons/hicolor"
121        system "${prefix}/bin/update-desktop-database ${prefix}/share/applications"
122    }
123} else {
124    post-activate {
125        system "${prefix}/bin/gtk-update-icon-cache -f -t ${prefix}/share/icons/hicolor"
126        system "${prefix}/bin/update-desktop-database ${prefix}/share/applications"
127    }
128}
129
130livecheck.type      none
Note: See TracBrowser for help on using the repository browser.