Fixup fromcvs/togit conversion
[pkgsrcv2.git] / graphics / inkscape / Makefile
1 # $NetBSD: Makefile,v 1.85 2013/03/31 08:13:29 obache Exp $
2
3 DISTNAME=       inkscape-0.48.4
4 PKGREVISION=    5
5 CATEGORIES=     graphics
6 MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE:=inkscape/}
7 EXTRACT_SUFX=   .tar.bz2
8
9 MAINTAINER=     reed@reedmedia.net
10 HOMEPAGE=       http://www.inkscape.org/
11 COMMENT=        Scalable Vector Graphics (SVG) editor
12 LICENSE=        gnu-gpl-v2
13
14 .if !exists (/usr/bin/iconv)
15 BUILD_DEPENDS+=         libiconv-[0-9]*:../../converters/libiconv
16 .endif
17
18 EXTRACT_USING=          bsdtar
19 GCC_REQD+=              3.0
20 USE_LANGUAGES=          c c++
21 USE_LIBTOOL=            yes
22 USE_PKGLOCALEDIR=       yes
23 USE_TOOLS+=             gmake intltool msgfmt perl:run pkg-config
24 GNU_CONFIGURE=          yes
25 CONFIGURE_ENV+=         MSGFMT=${TOOLS_DIR}/bin/msgfmt
26 CONFIGURE_ENV+=         GMSGFMT=${TOOLS_DIR}/bin/msgfmt
27 CONFIGURE_ARGS+=        --with-python
28
29 REPLACE_PERL+=          share/extensions/*.p[lm]
30 REPLACE_PERL+=          share/extensions/svg_dropshadow
31
32 BUILDLINK_API_DEPENDS.boehm-gc+=        boehm-gc>=6.4
33 BUILDLINK_API_DEPENDS.poppler+=         poppler>=0.5.9
34
35 UNLIMIT_RESOURCES=      datasize
36
37 LDFLAGS.DragonFly=      -lX11
38
39 SUBST_CLASSES+= pypath
40 SUBST_STAGE.pypath= pre-configure
41 SUBST_FILES.pypath= src/extension/implementation/script.cpp
42 SUBST_VARS.pypath= PYTHONBIN
43 CHECK_INTERPRETER_SKIP+= share/inkscape/extensions/*.py
44
45 # XXX I don't see where this is used
46 CHECK_INTERPRETER_SKIP+= share/inkscape/extensions/simplepath.rb
47
48 PKG_OPTIONS_VAR= PKG_OPTIONS.inkscape
49 PKG_SUPPORTED_OPTIONS= gnome
50 PKG_SUGGESTED_OPTIONS= gnome
51
52 .include "../../mk/bsd.options.mk"
53
54 # gnome-vfs support for the inkscape file open window.
55 .if !empty(PKG_OPTIONS:Mgnome)
56 CONFIGURE_ARGS+= --with-gnome-vfs
57 .include "../../sysutils/gnome-vfs/buildlink3.mk"
58 .endif
59
60 BUILDLINK_API_DEPENDS.poppler-includes+= poppler-includes>=0.12.2
61 .include "../../devel/boehm-gc/buildlink3.mk"
62 .include "../../devel/boost-headers/buildlink3.mk"
63 .include "../../devel/pango/buildlink3.mk"
64 .include "../../devel/popt/buildlink3.mk"
65 .include "../../graphics/hicolor-icon-theme/buildlink3.mk"
66 .include "../../graphics/lcms2/buildlink3.mk"
67 .include "../../graphics/libart/buildlink3.mk"
68 .include "../../graphics/png/buildlink3.mk"
69 .include "../../lang/python/application.mk"
70 .include "../../math/gsl/buildlink3.mk"
71 .include "../../print/poppler-glib/buildlink3.mk"
72 .include "../../print/poppler-includes/buildlink3.mk"
73 .include "../../sysutils/desktop-file-utils/desktopdb.mk"
74 .include "../../textproc/gtkspell/buildlink3.mk"
75 .include "../../textproc/libxml2/buildlink3.mk"
76 .include "../../textproc/libxslt/buildlink3.mk"
77 .include "../../x11/gtkmm/buildlink3.mk"
78 .include "../../mk/bsd.pkg.mk"