summaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authorahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059>2006-04-30 11:25:23 +0800
committerahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059>2006-04-30 11:25:23 +0800
commitc842c7124fcd6840b1083225e4a2924033f58afb (patch)
treedc98589a26e4f0c75c8e1bcec5486c80243f24a3 /graphics
parent2c04e2178d3ccce17af9d227a165f4025e1baf27 (diff)
downloadmarcuscom-ports-c842c7124fcd6840b1083225e4a2924033f58afb.tar
marcuscom-ports-c842c7124fcd6840b1083225e4a2924033f58afb.tar.gz
marcuscom-ports-c842c7124fcd6840b1083225e4a2924033f58afb.tar.bz2
marcuscom-ports-c842c7124fcd6840b1083225e4a2924033f58afb.tar.lz
marcuscom-ports-c842c7124fcd6840b1083225e4a2924033f58afb.tar.xz
marcuscom-ports-c842c7124fcd6840b1083225e4a2924033f58afb.tar.zst
marcuscom-ports-c842c7124fcd6840b1083225e4a2924033f58afb.zip
- Move cairo, glitz, gtk-engines2 out of ports-experimental
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@6156 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'graphics')
-rw-r--r--graphics/cairo/Makefile61
-rw-r--r--graphics/cairo/distinfo3
-rw-r--r--graphics/cairo/files/patch-src_cairo-ft-font.c28
-rw-r--r--graphics/cairo/files/patch-src_cairo-xlib-surface.c11
-rw-r--r--graphics/cairo/pkg-descr13
-rw-r--r--graphics/cairo/pkg-plist66
-rw-r--r--graphics/glitz/Makefile33
-rw-r--r--graphics/glitz/distinfo3
-rw-r--r--graphics/glitz/pkg-descr5
-rw-r--r--graphics/glitz/pkg-plist12
10 files changed, 235 insertions, 0 deletions
diff --git a/graphics/cairo/Makefile b/graphics/cairo/Makefile
new file mode 100644
index 000000000..ab64a8a0f
--- /dev/null
+++ b/graphics/cairo/Makefile
@@ -0,0 +1,61 @@
+# New ports collection makefile for: cairo
+# Date created: 2004-10-06
+# Whom: Michael Johnson <ahze@FreeBSD.org>
+#
+# $FreeBSD$
+# $MCom: ports-experimental/graphics/cairo/Makefile,v 1.1 2006/04/26 15:21:28 ahze Exp $
+#
+
+PORTNAME= cairo
+PORTVERSION= 1.1.2
+CATEGORIES= graphics
+MASTER_SITES= http://cairographics.org/snapshots/
+
+MAINTAINER= gnome@FreeBSD.org
+COMMENT= Vector graphics library with cross-device output support
+
+LIB_DEPENDS= freetype.9:${PORTSDIR}/print/freetype2 \
+ png.5:${PORTSDIR}/graphics/png \
+ fontconfig.1:${PORTSDIR}/x11-fonts/fontconfig
+
+CONFIGURE_ARGS= --with-html-dir=${DOCSDIR} \
+ --enable-pdf \
+ --enable-ps
+USE_GNOME= gnometarget gnomehack ltverhack
+USE_AUTOTOOLS= libtool:15
+INSTALLS_SHLIB= yes
+
+CONFIGURE_ENV= CPPFLAGS="${PTHREAD_CFLAGS} -I${X11BASE}/include" \
+ LDFLAGS="${PTHREAD_LIBS}"
+
+OPTIONS+= GLITZ "Enable Glitz OpenGL Support" Off
+
+.include <bsd.port.pre.mk>
+
+.if defined(WITH_GLITZ)
+LIB_DEPENDS+= glitz-glx.1:${PORTSDIR}/graphics/glitz
+CONFIGURE_ARGS+= --enable-glitz
+PLIST_SUB+= GLITZ=""
+.else
+CONFIGURE_ARGS+= --disable-glitz
+PLIST_SUB+= GLITZ="@comment "
+.endif
+
+.if defined(WITHOUT_X11)
+CONFIGURE_ARGS+=--disable-xlib
+PLIST_SUB+= X11="@comment "
+.else
+USE_XLIB= yes
+PLIST_SUB+= X11=""
+.endif
+
+post-patch:
+.if ${OSVERSION} < 500000
+ @${REINPLACE_CMD} -e 's|stdint.h|inttypes.h|' \
+ ${WRKSRC}/src/*.* \
+ ${WRKSRC}/pixman/src/*.*
+.endif
+ @${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|' \
+ ${WRKSRC}/test/Makefile.in
+
+.include <bsd.port.post.mk>
diff --git a/graphics/cairo/distinfo b/graphics/cairo/distinfo
new file mode 100644
index 000000000..2d0fff4f6
--- /dev/null
+++ b/graphics/cairo/distinfo
@@ -0,0 +1,3 @@
+MD5 (cairo-1.1.2.tar.gz) = fa311ae12985a3ee75565cb002733022
+SHA256 (cairo-1.1.2.tar.gz) = 1c7085ceed8c257e91376591e9d4641e099e6b240c60fe77acb70a309604a75f
+SIZE (cairo-1.1.2.tar.gz) = 1783307
diff --git a/graphics/cairo/files/patch-src_cairo-ft-font.c b/graphics/cairo/files/patch-src_cairo-ft-font.c
new file mode 100644
index 000000000..8cd60665f
--- /dev/null
+++ b/graphics/cairo/files/patch-src_cairo-ft-font.c
@@ -0,0 +1,28 @@
+--- src/cairo-ft-font.c.orig Tue Aug 16 14:46:46 2005
++++ src/cairo-ft-font.c Tue Aug 16 14:46:59 2005
+@@ -44,6 +44,11 @@
+ #include <fontconfig/fontconfig.h>
+ #include <fontconfig/fcfreetype.h>
+
++#include <sys/types.h>
++#include <stdlib.h>
++#include <time.h>
++#include <unistd.h>
++
+ #include <ft2build.h>
+ #include FT_FREETYPE_H
+ #include FT_OUTLINE_H
+@@ -257,7 +262,12 @@ _cairo_ft_unscaled_font_init_key (cairo_
+ key->id = id;
+
+ /* 1607 is just an arbitrary prime. */
+- hash = _cairo_hash_string (filename);
++ if (filename != NULL) {
++ hash = _cairo_hash_string (filename);
++ } else {
++ srandom(time(NULL) * getpid());
++ hash = random();
++ }
+ hash += ((unsigned long) id) * 1607;
+
+ key->base.hash_entry.hash = hash;
diff --git a/graphics/cairo/files/patch-src_cairo-xlib-surface.c b/graphics/cairo/files/patch-src_cairo-xlib-surface.c
new file mode 100644
index 000000000..396ac3e29
--- /dev/null
+++ b/graphics/cairo/files/patch-src_cairo-xlib-surface.c
@@ -0,0 +1,11 @@
+--- src/cairo-xlib-surface.c.orig Mon Oct 3 22:44:43 2005
++++ src/cairo-xlib-surface.c Wed Nov 16 18:59:40 2005
+@@ -1758,7 +1758,7 @@
+
+ surface->buggy_repeat = FALSE;
+ if (strstr (ServerVendor (dpy), "X.Org") != NULL) {
+- if (VendorRelease (dpy) <= 60802000)
++ if (VendorRelease (dpy) < 60900000)
+ surface->buggy_repeat = TRUE;
+ } else if (strstr (ServerVendor (dpy), "XFree86") != NULL) {
+ if (VendorRelease (dpy) <= 40500000)
diff --git a/graphics/cairo/pkg-descr b/graphics/cairo/pkg-descr
new file mode 100644
index 000000000..4fd137a19
--- /dev/null
+++ b/graphics/cairo/pkg-descr
@@ -0,0 +1,13 @@
+Cairo is a vector graphics library with cross-device output
+support. Currently supported output targets include the X Window
+System and in-memory image buffers. PostScript and PDF file output is
+planned. Cairo is designed to produce identical output on all output
+media while taking advantage of display hardware acceleration when
+available (eg. through the X Render Extension).
+
+Cairo provides a stateful user-level API with capabilities similar to
+the PDF 1.4 imaging model. Cairo provides operations including stroking
+and filling Bezier cubic splines, transforming and compositing translucent
+images, and antialiased text rendering.
+
+WWW: http://www.cairographics.org
diff --git a/graphics/cairo/pkg-plist b/graphics/cairo/pkg-plist
new file mode 100644
index 000000000..a59f903ed
--- /dev/null
+++ b/graphics/cairo/pkg-plist
@@ -0,0 +1,66 @@
+include/cairo/cairo-features.h
+include/cairo/cairo-ft.h
+include/cairo/cairo-glitz.h
+include/cairo/cairo-pdf.h
+include/cairo/cairo-ps.h
+include/cairo/cairo-xlib-xrender.h
+include/cairo/cairo-xlib.h
+include/cairo/cairo.h
+lib/libcairo.a
+lib/libcairo.la
+lib/libcairo.so
+lib/libcairo.so.2
+libdata/pkgconfig/cairo.pc
+%%DOCSDIR%%/cairo/Drawing.html
+%%DOCSDIR%%/cairo/Fonts.html
+%%DOCSDIR%%/cairo/Support.html
+%%DOCSDIR%%/cairo/Surfaces.html
+%%DOCSDIR%%/cairo/bindings-errors.html
+%%DOCSDIR%%/cairo/bindings-fonts.html
+%%DOCSDIR%%/cairo/bindings-memory.html
+%%DOCSDIR%%/cairo/bindings-overloading.html
+%%DOCSDIR%%/cairo/bindings-path.html
+%%DOCSDIR%%/cairo/bindings-patterns.html
+%%DOCSDIR%%/cairo/bindings-return-values.html
+%%DOCSDIR%%/cairo/bindings-streams.html
+%%DOCSDIR%%/cairo/bindings-surfaces.html
+%%DOCSDIR%%/cairo/cairo-BeOS-Surfaces.html
+%%DOCSDIR%%/cairo/cairo-Error-handling.html
+%%DOCSDIR%%/cairo/cairo-Font-Options.html
+%%DOCSDIR%%/cairo/cairo-FreeType-Fonts.html
+%%DOCSDIR%%/cairo/cairo-Glitz-Surfaces.html
+%%DOCSDIR%%/cairo/cairo-Image-Surfaces.html
+%%DOCSDIR%%/cairo/cairo-PDF-Surfaces.html
+%%DOCSDIR%%/cairo/cairo-PNG-Support.html
+%%DOCSDIR%%/cairo/cairo-Paths.html
+%%DOCSDIR%%/cairo/cairo-Patterns.html
+%%DOCSDIR%%/cairo/cairo-PostScript-Surfaces.html
+%%DOCSDIR%%/cairo/cairo-SVG-Surfaces.html
+%%DOCSDIR%%/cairo/cairo-Scaled-Fonts.html
+%%DOCSDIR%%/cairo/cairo-Text.html
+%%DOCSDIR%%/cairo/cairo-Transformations.html
+%%DOCSDIR%%/cairo/cairo-Types.html
+%%DOCSDIR%%/cairo/cairo-Version-Information.html
+%%DOCSDIR%%/cairo/cairo-Win32-Fonts.html
+%%DOCSDIR%%/cairo/cairo-Win32-Surfaces.html
+%%DOCSDIR%%/cairo/cairo-XLib-Surfaces.html
+%%DOCSDIR%%/cairo/cairo-cairo-font-face-t.html
+%%DOCSDIR%%/cairo/cairo-cairo-matrix-t.html
+%%DOCSDIR%%/cairo/cairo-cairo-surface-t.html
+%%DOCSDIR%%/cairo/cairo-cairo-t.html
+%%DOCSDIR%%/cairo/cairo.devhelp
+%%DOCSDIR%%/cairo/cairo.devhelp2
+%%DOCSDIR%%/cairo/home.png
+%%DOCSDIR%%/cairo/index.html
+%%DOCSDIR%%/cairo/index.sgml
+%%DOCSDIR%%/cairo/ix01.html
+%%DOCSDIR%%/cairo/language-bindings.html
+%%DOCSDIR%%/cairo/left.png
+%%DOCSDIR%%/cairo/pt01.html
+%%DOCSDIR%%/cairo/pt02.html
+%%DOCSDIR%%/cairo/right.png
+%%DOCSDIR%%/cairo/style.css
+%%DOCSDIR%%/cairo/up.png
+@dirrm %%DOCSDIR%%/cairo
+@dirrm %%DOCSDIR%%
+@dirrm include/cairo
diff --git a/graphics/glitz/Makefile b/graphics/glitz/Makefile
new file mode 100644
index 000000000..f53489f02
--- /dev/null
+++ b/graphics/glitz/Makefile
@@ -0,0 +1,33 @@
+# New ports collection makefile for: glitz
+# Date created: 2004-10-06
+# Whom: Michael Johnson <ahze@ahze.net>
+#
+# $FreeBSD$
+# $MCom: ports-experimental/graphics/glitz/Makefile,v 1.2 2006/02/26 15:44:51 ahze Exp $
+#
+
+PORTNAME= glitz
+PORTVERSION= 0.5.3
+CATEGORIES= graphics
+MASTER_SITES= http://cairographics.org/snapshots/
+
+MAINTAINER= gnome@FreeBSD.org
+COMMENT= OpenGL image compositing library
+
+USE_GL= yes
+USE_GNOME= pkgconfig gnometarget gnomehack
+GNU_CONFIGURE= yes
+INSTALLS_SHLIB= yes
+
+CONFIGURE_ENV= CPPFLAGS="${PTHREAD_CFLAGS}" \
+ LDFLAGS="${PTHREAD_LIBS}"
+
+.include <bsd.port.pre.mk>
+
+post-patch:
+.if ${OSVERSION} < 500000
+ @${REINPLACE_CMD} -e 's|stdint.h|inttypes.h|' \
+ ${WRKSRC}/src/glitzint.h
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/graphics/glitz/distinfo b/graphics/glitz/distinfo
new file mode 100644
index 000000000..ebcd6abde
--- /dev/null
+++ b/graphics/glitz/distinfo
@@ -0,0 +1,3 @@
+MD5 (glitz-0.5.3.tar.gz) = 9aefc7006ca74114bc012eec8797e5b2
+SHA256 (glitz-0.5.3.tar.gz) = 99546b8c5a3d7d552be24a161de5753b8e8684543da0f86d0ca41aeec54b5d32
+SIZE (glitz-0.5.3.tar.gz) = 457423
diff --git a/graphics/glitz/pkg-descr b/graphics/glitz/pkg-descr
new file mode 100644
index 000000000..d7c1f8266
--- /dev/null
+++ b/graphics/glitz/pkg-descr
@@ -0,0 +1,5 @@
+Glitz is an OpenGL image compositing library. Glitz provides
+Porter/Duff compositing of images and implicit mask generation for
+geometric primitives including trapezoids, triangles, and rectangles.
+
+WWW: http://freedesktop.org/Software/glitz
diff --git a/graphics/glitz/pkg-plist b/graphics/glitz/pkg-plist
new file mode 100644
index 000000000..e87edf032
--- /dev/null
+++ b/graphics/glitz/pkg-plist
@@ -0,0 +1,12 @@
+include/glitz-glx.h
+include/glitz.h
+lib/libglitz-glx.a
+lib/libglitz-glx.la
+lib/libglitz-glx.so
+lib/libglitz-glx.so.1
+lib/libglitz.a
+lib/libglitz.la
+lib/libglitz.so
+lib/libglitz.so.1
+libdata/pkgconfig/glitz-glx.pc
+libdata/pkgconfig/glitz.pc