From 899cdd05a3a5547ac2b1467bc680cf9372f9a90c Mon Sep 17 00:00:00 2001 From: ajacoutot Date: Tue, 15 Apr 2008 19:34:53 +0000 Subject: [PATCH] - add support for CUPS ("-cups" subpackage) this makes printing using gtkprint and CUPS much more pleasant ;-) - fix a small typo in COMMENT-docs while here "no objections" jasper@, looks good "landry@ --- x11/gtk+2/Makefile | 52 +++++++++++++++++++------------ x11/gtk+2/patches/patch-configure | 14 --------- x11/gtk+2/pkg/DESCR-cups | 1 + x11/gtk+2/pkg/PLIST-cups | 4 +++ 4 files changed, 37 insertions(+), 34 deletions(-) delete mode 100644 x11/gtk+2/patches/patch-configure create mode 100644 x11/gtk+2/pkg/DESCR-cups create mode 100644 x11/gtk+2/pkg/PLIST-cups diff --git a/x11/gtk+2/Makefile b/x11/gtk+2/Makefile index e0a0972fd3f..eaec189157f 100644 --- a/x11/gtk+2/Makefile +++ b/x11/gtk+2/Makefile @@ -1,14 +1,16 @@ -# $OpenBSD: Makefile,v 1.61 2008/04/09 13:15:44 jasper Exp $ +# $OpenBSD: Makefile,v 1.62 2008/04/15 19:34:53 ajacoutot Exp $ SHARED_ONLY= Yes COMMENT-main= multi-platform graphical toolkit -COMMENT-docs= gtk+-2 documentation +COMMENT-docs= gtk+2 documentation +COMMENT-cups= gtk+2 CUPS print backend VERSION= 2.12.9 DISTNAME= gtk+-${VERSION} -PKGNAME-main= gtk+2-${VERSION} -PKGNAME-docs= gtk+2-docs-${VERSION} +PKGNAME-main= gtk+2-${VERSION}p0 +PKGNAME-docs= gtk+2-docs-${VERSION}p0 +PKGNAME-cups= gtk+2-cups-${VERSION} SHARED_LIBS += gdk_pixbuf-2.0 1200.9 # .1200.9 SHARED_LIBS += gdk-x11-2.0 1200.9 # .1200.9 SHARED_LIBS += gtk-x11-2.0 1200.9 # .1200.9 @@ -26,26 +28,37 @@ PERMIT_DISTFILES_FTP= Yes MASTER_SITES= ${MASTER_SITE_GNOME:=sources/gtk+/2.12/} EXTRACT_SUFX= .tar.bz2 -MULTI_PACKAGES= -main -docs +MULTI_PACKAGES= -main -docs -cups -WANTLIB-main= X11 Xau Xcomposite Xcursor Xdamage Xdmcp Xext \ - Xfixes Xi Xinerama Xrender Xrandr c cairo expat \ - fontconfig freetype glib-2.0 glitz m gmodule-2.0 \ - gobject-2.0 gthread-2.0 pcre pthread z +WANTLIB= X11 Xau Xcomposite Xcursor Xdamage Xdmcp Xext \ + Xfixes Xi Xinerama Xrandr Xrender cairo expat \ + fontconfig freetype glitz m pcre z -MODULES= devel/gettext +MODULES= devel/gettext -LIB_DEPENDS= glib-2.0.>=1600.0,gmodule-2.0.>=1600.0,gobject-2.0.>=1600.0::devel/glib2 \ - pango-1.0.>=1300.0,pangocairo-1.0.>=1300.0,pangoft2-1.0.>=1300.0::devel/pango \ - atk-1.0.>=1809.0::devel/atk \ - tiff.>=35::graphics/tiff \ - png.>=3::graphics/png \ - jpeg.>=62::graphics/jpeg -RUN_DEPENDS= ::x11/hicolor-icon-theme +BUILD_DEPENDS= ::print/cups +RUN_DEPENDS= ::x11/hicolor-icon-theme + +LIB_DEPENDS-main= ${LIB_DEPENDS} \ + glib-2.0.>=1000.0,gmodule-2.0.>=1000.0,gobject-2.0.>=1000.0,gthread-2.0::devel/glib2 \ + pango-1.0.>=1300.0,pangocairo-1.0.>=1300.0,pangoft2-1.0.>=1300.0::devel/pango \ + atk-1.0.>=1809.0::devel/atk \ + tiff.>=35::graphics/tiff \ + png.>=3::graphics/png \ + jpeg.>=62::graphics/jpeg +WANTLIB-main= ${WANTLIB} c pthread LIB_DEPENDS-docs= RUN_DEPENDS-docs= -PKG_ARCH-docs= * +WANTLIB-docs= +PKG_ARCH-docs= * + +LIB_DEPENDS-cups= ${LIB_DEPENDS} \ + cups.>=3::print/cups \ + gdk-x11-2.0,gdk_pixbuf-2.0,gtk-x11-2.0::${BASE_PKGPATH},-main +WANTLIB-cups= ${WANTLIB} atk-1.0 crypto glib-2.0 gmodule-2.0 \ + gobject-2.0 pango-1.0 pangocairo-1.0 \ + pangoft2-1.0 png ssl USE_X11= Yes USE_GMAKE= Yes @@ -54,8 +67,7 @@ CONFIGURE_STYLE= gnu CONFIGURE_ARGS+= --disable-gtk-doc \ --with-xinput=yes CONFIGURE_ENV= CPPFLAGS="-I${X11BASE}/include/freetype2/ -I${LOCALBASE}/include -I${LOCALBASE}/include/libpng" \ - LDFLAGS="-L${LOCALBASE}/lib" \ - ENABLE_CUPS="no" + LDFLAGS="-L${LOCALBASE}/lib" # The regression tests require a running instance of X. # You will also need to set the XAUTHORITY environment variable to point diff --git a/x11/gtk+2/patches/patch-configure b/x11/gtk+2/patches/patch-configure deleted file mode 100644 index 7edea875204..00000000000 --- a/x11/gtk+2/patches/patch-configure +++ /dev/null @@ -1,14 +0,0 @@ -$OpenBSD: patch-configure,v 1.20 2008/04/09 13:15:44 jasper Exp $ ---- configure.orig Wed Mar 12 05:18:17 2008 -+++ configure Thu Mar 13 00:01:34 2008 -@@ -32948,7 +32948,9 @@ fi - - fi - -- -+if test "x$ENABLE_CUPS" != "xyes"; then -+ CUPS_CONFIG=no -+fi - if test "x$CUPS_CONFIG" != "xno"; then - HAVE_CUPS_TRUE= - HAVE_CUPS_FALSE='#' diff --git a/x11/gtk+2/pkg/DESCR-cups b/x11/gtk+2/pkg/DESCR-cups new file mode 100644 index 00000000000..eaf0b779b3d --- /dev/null +++ b/x11/gtk+2/pkg/DESCR-cups @@ -0,0 +1 @@ +CUPS print backend for gtk+2. diff --git a/x11/gtk+2/pkg/PLIST-cups b/x11/gtk+2/pkg/PLIST-cups new file mode 100644 index 00000000000..4ae55b44866 --- /dev/null +++ b/x11/gtk+2/pkg/PLIST-cups @@ -0,0 +1,4 @@ +@comment $OpenBSD: PLIST-cups,v 1.1 2008/04/15 19:34:53 ajacoutot Exp $ +lib/gtk-2.0/2.10.0/printbackends/libprintbackend-cups.a +lib/gtk-2.0/2.10.0/printbackends/libprintbackend-cups.la +lib/gtk-2.0/2.10.0/printbackends/libprintbackend-cups.so