aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorahze <ahze@FreeBSD.org>2005-02-16 13:52:43 +0800
committerahze <ahze@FreeBSD.org>2005-02-16 13:52:43 +0800
commit81e0a7c9436e6c807300f75ba502b32efff9f46b (patch)
tree6a20a65b0a1e7d39b2ea11af89600790715386a6
parentc9ce1c408977414407c74febfd420c0e337155bd (diff)
downloadfreebsd-ports-gnome-81e0a7c9436e6c807300f75ba502b32efff9f46b.tar.gz
freebsd-ports-gnome-81e0a7c9436e6c807300f75ba502b32efff9f46b.tar.zst
freebsd-ports-gnome-81e0a7c9436e6c807300f75ba502b32efff9f46b.zip
- Update to 0.3.0
- Add WITHOUT_GLITZ OPTION [1] - Add WITHOUT_X11 knob Requested by: debugger via irc [1]
-rw-r--r--graphics/cairo/Makefile21
-rw-r--r--graphics/cairo/distinfo4
-rw-r--r--graphics/cairo/files/patch-src_cairo_font.c26
-rw-r--r--graphics/cairo/files/patch-src_cairo_ft_font.c23
-rw-r--r--graphics/cairo/pkg-plist16
5 files changed, 36 insertions, 54 deletions
diff --git a/graphics/cairo/Makefile b/graphics/cairo/Makefile
index 4182b3ef20ba..ccf8d4995d9b 100644
--- a/graphics/cairo/Makefile
+++ b/graphics/cairo/Makefile
@@ -6,16 +6,14 @@
#
PORTNAME= cairo
-PORTVERSION= 0.2.0
+PORTVERSION= 0.3.0
CATEGORIES= graphics
-MASTER_SITES= ${MASTER_SITE_LOCAL}
-MASTER_SITE_SUBDIR= ahze
+MASTER_SITES= http://cairographics.org/snapshots/
MAINTAINER= ahze@FreeBSD.org
COMMENT= Cairo is a vector graphics library with cross-device output support
LIB_DEPENDS= pixman.1:${PORTSDIR}/graphics/libpixman \
- glitz-glx.1:${PORTSDIR}/graphics/glitz \
freetype.9:${PORTSDIR}/print/freetype2 \
png.5:${PORTSDIR}/graphics/png
@@ -26,12 +24,15 @@ INSTALLS_SHLIB= yes
CONFIGURE_ENV= CPPFLAGS="${PTHREAD_CLFAGS}" \
LDFLAGS="${PTHREAD_LDFLAGS}"
-PLIST_FILES= include/cairo-features.h \
- include/cairo.h \
- lib/libcairo.a \
- lib/libcairo.so \
- lib/libcairo.so.1 \
- libdata/pkgconfig/cairo.pc
+OPTIONS+= GLITZ "Enable Glitz OpenGL Support" Off
+
+.if defined(WITH_GLITZ)
+LIB_DEPENDS+= glitz-glx.1:${PORTSDIR}/graphics/glitz
+.endif
+
+.if !defined(WITHOUT_X11)
+USE_XLIB= yes
+.endif
.include <bsd.port.pre.mk>
diff --git a/graphics/cairo/distinfo b/graphics/cairo/distinfo
index 19b5cd3e39e3..e15917bb5766 100644
--- a/graphics/cairo/distinfo
+++ b/graphics/cairo/distinfo
@@ -1,2 +1,2 @@
-MD5 (cairo-0.2.0.tar.gz) = 2ff2b3b52b862971d2baa3fede3a3d6e
-SIZE (cairo-0.2.0.tar.gz) = 462216
+MD5 (cairo-0.3.0.tar.gz) = 78c1a536d3a45bdc06a8335d33e63d8f
+SIZE (cairo-0.3.0.tar.gz) = 514446
diff --git a/graphics/cairo/files/patch-src_cairo_font.c b/graphics/cairo/files/patch-src_cairo_font.c
index 34a0c8ad778c..f99cecac1687 100644
--- a/graphics/cairo/files/patch-src_cairo_font.c
+++ b/graphics/cairo/files/patch-src_cairo_font.c
@@ -1,27 +1,15 @@
---- src/cairo_font.c.orig Tue Nov 9 21:51:24 2004
-+++ src/cairo_font.c Tue Nov 9 21:53:06 2004
-@@ -54,9 +54,9 @@
- static unsigned long
- _font_cache_hash (void *cache, void *key)
- {
-+ unsigned long hash;
- cairo_font_cache_key_t *in;
- in = (cairo_font_cache_key_t *) key;
-- unsigned long hash;
-
- /* 1607 and 1451 are just a couple random primes. */
- hash = _cairo_hash_string (in->family);
-@@ -86,11 +86,12 @@
+--- src/cairo_font.c.orig Thu Jan 13 09:37:40 2005
++++ src/cairo_font.c Wed Feb 16 00:50:47 2005
+@@ -85,9 +85,11 @@
void *key,
void **return_value)
{
-+ const struct cairo_font_backend *backend;
+- const cairo_font_backend_t *backend = CAIRO_FONT_BACKEND_DEFAULT;
++ const cairo_font_backend_t *backend;
cairo_font_cache_key_t *k;
cairo_font_cache_entry_t *entry;
- k = (cairo_font_cache_key_t *) key;
-
-- const struct cairo_font_backend *backend = CAIRO_FONT_BACKEND_DEFAULT;
++
+ backend = CAIRO_FONT_BACKEND_DEFAULT;
+ k = (cairo_font_cache_key_t *) key;
/* XXX: The current freetype backend may return NULL, (for example
- * if no fonts are installed), but I would like to guarantee that
diff --git a/graphics/cairo/files/patch-src_cairo_ft_font.c b/graphics/cairo/files/patch-src_cairo_ft_font.c
deleted file mode 100644
index 426494b47f9e..000000000000
--- a/graphics/cairo/files/patch-src_cairo_ft_font.c
+++ /dev/null
@@ -1,23 +0,0 @@
---- src/cairo_ft_font.c.orig Tue Nov 9 21:53:24 2004
-+++ src/cairo_ft_font.c Tue Nov 9 21:58:25 2004
-@@ -481,6 +481,9 @@
- cairo_glyph_t **glyphs,
- int *nglyphs)
- {
-+ double x, y;
-+ FT_ULong *ucs4 = NULL;
-+ size_t i;
- cairo_ft_font_t *font = abstract_font;
- FT_Face face = font->val->face;
- cairo_glyph_cache_key_t key;
-@@ -490,9 +493,7 @@
- key.unscaled = &font->base;
- key.scale = *sc;
-
-- double x = 0., y = 0.;
-- size_t i;
-- FT_ULong *ucs4 = NULL;
-+ x = 0., y = 0.;
-
- _utf8_to_ucs4 (utf8, &ucs4, nglyphs);
-
diff --git a/graphics/cairo/pkg-plist b/graphics/cairo/pkg-plist
new file mode 100644
index 000000000000..150fc87c7eff
--- /dev/null
+++ b/graphics/cairo/pkg-plist
@@ -0,0 +1,16 @@
+include/cairo/cairo-atsui.h
+include/cairo/cairo-features.h
+include/cairo/cairo-ft.h
+include/cairo/cairo-glitz.h
+include/cairo/cairo-pdf.h
+include/cairo/cairo-png.h
+include/cairo/cairo-ps.h
+include/cairo/cairo-quartz.h
+include/cairo/cairo-xcb.h
+include/cairo/cairo-xlib.h
+include/cairo/cairo.h
+lib/libcairo.a
+lib/libcairo.so
+lib/libcairo.so.1
+libdata/pkgconfig/cairo.pc
+@dirrm include/cairo