From d53ee2856c951039e998a372adc3350b6d02941e Mon Sep 17 00:00:00 2001 From: ajacoutot Date: Sat, 4 Aug 2012 15:07:24 +0000 Subject: [PATCH] Handle cups >= 1.6 --- x11/qt4/Makefile | 8 ++++++-- x11/qt4/patches/patch-src_gui_painting_qcups_cpp | 15 +++++++++++++++ 2 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 x11/qt4/patches/patch-src_gui_painting_qcups_cpp diff --git a/x11/qt4/Makefile b/x11/qt4/Makefile index 1cbf7eb5666..1926b8eeafc 100644 --- a/x11/qt4/Makefile +++ b/x11/qt4/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.99 2012/06/14 09:38:35 espie Exp $ +# $OpenBSD: Makefile,v 1.100 2012/08/04 15:07:24 ajacoutot Exp $ ONLY_FOR_ARCHS = ${GCC4_ARCHS} SHARED_ONLY = Yes @@ -24,6 +24,7 @@ PKGNAME-debug = qt4-debug-${PKGVERSION} FULLPKGNAME-html = qt4-html-${PKGVERSION} FULLPKGPATH-html = ${BASE_PKGPATH},-html +REVISION-main= 0 SHARED_LIBS = Qt3Support 8.0 \ QtCore 9.0 \ @@ -124,10 +125,13 @@ CONFIGURE_ENV = LOCALBASE=${LOCALBASE} QTDIR="${WRKSRC}" \ CONFIGURE_ENV += BOOTSTRAP_MAKE_FLAGS='-j${MAKE_JOBS}' .endif -BUILD_DEPENDS += print/cups BUILD_DEPENDS += x11/dbus BUILD_DEPENDS += databases/postgresql,-server +# configure checks for cups support; no LIB/RUN_DEPENDS because libcups +# is only dlopen()ed if found +BUILD_DEPENDS += print/cups,-libs + MULTI_PACKAGES = -main -examples \ -html -mysql -postgresql -sqlite2 -tds diff --git a/x11/qt4/patches/patch-src_gui_painting_qcups_cpp b/x11/qt4/patches/patch-src_gui_painting_qcups_cpp new file mode 100644 index 00000000000..7411d91e681 --- /dev/null +++ b/x11/qt4/patches/patch-src_gui_painting_qcups_cpp @@ -0,0 +1,15 @@ +$OpenBSD: patch-src_gui_painting_qcups_cpp,v 1.1 2012/08/04 15:07:25 ajacoutot Exp $ + +libcups.so.2 -> libcups.so + +--- src/gui/painting/qcups.cpp.orig Sun Jul 29 12:16:17 2012 ++++ src/gui/painting/qcups.cpp Sun Jul 29 12:16:36 2012 +@@ -87,7 +87,7 @@ static CupsPrintFile _cupsPrintFile = 0; + + static void resolveCups() + { +- QLibrary cupsLib(QLatin1String("cups"), 2); ++ QLibrary cupsLib(QLatin1String("cups")); + if(cupsLib.load()) { + _cupsGetDests = (CupsGetDests) cupsLib.resolve("cupsGetDests"); + _cupsFreeDests = (CupsFreeDests) cupsLib.resolve("cupsFreeDests");