zbar stable port information

Package: zbar
Version: 0.10
Revision: 1
Source: mirror:sourceforge:zbar/zbar-%v.tar.bz2
Source-MD5: 0fd61eb590ac1bab62a77913c8b086a5

BuildDepends: <<
fink (>= 0.24.12-1),
fink-package-precedence,
imagemagick2-dev,
libjpeg8,
libzbar0 (>= %v-1),
pkgconfig,
xmlto
<<
Depends: <<
imagemagick2-shlibs,
imagemagick,
libjpeg8-shlibs,
libzbar0-shlibs (>= %v-1)
<<
GCC: 4.0

PatchFile: %n.patch
PatchFile-MD5: 0ff640affb0a73f306bb2577eaaab4ae
PatchScript: <<
%{default_script}

mkdir -p _include/zbar
ln -s ../include/config.h _include

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 --with-imagemagick --without-npapi --without-gtk --without-python --without-qt
CompileScript: <<
#!/bin/sh -ex
# gather flags for installed zbar
ZBAR_CFLAGS=`%p/bin/pkg-config --cflags zbar`
ZBAR_LIBS=`%p/bin/pkg-config --libs zbar`
CPPFLAGS="$CPPFLAGS $ZBAR_CFLAGS"
LDFLAGS="$LDFLAGS $ZBAR_LIBS"

./configure %c
make
fink-package-precedence .
<<
InstallScript: <<
make install DESTDIR=%d include_HEADERS= zinclude_HEADERS=
rm -rf %i/share/doc/zbar
rmdir %i/share/zbar
install examples/upcrpc.py %i/bin/upcrpc
<<
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 zbarimg program.
<<
DescUsage: <<
'zbarimg' is the main graphics-file decoding program.

'upcrpc' does UPC-code lookups from http://dev.upcdatabase.com
<<
Description: Barcode decoding program
Homepage: http://zbar.sourceforge.net/
License: LGPL
Maintainer: Daniel Macks

zbar stable port .patch

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-07-23 01:55:33.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

zbar _unstable_ port .patch