the Fink project is an effort to port
popular Unix programs to Mac OS X
Package: libzbar0-gtk
Version: 0.10
Revision: 1
Source: mirror:sourceforge:zbar/zbar-%v.tar.bz2
Source-MD5: 0fd61eb590ac1bab62a77913c8b086a5
BuildDepends: <<
atk1 (>= 1.28.0-1),
cairo (>= 1.8.8-3),
fink (>= 0.24.12-1),
fink-package-precedence,
fontconfig2-dev (>= 2.8.0-4),
freetype219 (>= 2.3.12-1),
glib2-dev (>= 2.22.0-1),
glitz,
gtk+2-dev (>= 2.18.0-1),
libjpeg8,
libzbar0 (>= %v-1),
pango1-xft2-ft219-dev (>= 1.24.5-4),
pixman (>= 0.18.0-1),
pkgconfig,
x11-dev,
xmlto
<<
Depends: %n-shlibs (= %v-%r)
BuildDependsOnly: true
PatchFile: %n.patch
PatchFile-MD5: 236ad66e7caca262ceb1e4f70f690deb
PatchScript: <<
%{default_script}
mkdir -p _include/zbar
ln -s ../include/config.h _include
ln -s ../../include/zbar/zbargtk.h _include/zbar
perl -pi -e 's,zbar/libzbar.la,,g' Makefile.in
perl -pi -e 's,zbar.pc,,g' Makefile.in
<<
ConfigureParams: --enable-dependency-tracking --disable-video --without-imagemagick --without-npapi --with-gtk --without-python --without-qt --disable-static
CompileScript: <<
#!/bin/sh -ex
# gather flags for installed zebra
ZBAR_CFLAGS=`%p/bin/pkg-config --cflags zbar`
ZBAR_LIBS=`%p/bin/pkg-config --libs zbar`
CPPFLAGS="$CPPFLAGS $ZBAR_CFLAGS"
LDFLAGS="$LDFLAGS $ZBAR_LIBS"
# special stuff for gtk
export PKG_CONFIG_PATH="%p/lib/glib-2.0/pkgconfig-strict:%p/lib/fontconfig2/lib/pkgconfig:$PKG_CONFIG_PATH"
./configure %c
make
fink-package-precedence --prohibit-bdep=%n .
<<
InstallScript: <<
make install DESTDIR=%d include_HEADERS= zinclude_HEADERS="include/zbar/zbargtk.h"
rm -rf %i/share/doc/zbar
rm -rf %i/share/zbar
rmdir %i/bin
rm -rf %i/share/man
<<
DocFiles: COPYING ChangeLog HACKING NEWS README TODO
SplitOff: <<
Package: %N-shlibs
Files: lib/libzbargtk.0.*
Depends: <<
atk1-shlibs (>= 1.28.0-1),
cairo-shlibs (>= 1.8.8-3),
fontconfig2-shlibs (>= 2.8.0-4),
freetype219-shlibs (>= 2.3.12-1),
glib2-shlibs (>= 2.22.0-1),
gtk+2-shlibs (>= 2.18.0-1),
libjpeg8-shlibs,
libzbar0-shlibs (>= %v-1),
pango1-xft2-ft219-shlibs (>= 1.24.5-4),
x11-shlibs
<<
Shlibs: %p/lib/libzbargtk.0.dylib 1.0.0 %n (>= 0.10-1)
DocFiles: COPYING ChangeLog HACKING NEWS README TODO
<<
DescPackaging: <<
Hack makefiles and autoconf config.h locations to use
installed zebra instead of building locally.
Redo doc files manually so they go where we want and include
the files oriented towards users not installers.
This is just the gtk lib; removing the should-be-empty bin
dir without -f makes sure we didn't accidentally build any
front-end programs. Only install gtk headers
<<
Description: GTK bindings for zebra barcode library
Homepage: http://zbar.sourceforge.net/
License: LGPL
Maintainer: Daniel Macks
diff -Nurd -x'*~' zbar-0.10.orig/Makefile.in zbar-0.10/Makefile.in
--- zbar-0.10.orig/Makefile.in 2009-10-23 14:17:25.000000000 -0400
+++ zbar-0.10/Makefile.in 2010-09-01 23:56:43.000000000 -0400
@@ -414,7 +414,7 @@
@HAVE_MAGICK_TRUE@zbarimg_zbarimg_DEPENDENCIES = \
@HAVE_MAGICK_TRUE@ $(am__DEPENDENCIES_1) zbar/libzbar.la \
@HAVE_MAGICK_TRUE@ $(am__append_32)
-DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/include
+DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/_include
depcomp = $(SHELL) $(top_srcdir)/config/depcomp
am__depfiles_maybe = depfiles
COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
@@ -656,7 +656,7 @@
top_build_prefix = @top_build_prefix@
top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
-AM_CPPFLAGS = -I$(srcdir)/include
+AM_CPPFLAGS =
AM_CFLAGS = -Wall -Wno-parentheses
AM_CXXFLAGS = $(AM_CFLAGS)
ACLOCAL_AMFLAGS = -I config
@@ -749,7 +749,7 @@
@HAVE_GTK_TRUE@gtk_libzbargtk_la_CPPFLAGS = -Igtk $(GTK_CFLAGS) $(AM_CPPFLAGS)
@HAVE_GTK_TRUE@gtk_libzbargtk_la_LDFLAGS = -version-info $(ZGTK_LIB_VERSION) \
-@HAVE_GTK_TRUE@ -export-symbols-regex "^zbar_gtk_.*" $(AM_LDFLAGS)
+@HAVE_GTK_TRUE@ -export-symbols-regex "^zbar_gtk_.*" $(AM_LDFLAGS) -no-undefined
@HAVE_GTK_TRUE@gtk_libzbargtk_la_LIBADD = $(GTK_LIBS) zbar/libzbar.la $(AM_LIBADD)
@HAVE_GTK_TRUE@dist_gtk_libzbargtk_la_SOURCES = gtk/zbargtk.c gtk/zbargtkprivate.h