cairomm1 stable port information

Package: cairomm1
Version: 1.8.4
Revision: 1
Description: C++ interface for the cairo library
License: LGPL
Maintainer: Benjamin Reed

Depends: %N-shlibs (= %v-%r)
BuildDepends: <<
cairo (>= 1.8.10-1),
doxygen,
expat1,
fink (>= 0.29.7-1),
fink-package-precedence,
fontconfig2-dev (>= 2.8.0-4),
freetype219 (>= 2.3.12-1),
glitz (>= 0.5.6-1),
libsigc++2,
pixman (>= 0.16.0-1),
pkgconfig (>= 0.23-1),
x11-dev
<<
BuildDependsOnly: true
GCC: 4.0

Source: http://cairographics.org/releases/cairomm-%v.tar.gz
Source-MD5: 559afbc47484ba3fad265e38a3dafe90
PatchScript: <<
%{default_script}
<<
PatchFile: %n.patch
PatchFile-MD5: e055c751895d45a8e3e151364b46c1fa

SetCFLAGS: -Os
SetCPPFLAGS: -I%p/lib/fontconfig2/include -DENABLE_GCC_VISIBILITY=1
SetLDFLAGS: -L%p/lib/fontconfig2/lib
NoSetCFLAGS: true
ConfigureParams: --mandir=%p/share/man --enable-dependency-tracking PKG_CONFIG_PATH="%p/lib/fontconfig2/lib/pkgconfig:$PKG_CONFIG_PATH" --disable-static
CompileScript: <<
./configure %c
make
fink-package-precedence --prohibit-bdep %n .
<<

InstallScript: <<
#!/bin/sh -ev

make -j1 install DESTDIR="%d"
install -d -m 755 %i/share/doc/%N
mv examples %i/share/doc/%N/
<<
DocFiles: AUTHORS COPYING ChangeLog INSTALL MAINTAINERS NEWS README
SplitOff: <<
Package: %N-shlibs
Depends: <<
cairo-shlibs (>= 1.8.10-1),
fontconfig2-shlibs (>= 2.8.0-4),
freetype219-shlibs (>= 2.3.12-1),
libsigc++2-shlibs
<<
DocFiles: COPYING
Files: lib/lib*.*.*.dylib
Shlibs: %p/lib/libcairomm-1.0.1.dylib 6.0.0 %n (>= 1.8.2-1)
<<

Homepage: http://cairographics.org/
DescPort: <<
Don't call cairo func that is disabled on 64bit platform. See:
https://bugs.freedesktop.org/show_bug.cgi?id=23733
https://bugs.freedesktop.org/show_bug.cgi?id=15702
<<

cairomm1 stable port .patch

diff -Nurd cairomm-1.8.2.ori/cairomm/quartz_font.cc cairomm-1.8.2/cairomm/quartz_font.cc
--- cairomm-1.8.2.ori/cairomm/quartz_font.cc 2008-12-20 15:37:46.000000000 -0200
+++ cairomm-1.8.2/cairomm/quartz_font.cc 2009-09-05 14:47:35.000000000 -0300
@@ -30,21 +30,24 @@
check_object_status_and_throw_exception(*this);
}

-QuartzFontFace::QuartzFontFace(ATSUFontID font_id) :
- FontFace(cairo_quartz_font_face_create_for_atsu_font_id(font_id), true)
+RefPtr QuartzFontFace::create(CGFontRef font)
{
- check_object_status_and_throw_exception(*this);
+ return RefPtr(new QuartzFontFace(font));
}

-RefPtr QuartzFontFace::create(CGFontRef font)
+
+#ifndef __LP64__
+QuartzFontFace::QuartzFontFace(ATSUFontID font_id) :
+ FontFace(cairo_quartz_font_face_create_for_atsu_font_id(font_id), true)
{
- return RefPtr(new QuartzFontFace(font));
+ check_object_status_and_throw_exception(*this);
}

RefPtr QuartzFontFace::create(ATSUFontID font_id)
{
return RefPtr(new QuartzFontFace(font_id));
}
+#endif

}

diff -Nurd cairomm-1.8.2.ori/cairomm/quartz_font.h cairomm-1.8.2/cairomm/quartz_font.h
--- cairomm-1.8.2.ori/cairomm/quartz_font.h 2008-12-20 15:37:46.000000000 -0200
+++ cairomm-1.8.2/cairomm/quartz_font.h 2009-09-05 14:53:00.000000000 -0300
@@ -46,6 +46,7 @@
*/
static RefPtr create(CGFontRef font);

+#ifndef __LP64__
/** Creates a new font for the Quartz font backend based on an ATSUFontID.
* This font can then be used with Context::set_font_face() or
* ScaledFont::create().
@@ -55,11 +56,14 @@
* @since 1.8
*/
static RefPtr create(ATSUFontID font_id);
+#endif


protected:
QuartzFontFace(CGFontRef font);
+#ifndef __LP64__
QuartzFontFace(ATSUFontID font_id);
+#endif
};

}

cairomm1 _unstable_ port .patch