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

Last change on this file since 57378 was 57378, checked in by ryandesign@…, 11 years ago

Change deprecated svn.tag to svn.revision
See http://lists.macosforge.org/pipermail/macports-dev/2009-August/009699.html

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.9 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 57378 2009-09-10 08:38:23Z ryandesign@macports.org $
3
4PortSystem 1.0
5
6name            inkscape-devel
7set svn_rev     22157
8version         0.46.${svn_rev}
9epoch           1
10maintainers     devans
11categories      graphics gnome
12platforms       darwin
13homepage        http://www.inkscape.org/
14
15description     Unstable development version of Inkscape from \
16                recent SVN leading up to release of version 0.47.
17
18long_description \
19                Inkscape is an open source SVG editor with \
20                capabilities similar to Illustrator, CorelDraw, \
21                Visio, etc. Supported SVG features include basic \
22                shapes, paths, text, alpha blending, transforms, \
23                gradients, node editing, svg-to-png export, \
24                grouping, and more.
25
26universal_variant no
27
28fetch.type      svn
29
30svn.url         http://inkscape.svn.sourceforge.net/svnroot/inkscape/inkscape/trunk ${worksrcdir}
31svn.revision    ${svn_rev}
32
33depends_build   port:pkgconfig \
34                port:subversion \
35                port:autoconf \
36                port:automake \
37                port:p5-xml-parser \
38                port:intltool
39
40depends_lib     port:boehmgc \
41                port:poppler \
42                port:lcms \
43                port:libwpg \
44                port:ImageMagick \
45                port:gtkmm \
46                port:aspell-dict-en \
47                port:gtkspell2 \
48                port:gsl \
49                port:boost
50
51depends_run     port:ghostscript
52
53patchfiles      patch-autogen.sh.diff \
54                patch-configure.ac.diff
55
56configure.cmd   {./autogen.sh && ./configure}
57
58configure.args  \
59        --mandir=${prefix}/share/man \
60        --with-xft \
61        --with-gnome-vfs \
62        --with-perl \
63        --with-python \
64        --enable-poppler-cairo \
65        --enable-lcms \
66        --enable-inkboard
67
68configure.cppflags-append \
69        -I${worksrcpath}/src/extension/script
70
71variant no_x11 {
72    configure.args-delete --with-xft
73    configure.args-append --without-xft
74}
75
76variant enable_debugging description {Enable debugging. Executables not stripped} {
77}
78
79if {![variant_isset enable_debugging]} {
80
81# if +enable_debugging is not set (default) strip the executables
82# this saves @200MB of disk space
83# at the cost of not being able to get meaningful debugging information
84# in the event of an application crash
85
86    post-destroot {
87        system "strip ${destroot}${prefix}/bin/inkscape"
88        system "strip ${destroot}${prefix}/bin/inkview"
89    }
90}
91
92post-patch {
93        reinplace "s|\"python-interpreter\", \"python\"|\"python-interpreter\", \"python2.5\"|g" ${worksrcpath}/src/extension/implementation/script.cpp
94        reinplace "s|^#include \"Object.h\"|#include \"${prefix}/include/poppler/Object.h\"|" ${worksrcpath}/src/extension/internal/pdfinput/pdf-parser.h
95}
96
97livecheck.type           none
Note: See TracBrowser for help on using the repository browser.