pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/graphics/cairo Enable the quartz backend on Darwin if ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e63e09dd54a3
branches:  trunk
changeset: 500084:e63e09dd54a3
user:      rh <rh%pkgsrc.org@localhost>
date:      Sun Oct 02 08:09:43 2005 +0000

description:
Enable the quartz backend on Darwin if Quartz.framework exists.
Bump PKGREVISION.

diffstat:

 graphics/cairo/Makefile |  12 +++++++++++-
 graphics/cairo/PLIST    |   3 ++-
 2 files changed, 13 insertions(+), 2 deletions(-)

diffs (43 lines):

diff -r 3a4739fe9704 -r e63e09dd54a3 graphics/cairo/Makefile
--- a/graphics/cairo/Makefile   Sun Oct 02 06:42:48 2005 +0000
+++ b/graphics/cairo/Makefile   Sun Oct 02 08:09:43 2005 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.23 2005/09/30 13:51:24 adam Exp $
+# $NetBSD: Makefile,v 1.24 2005/10/02 08:09:43 rh Exp $
 
 DISTNAME=      cairo-1.0.0
+PKGREVISION=   1
 CATEGORIES=    graphics
 MASTER_SITES=  http://cairographics.org/releases/
 
@@ -20,6 +21,15 @@
 CONFIGURE_ARGS+=       --enable-ps
 CONFIGURE_ARGS+=       --with-html-dir=${PREFIX}/share/doc
 
+.include "../../mk/bsd.prefs.mk"
+
+.if ${OPSYS} == "Darwin" && exists(/System/Library/Frameworks/Quartz.framework)
+CONFIGURE_ARGS+=       --enable-quartz
+PLIST_SUBST+=          QUARTZ=
+.else
+PLIST_SUBST+=          QUARTZ="@comment "
+.endif
+
 BUILDLINK_DEPENDS.freetype2+=  freetype2>=2.1.5
 BUILDLINK_DEPENDS.Xft2+=       Xft2>=2.1.2
 BUILDLINK_DEPENDS.Xrender+=    Xrender>=0.8
diff -r 3a4739fe9704 -r e63e09dd54a3 graphics/cairo/PLIST
--- a/graphics/cairo/PLIST      Sun Oct 02 06:42:48 2005 +0000
+++ b/graphics/cairo/PLIST      Sun Oct 02 08:09:43 2005 +0000
@@ -1,9 +1,10 @@
-@comment $NetBSD: PLIST,v 1.7 2005/09/30 13:51:24 adam Exp $
+@comment $NetBSD: PLIST,v 1.8 2005/10/02 08:09:43 rh Exp $
 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
+${QUARTZ}include/cairo/cairo-quartz.h
 include/cairo/cairo-xlib-xrender.h
 include/cairo/cairo-xlib.h
 include/cairo/cairo.h



Home | Main Index | Thread Index | Old Index