summaryrefslogtreecommitdiff
path: root/graphics/cairo-gobject
diff options
context:
space:
mode:
authordrochner <drochner>2011-02-12 13:40:53 +0000
committerdrochner <drochner>2011-02-12 13:40:53 +0000
commit75f61304e15ceb49d60871f55e98eccc8fad0c98 (patch)
tree000a831140c95a0fbbf97b3dc578e47c5c8fbdb5 /graphics/cairo-gobject
parent6aa83b8254bc4eedc3df6ae040d1becd1242f7a6 (diff)
downloadpkgsrc-75f61304e15ceb49d60871f55e98eccc8fad0c98.tar.gz
put the cairo gobject into its own pkg to avoid the heavy glib dependency
in the base pkg
Diffstat (limited to 'graphics/cairo-gobject')
-rw-r--r--graphics/cairo-gobject/DESCR17
-rw-r--r--graphics/cairo-gobject/Makefile55
-rw-r--r--graphics/cairo-gobject/PLIST4
3 files changed, 76 insertions, 0 deletions
diff --git a/graphics/cairo-gobject/DESCR b/graphics/cairo-gobject/DESCR
new file mode 100644
index 00000000000..3b5cdef47fa
--- /dev/null
+++ b/graphics/cairo-gobject/DESCR
@@ -0,0 +1,17 @@
+Cairo is a 2D graphics library with support for multiple output devices.
+Currently supported output targets include the X Window System, Quartz, Win32,
+image buffers, PostScript, PDF, and SVG file output. Experimental backends
+include OpenGL (through glitz), XCB, BeOS, OS/2, and DirectFB.
+
+Cairo is designed to produce consistent output on all output media while taking
+advantage of display hardware acceleration when available (eg. through the X
+Render Extension).
+
+The cairo API provides operations similar to the drawing operators of
+PostScript and PDF. Operations in cairo including stroking and filling cubic
+Bézier splines, transforming and compositing translucent images, and
+antialiased text rendering. All drawing operations can be transformed by any
+affine transformation (scale, rotation, shear, etc.)
+
+Cairo is implemented as a library written in the C programming language, but
+bindings are available for several different programming languages.
diff --git a/graphics/cairo-gobject/Makefile b/graphics/cairo-gobject/Makefile
new file mode 100644
index 00000000000..8656ad3e810
--- /dev/null
+++ b/graphics/cairo-gobject/Makefile
@@ -0,0 +1,55 @@
+# $NetBSD: Makefile,v 1.1 2011/02/12 13:40:53 drochner Exp $
+
+DISTNAME= cairo-1.10.2
+PKGNAME= cairo-gobject-1.10.2
+CATEGORIES= graphics
+MASTER_SITES= http://cairographics.org/releases/
+
+MAINTAINER= recht@NetBSD.org
+HOMEPAGE= http://cairographics.org/
+COMMENT= Vector graphics library with cross-device output support
+LICENSE= gnu-lgpl-v2.1 AND mpl-1.1
+
+PKG_DESTDIR_SUPPORT= user-destdir
+PATCHDIR= ${.CURDIR}/../../graphics/cairo/patches
+DISTINFO_FILE= ${.CURDIR}/../../graphics/cairo/distinfo
+BUILD_DIRS= util/cairo-gobject
+INSTALL_DIRS= util/cairo-gobject
+
+USE_LANGUAGES+= c99
+USE_LIBTOOL= yes
+USE_PKGLOCALEDIR= yes
+USE_TOOLS+= pkg-config
+PKGCONFIG_OVERRIDE+= src/cairo.pc.in src/cairo-features.pc.in
+GNU_CONFIGURE= yes
+CONFIGURE_ARGS+= --enable-gl
+CONFIGURE_ARGS+= --enable-pdf
+CONFIGURE_ARGS+= --enable-ps
+
+# For snprintf() and ctime_r()
+CPPFLAGS.SunOS+= -D__EXTENSIONS__ -D_POSIX_PTHREAD_SEMANTICS
+
+# PR#43928
+.include "../../mk/compiler.mk"
+.if ${MACHINE_PLATFORM:MDragonFly-*-x86_64} && ${CC_VERSION:Mgcc-4.1.*}
+CONFIGURE_ENV+= ac_cv_type___uint128_t=no
+.endif
+
+post-install:
+ ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/lib/pkgconfig
+ ${INSTALL_DATA} ${WRKSRC}/src/cairo-gobject.pc \
+ ${DESTDIR}${PREFIX}/lib/pkgconfig
+
+.include "../../graphics/cairo/buildlink3.mk"
+.include "../../devel/glib2/buildlink3.mk"
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../fonts/fontconfig/buildlink3.mk"
+BUILDLINK_API_DEPENDS.freetype2+= freetype2>=2.1.9
+.include "../../graphics/freetype2/buildlink3.mk"
+.include "../../graphics/png/buildlink3.mk"
+# include?
+#.include "../../print/libspectre/buildlink3.mk"
+.include "../../x11/pixman/buildlink3.mk"
+
+.include "../../mk/pthread.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/graphics/cairo-gobject/PLIST b/graphics/cairo-gobject/PLIST
new file mode 100644
index 00000000000..7204c01f877
--- /dev/null
+++ b/graphics/cairo-gobject/PLIST
@@ -0,0 +1,4 @@
+@comment $NetBSD: PLIST,v 1.1 2011/02/12 13:40:53 drochner Exp $
+include/cairo/cairo-gobject.h
+lib/libcairo-gobject.la
+lib/pkgconfig/cairo-gobject.pc