the Fink project is an effort to port
popular Unix programs to Mac OS X
Package: libgnomecups-shlibs
Version: 0.2.3
Revision: 9
BuildDepends: <<
fink-package-precedence,
gettext-bin,
gettext-tools,
glib2-dev (>= 2.22.0-1),
intltool40,
libgettext8-dev,
pkgconfig (>= 0.23),
system-openssl-dev
<<
Depends: <<
glib2-shlibs (>= 2.22.0-1),
libgettext8-shlibs
<<
Replaces: libgnomecups
Source: mirror:gnome:sources/libgnomecups/0.2/libgnomecups-%v.tar.bz2
Source-MD5: dc4920c15c9f886f73ea74fbff0ae48b
PatchFile: %n.patch
PatchFile-MD5: e69b1b361c27bf47e928a221fd5a0084
PatchScript: <<
%{default_script}
perl -pi -e 's/libgnomecups_1_0_la_LDFLAGS\s*=/libgnomecups_1_0_la_LDFLAGS = -no-undefined /' libgnomecups/Makefile.in
<<
SetCPPFLAGS: -I%p/lib/system-openssl/include -D_IPP_PRIVATE_STRUCTURES=1
SetLDFLAGS: -L%p/lib/system-openssl/lib
SetCFLAGS: -Os
ConfigureParams: --enable-dependency-tracking --disable-static PKG_CONFIG_PATH="%p/lib/glib-2.0/pkgconfig-strict:$PKG_CONFIG_PATH"
CompileScript: <<
F77=no ./configure %c
make
fink-package-precedence --prohibit-bdep=libgnomecups-dev .
<<
InstallScript: <<
make -j1 install DESTDIR="%d"
<<
DocFiles: AUTHORS COPYING* ChangeLog po/ChangeLog:ChangeLog.po NEWS README
Shlibs: %p/lib/libgnomecups-1.0.1.dylib 2.0.0 %n (>= 0.1.6-1)
SplitOff: <<
Package: libgnomecups-dev
Depends: libgnomecups-shlibs (= %v-%r)
BuildDependsOnly: True
Files: <<
include
lib/libgnomecups-1.0.{dylib,la}
lib/pkgconfig
<<
DocFiles: AUTHORS COPYING* ChangeLog po/ChangeLog:ChangeLog.po NEWS README
<<
DescPackaging: <<
share/locale moved libgnomecups -> libgnomecups-shlibs as of 0.1.6-4/1004
"cups-config --libs" sometimes publishes "-liconv", which is
not part of the public API of cups, so elide it rather than
pushing a useless dep
<<
DescPort: <<
cups/ipp.h on 10.4/xcode2.5 does not have ippNewRequest(), so
patch gnome_cups_request_new() back to the libgnomecups-0.2.2
implementation, which uses more portable ipp* functions.
See: http://bugzilla.gnome.org/show_bug.cgi?id=520563
Make sure -framework flags from cups-config are protected from
breakage by pkg-config
Recent glib doesn't publish -lintl, so pass it directly.
<<
Description: The GNOME cups library
License: LGPL
Maintainer: The Gnome Core Team
Homepage: http://www.gnome.org
diff -Nurd -x'*~' libgnomecups-0.2.3.orig/configure libgnomecups-0.2.3/configure
--- libgnomecups-0.2.3.orig/configure 2008-01-27 07:07:47.000000000 -0500
+++ libgnomecups-0.2.3/configure 2008-08-14 13:32:55.000000000 -0400
@@ -20310,7 +20310,7 @@
fi
CUPS_CFLAGS=`cups-config --cflags | sed 's/-O0-9*//' | sed 's/-m^\t*//g'`
-CUPS_LIBS=`cups-config --libs`
+CUPS_LIBS=`cups-config --libs | sed 's/-liconv//' | perl -p -e 's/(-\S*framework)\s+(\S+)/-Wl,\1,\2/g'`
diff -Nurd -x'*~' libgnomecups-0.2.3.orig/libgnomecups/Makefile.in libgnomecups-0.2.3/libgnomecups/Makefile.in
--- libgnomecups-0.2.3.orig/libgnomecups/Makefile.in 2008-01-27 07:07:49.000000000 -0500
+++ libgnomecups-0.2.3/libgnomecups/Makefile.in 2010-01-13 14:58:29.000000000 -0500
@@ -252,7 +252,7 @@
lib_LTLIBRARIES = libgnomecups-1.0.la
libgnomecups_1_0_la_LIBADD = \
$(LIBGNOMECUPS_LIBS) \
- $(CUPS_LIBS)
+ $(CUPS_LIBS) $(INTLLIBS)
libgnomecups_1_0_la_LDFLAGS = $(LT_VERSION_INFO)
libgnomecups_1_0_la_SOURCES = \
diff -Nurd -x'*~' libgnomecups-0.2.3.orig/libgnomecups/gnome-cups-request.c libgnomecups-0.2.3/libgnomecups/gnome-cups-request.c
--- libgnomecups-0.2.3.orig/libgnomecups/gnome-cups-request.c 2007-01-31 13:49:17.000000000 -0500
+++ libgnomecups-0.2.3/libgnomecups/gnome-cups-request.c 2008-01-28 23:04:53.000000000 -0500
@@ -393,15 +393,22 @@
return ret;
}
+// ippNewRequest not available in cups on 10.4.11 (but maybe in 10.4.0uSDK?)
+// revive libgnomecups-0.2.2 incantation for some of gnome_cups_request_new()
ipp_t *
gnome_cups_request_new (int operation_id)
{
cups_lang_t *language;
ipp_t *request;
- request = ippNewRequest (operation_id);
+ request = ippNew ();
+ request->request.op.operation_id = operation_id;
+ request->request.op.request_id = 1;
language = cupsLangDefault ();
+ ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_CHARSET,
+ "attributes-charset",
+ NULL, "utf-8");
ippAddString (request, IPP_TAG_OPERATION, IPP_TAG_LANGUAGE,
"attributes-natural-language",
NULL, language->language);