diff options
author | kwm <kwm@df743ca5-7f9a-e211-a948-0013205c9059> | 2010-07-07 17:19:04 +0800 |
---|---|---|
committer | kwm <kwm@df743ca5-7f9a-e211-a948-0013205c9059> | 2010-07-07 17:19:04 +0800 |
commit | 90b370991859ddfb56c88c20fa8148ecec5b3c58 (patch) | |
tree | 283dfe3a9f823f728d909a713127391097e36403 | |
parent | 7720fb4b8d89cde8b29984128ab2d6c395794576 (diff) | |
download | marcuscom-ports-90b370991859ddfb56c88c20fa8148ecec5b3c58.tar marcuscom-ports-90b370991859ddfb56c88c20fa8148ecec5b3c58.tar.gz marcuscom-ports-90b370991859ddfb56c88c20fa8148ecec5b3c58.tar.bz2 marcuscom-ports-90b370991859ddfb56c88c20fa8148ecec5b3c58.tar.lz marcuscom-ports-90b370991859ddfb56c88c20fa8148ecec5b3c58.tar.xz marcuscom-ports-90b370991859ddfb56c88c20fa8148ecec5b3c58.tar.zst marcuscom-ports-90b370991859ddfb56c88c20fa8148ecec5b3c58.zip |
Update to 1.9.10.
Future gtk30 releases will need it.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@14297 df743ca5-7f9a-e211-a948-0013205c9059
-rw-r--r-- | graphics/cairo/Makefile | 74 | ||||
-rw-r--r-- | graphics/cairo/distinfo | 3 | ||||
-rw-r--r-- | graphics/cairo/files/patch-src_cairoint.h | 14 | ||||
-rw-r--r-- | graphics/cairo/pkg-descr | 13 | ||||
-rw-r--r-- | graphics/cairo/pkg-plist | 38 |
5 files changed, 142 insertions, 0 deletions
diff --git a/graphics/cairo/Makefile b/graphics/cairo/Makefile new file mode 100644 index 000000000..b3cbdd18a --- /dev/null +++ b/graphics/cairo/Makefile @@ -0,0 +1,74 @@ +# New ports collection makefile for: cairo +# Date created: 2004-10-06 +# Whom: Michael Johnson <ahze@FreeBSD.org> +# +# $FreeBSD$ +# $MCom: ports/graphics/cairo/Makefile,v 1.93 2010/04/03 05:40:01 marcus Exp $ +# + +PORTNAME= cairo +PORTVERSION= 1.9.10 +PORTREVISION?= 0 +PORTEPOCH?= 1 +CATEGORIES= graphics +#MASTER_SITES= http://cairographics.org/releases/ +MASTER_SITES= http://cairographics.org/snapshots/ + +MAINTAINER= gnome@FreeBSD.org +COMMENT= Vector graphics library with cross-device output support + +.if !defined(REFERENCE_PORT) + +LIB_DEPENDS= freetype.9:${PORTSDIR}/print/freetype2 \ + png.6:${PORTSDIR}/graphics/png \ + fontconfig.1:${PORTSDIR}/x11-fonts/fontconfig \ + pixman-1.9:${PORTSDIR}/x11/pixman + +CONFIGURE_ARGS= --with-html-dir=${DOCSDIR} \ + --disable-directfb \ + --enable-pdf \ + --enable-ps +USE_GNOME= gnomehack ltverhack referencehack +USE_AUTOTOOLS= libtool:22 +USE_LDCONFIG= ${PREFIX}/lib ${PREFIX}/lib/cairo +#USE_LDCONFIG= yes + +CONFIGURE_ENV= CPPFLAGS="${PTHREAD_CFLAGS}" \ + LDFLAGS="${PTHREAD_LIBS}" \ + png_REQUIRES="libpng" + +.if defined(WITHOUT_X11) +CONFIGURE_ARGS+=--disable-xlib +PLIST_SUB+= X11="@comment " +.else +USE_XORG+= xrender +PLIST_SUB+= X11="" +.endif + +OPTIONS+= XCB "Enable XCB (X C-language Binding) Support" On + +.include <bsd.port.pre.mk> + +.ifdef(WITH_XCB) +BUILD_DEPENDS+= ${LOCALBASE}/libdata/pkgconfig/xcb-renderutil.pc:${PORTSDIR}/x11/xcb-util +RUN_DEPENDS+= ${LOCALBASE}/libdata/pkgconfig/xcb-renderutil.pc:${PORTSDIR}/x11/xcb-util +CONFIGURE_ARGS+= --enable-xcb +PLIST_SUB+= XCB="" +.else +CONFIGURE_ARGS+= --disable-xcb +PLIST_SUB+= XCB="@comment " +.endif + +post-patch: + @${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|' \ + ${WRKSRC}/test/Makefile.in + @${REINPLACE_CMD} -e 's|-lcairo|-lcairo ${PTHREAD_LIBS}|' \ + ${WRKSRC}/src/*.pc.in + @${REINPLACE_CMD} -e 's|src test doc|src doc|; \ + s|@CAIRO_HAS_PNG_FUNCTIONS_TRUE@am__append_1 = test||' \ + ${WRKSRC}/Makefile.in + @${REINPLACE_CMD} -e 's|" == "|" = "|g' ${WRKSRC}/configure + +.include <bsd.port.post.mk> + +.endif diff --git a/graphics/cairo/distinfo b/graphics/cairo/distinfo new file mode 100644 index 000000000..6e2041689 --- /dev/null +++ b/graphics/cairo/distinfo @@ -0,0 +1,3 @@ +MD5 (cairo-1.9.10.tar.gz) = 737d533e15302ae355ff9a3cf16bc467 +SHA256 (cairo-1.9.10.tar.gz) = 0341190e16e40670503fb2bd815692ebbe66a2843241c3d8e02f75bfb1b76ff4 +SIZE (cairo-1.9.10.tar.gz) = 23153906 diff --git a/graphics/cairo/files/patch-src_cairoint.h b/graphics/cairo/files/patch-src_cairoint.h new file mode 100644 index 000000000..a9b3ce480 --- /dev/null +++ b/graphics/cairo/files/patch-src_cairoint.h @@ -0,0 +1,14 @@ +--- src/cairoint.h.orig Sun Oct 15 18:02:35 2006 ++++ src/cairoint.h Sun Oct 15 18:10:11 2006 +@@ -50,6 +50,11 @@ + #include "config.h" + #endif + ++#ifndef INT16_MAX ++#define INT16_MAX 0x7fff ++#define INT16_MIN (-0x7fff-1) ++#endif ++ + #include <assert.h> + #include <stdlib.h> + #include <string.h> 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..3b7ff33b8 --- /dev/null +++ b/graphics/cairo/pkg-plist @@ -0,0 +1,38 @@ +bin/cairo-trace +include/cairo/cairo-deprecated.h +include/cairo/cairo-features.h +include/cairo/cairo-ft.h +include/cairo/cairo-pdf.h +include/cairo/cairo-ps.h +include/cairo/cairo-script-interpreter.h +include/cairo/cairo-svg.h +include/cairo/cairo-version.h +%%XCB%%include/cairo/cairo-xcb.h +%%X11%%include/cairo/cairo-xlib-xrender.h +%%X11%%include/cairo/cairo-xlib.h +include/cairo/cairo-xml.h +include/cairo/cairo.h +lib/cairo/libcairo-trace.a +lib/cairo/libcairo-trace.la +lib/cairo/libcairo-trace.so +lib/cairo/libcairo-trace.so.0 +lib/libcairo.a +lib/libcairo.la +lib/libcairo.so +lib/libcairo.so.2 +lib/libcairo-script-interpreter.a +lib/libcairo-script-interpreter.la +lib/libcairo-script-interpreter.so +lib/libcairo-script-interpreter.so.2 +libdata/pkgconfig/cairo.pc +libdata/pkgconfig/cairo-fc.pc +libdata/pkgconfig/cairo-ft.pc +libdata/pkgconfig/cairo-pdf.pc +libdata/pkgconfig/cairo-png.pc +libdata/pkgconfig/cairo-ps.pc +libdata/pkgconfig/cairo-svg.pc +%%XCB%%libdata/pkgconfig/cairo-xcb.pc +%%X11%%libdata/pkgconfig/cairo-xlib.pc +%%X11%%libdata/pkgconfig/cairo-xlib-xrender.pc +libdata/pkgconfig/cairo-xml.pc +@dirrm include/cairo |