Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
75 lines (59 sloc) 2.1 KB
require 'formula'
class CairommQuartz < Formula
url 'http://cairographics.org/releases/cairomm-1.8.4.tar.gz'
homepage 'http://cairographics.org/cairomm/'
md5 '559afbc47484ba3fad265e38a3dafe90'
# patch for universal compilation from:
# http://trac.macports.org/browser/trunk/dports/graphics/cairomm/files/patch-quartz-lp64.diff
def patches
{ :p0 => DATA }
end
depends_on 'pkg-config' => :build
depends_on 'libsigc++'
depends_on 'Sharpie/cairo-quartz' => :alt
keg_only 'This formula builds CairoMM for use with Quartz instead of X11, which is experimental.'
def install
system './configure', "--prefix=#{prefix}",
'--disable-dependency-tracking'
system 'make install'
end
end
__END__
diff -urN cairomm/quartz_font.cc cairomm-1.8.2/cairomm/quartz_font.cc
--- cairomm/quartz_font.cc 2008-12-20 18:37:46.000000000 +0100
+++ cairomm/quartz_font.cc 2009-09-20 17:45:13.000000000 +0200
@@ -30,21 +30,23 @@
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> QuartzFontFace::create(CGFontRef font)
{
- check_object_status_and_throw_exception(*this);
+ return RefPtr<QuartzFontFace>(new QuartzFontFace(font));
}
-RefPtr<QuartzFontFace> QuartzFontFace::create(CGFontRef font)
+#if !__LP64__
+QuartzFontFace::QuartzFontFace(ATSUFontID font_id) :
+ FontFace(cairo_quartz_font_face_create_for_atsu_font_id(font_id), true)
{
- return RefPtr<QuartzFontFace>(new QuartzFontFace(font));
+ check_object_status_and_throw_exception(*this);
}
RefPtr<QuartzFontFace> QuartzFontFace::create(ATSUFontID font_id)
{
return RefPtr<QuartzFontFace>(new QuartzFontFace(font_id));
}
+#endif
}
diff cairomm/quartz_font.h cairomm-1.8.2/cairomm/quartz_font.h
--- cairomm/quartz_font.h 2008-12-20 18:37:46.000000000 +0100
+++ cairomm/quartz_font.h 2009-09-20 17:46:25.000000000 +0200
@@ -54,7 +54,9 @@
*
* @since 1.8
*/
+# if !__LP64__
static RefPtr<QuartzFontFace> create(ATSUFontID font_id);
+# endif
protected: