the Fink project is an effort to port
popular Unix programs to Mac OS X
Package: inkscape
Version: 0.48.3.1
Revision: 1
GCC: 4.0
Maintainer: Daniel Macks
Depends: <<
aspell-shlibs (>= 0.60.5-1002),
atk1-shlibs (>= 1.28.0-1),
cairo-shlibs (>= 1.8.8-3),
cairomm1-shlibs (>= 1.8.2-3),
default-icon-theme,
fontconfig2-shlibs (>= 2.8.0-4),
freetype219-shlibs (>= 2.3.12-1),
gc-shlibs (>= 6.4-1001),
gconf2-shlibs (>= 2.28.0-1),
glib2-shlibs (>= 2.22.0-1),
glibmm2.4-shlibs (>= 2.22.0-1),
gnome-vfs2-unified-shlibs (>= 1:2.24.0-1),
gsl-shlibs (>= 1.15-1),
gtk+2-shlibs (>= 2.18.0-1),
gtkmm2.4-shlibs (>= 2.18.0-1),
gtkspell2-shlibs (>= 2.0.14-1),
imagemagick2-shlibs,
lcms-shlibs (>= 1.13-1),
libgettext8-shlibs,
libiconv,
libpng14-shlibs,
libsigc++2-shlibs (>= 2.0.17-1001),
libwpd-0.9-shlibs,
libwpg-0.2-shlibs,
libxml2-shlibs (>= 2.7.8-1),
libxslt-shlibs (>= 1.1.22-1),
pango1-xft2-ft219 (>= 1.24.5-4),
pango1-xft2-ft219-shlibs (>= 1.24.5-4),
pangomm1.4.1-shlibs,
poppler4-shlibs,
poppler4-glib-shlibs,
popt-shlibs,
x11
<<
BuildDepends: <<
aspell-dev (>= 0.60.5-1002),
atk1 (>= 1.28.0-1),
boost1.46.1.cmake,
cairo (>= 1.8.8-3),
cairomm1 (>= 1.8.2-3),
fink-package-precedence,
fontconfig2-dev (>= 2.8.0-4),
freetype219 (>= 2.3.12-1),
gc (>= 6.4-1001),
gconf2-dev (>= 2.28.0-1),
gettext-bin,
gettext-tools,
glib2-dev (>= 2.22.0-1),
glibmm2.4-dev (>= 2.22.0-1),
glitz,
gnome-vfs2-unified-dev (>= 1:2.24.2-1),
gsl (>= 1.15-1),
gtk+2-dev (>= 2.18.0-1),
gtkmm2.4-gtk-dev (>= 2.18.0-1),
gtkspell2-dev (>= 2.0.14-1),
imagemagick2-dev,
intltool40,
lcms (>= 1.13-1),
libgettext8-dev,
libiconv-dev,
libpng14,
libsigc++2 (>= 2.0.17-1001),
libwpd-0.9-dev,
libwpg-0.2-dev,
libxml2 (>= 2.7.8-1),
libxslt (>= 1.1.22-1),
orbit2-dev (>= 2.14.16-1),
pango1-xft2-ft219-dev (>= 1.24.5-4),
pangomm1.4.1,
pixman (>= 0.16.0-1),
pkgconfig (>= 0.23),
poppler4,
poppler4-glib,
poppler4-xpdf,
popt,
x11-dev
<<
Suggests: default-icon-theme
Source: mirror:sourceforge:%n/%n-%v.tar.bz2
Source-MD5: f0fcc02088cc643634806064e7ab4ec3
ConfigureParams: --mandir=%p/share/man --with-xft --enable-dependency-tracking --with-gnome-vfs --enable-lcms PKG_CONFIG_PATH="%p/lib/fontconfig2/lib/pkgconfig:$PKG_CONFIG_PATH"
PatchFile: %n.patch
PatchFile-MD5: a48d5b2d9f21a8fe0d18c300614cc3e7
PatchScript: <<
%{default_script}
# configure.ac needs token to find version in 'gcc -v' output
# should rewrite as AC_TRY_RUN with .c comparison of macros:
# __GNUC__, __GNUC_MINOR__, __GNUC_PATCHLEVEL__
# perl -pi -e 's/gcc version/clang version/' configure
# fink doesn't have gtk >= 2.22 yet, make sure
# we get consistent build results when it does
perl -pi -e 's/(gtkmm-2.4 >=) 2\.22/${1} >= 99999.FORCE.NONDETECT/g' configure
perl -pi -e 's/(gtkmm-2.4 >=) 2\.24/${1} >= 99999.FORCE.NONDETECT/g' configure
perl -pi -e 's/(glibmm-2.4 >=) 2\.28/${1} >= 99999.FORCE.NONDETECT/g' configure
<<
CompileScript: <<
#!/bin/sh -ev
# Lots of the source isn't compatible with clang, so we drop
# back to legacy compiler if fink (or a new xcode suite from
# apple?) is mapping g++ -> clang++ (cannot simply do this
# everywhere, since may not have the legacy-name available if
# there's no newer one and/or may not have it wrapped for fink
# single-arch)
if g++ -v 2>&1 | grep -q clang; then
export CC=llvm-gcc-4.2
export CXX=llvm-g++-4.2
fi
./configure %c
make V=1
fink-package-precedence .
<<
InstallScript: make install DESTDIR=%d
DocFiles: AUTHORS COPYING* ChangeLog po/ChangeLog:ChangeLog.po NEWS README* TRANSLATORS
Description: SVG application
DescPort: <<
# Add explicit link to libX11. See:
# https://bugs.launchpad.net/inkscape/+bug/282338
-lX11 is there but need -L to find it (and may as well do -I
for symmetry).
Cherry-pick clang-support patches from upstream bzr repo:
bad type-conversion (registered-widget.h)
stray comma (desktop-widget.h)
<<
DescPackaging: <<
Formerly maintained by Michael Wybrow
then by Todai Fink Team
Needs the older xpdf interface to poppler. See:
https://bugs.launchpad.net/inkscape/+bug/903919
Could convert to use external potrace?
Could convert to use external croco?
See: https://bugs.launchpad.net/inkscape/+bug/648246
Could convert to use external libgdl?
See: https://bugs.launchpad.net/inkscape/+bug/792115
Giving up on clang because there is too much incompatible.
Would need some hacking to be buildable with libpng15
https://bugs.launchpad.net/inkscape/+bug/721029
(still not buildable as of 0.48.3)
Uptream claims lcms2 2.2 and 2.3 are buggy on OS X, so staying
with older lcms lib for now.
<<
Homepage: http://www.inkscape.org/
License: GPL
diff -Nurd -x'*~' inkscape-0.48.3.1.orig/configure inkscape-0.48.3.1/configure
--- inkscape-0.48.3.1.orig/configure 2012-02-18 20:43:51.000000000 -0500
+++ inkscape-0.48.3.1/configure 2012-02-21 21:44:53.000000000 -0500
@@ -10966,7 +10966,8 @@
# Add X11 library if needed
if test "x$gtk_backend_target" = "xx11"; then
- INKSCAPE_LIBS="$INKSCAPE_LIBS -lX11"
+ INKSCAPE_CFLAGS="$INKSCAPE_CFLAGS -I/usr/X11R6/include"
+ INKSCAPE_LIBS="$INKSCAPE_LIBS -L/usr/X11R6/lib -lX11"
fi
# Check for Apple Mac OS X Carbon framework
diff -Nurd -x'*~' inkscape-0.48.3.1.orig/src/Makefile.in inkscape-0.48.3.1/src/Makefile.in
--- inkscape-0.48.3.1.orig/src/Makefile.in 2012-02-18 20:43:50.000000000 -0500
+++ inkscape-0.48.3.1/src/Makefile.in 2012-02-21 21:44:53.000000000 -0500
@@ -2447,6 +2447,9 @@
# Add Inkview-only sources here.
inkview_SOURCES = inkview.cpp $(win32_sources)
INCLUDES = \
+ -I$(top_srcdir)/cxxtest \
+ -I$(srcdir)/bind/javainc \
+ -I$(srcdir)/bind/javainc/linux \
$(PERL_CFLAGS) $(PYTHON_CFLAGS) \
$(FREETYPE_CFLAGS) \
$(GNOME_PRINT_CFLAGS) \
@@ -2460,10 +2463,7 @@
$(POPPLER_GLIB_CFLAGS) \
-DPOTRACE=\"potrace\" \
$(INKSCAPE_CFLAGS) \
- -I$(top_srcdir)/cxxtest \
$(WIN32_CFLAGS) \
- -I$(srcdir)/bind/javainc \
- -I$(srcdir)/bind/javainc/linux \
$(AM_CPPFLAGS)
CXXTEST_TEMPLATE = $(srcdir)/cxxtest-template.tpl
diff -Nurd -x'*~' inkscape-0.48.3.1.orig/src/ui/widget/registered-widget.h inkscape-0.48.3.1/src/ui/widget/registered-widget.h
--- inkscape-0.48.3.1.orig/src/ui/widget/registered-widget.h 2011-07-08 14:25:09.000000000 -0400
+++ inkscape-0.48.3.1/src/ui/widget/registered-widget.h 2012-02-21 21:44:53.000000000 -0500
@@ -61,9 +61,6 @@
bool is_updating() {if (_wr) return _wr->isUpdating(); else return false;}
- // provide automatic 'upcast' for ease of use. (do it 'dynamic_cast' instead of 'static' because who knows what W is)
- operator const Gtk::Widget () { return dynamic_cast
-
protected:
RegisteredWidget() : W() { construct(); }
template< typename A >
diff -Nurd -x'*~' inkscape-0.48.3.1.orig/src/widgets/desktop-widget.h inkscape-0.48.3.1/src/widgets/desktop-widget.h
--- inkscape-0.48.3.1.orig/src/widgets/desktop-widget.h 2011-07-08 14:25:09.000000000 -0400
+++ inkscape-0.48.3.1/src/widgets/desktop-widget.h 2012-02-21 21:44:53.000000000 -0500
@@ -239,7 +239,7 @@
private:
GtkWidget *tool_toolbox;
GtkWidget *aux_toolbox;
- GtkWidget *commands_toolbox,;
+ GtkWidget *commands_toolbox;
GtkWidget *snap_toolbox;
static void init(SPDesktopWidget *widget);