--- iulib-0.4.orig/debian/copyright +++ iulib-0.4/debian/copyright @@ -0,0 +1,70 @@ +This package was debianized by Jeffrey Ratcliffe +on Wed, 06 May 2009 22:05:13 +0200. + +It was downloaded from http://code.google.com/p/iulib/ + +Upstream Authors: + + Thomas Breuel + Christian Kofler + Ilya Mezhirov + Faisal Shafait + Yves Rangoni + Ashish Kulkarni + Rajesh Pandey + +Copyright: + + Copyright 2008 Deutsches Forschungszentrum fuer Kuenstliche + Intelligenz or its licensors, as applicable. + +License: + + Licensed under the Apache License, Version 2.0 (the "License"); you + may not use this file except in compliance with the License. You may + obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + +On a Debian system the complete text of the Apache-2.0 license can be found in +/usr/share/common-licenses/Apache-2.0 + +The Debian packaging is copyright 2009, Jeffrey Ratcliffe +and is licensed under Apache-2.0, see /usr/share/common-licenses/Apache-2.0 + +The files below have different copyright notices: + +Files: colib/tests/* vidio/test-vidio.cc vidio/vidio.cc + .pc/ftbfs/vidio/vidio.cc +Copyright: Copyright 2006 Deutsches Forschungszentrum fuer Kuenstliche Intelligenz +License: Apache-2.0 + +Files: imglib/* imgio/autoinvert.cc vidio/v4l2cap.cc +Copyright: Copyright 2006 Deutsches Forschungszentrum fuer Kuenstliche Intelligenz +Copyright: Copyright 1995-2005 Thomas M. Breuel. +License: Apache-2.0 + +Files: imglib/test-imgbrushfire.cc utils/dgraphics.cc + utils/dgraphics_nosdl.cc imgio/* +Copyright: Copyright 2006-2007 Deutsches Forschungszentrum fuer Kuenstliche Intelligenz +License: Apache-2.0 + +Files: imgbits/* +Copyright: Copyright 2007 Deutsches Forschungszentrum fuer Kuenstliche Intelligenz / Thomas M. Breuel +Copyright: Copyright 1992-2007 Thomas M. Breuel +License: Apache-2.0 + +Files: imgio/io_png.cc +Copyright: Copyright 2001 Leptonica +Copyright: Copyright 2006-2007 Deutsches Forschungszentrum fuer Kuenstliche Intelligenz +License: Apache-2.0 + +Files: doxygen.py +Copyright: Copyright: 2005, 2006 Matthew A. Nicholson +Copyright: 2006 Tim Blechmann +License: LGPL-2.1 + --- iulib-0.4.orig/debian/control +++ iulib-0.4/debian/control @@ -0,0 +1,43 @@ +Source: iulib +Section: graphics +Priority: optional +Maintainer: Ubuntu MOTU Developers +XSBC-Original-Maintainer: Jeffrey Ratcliffe +Build-Depends: debhelper (>= 7.0.50~), autotools-dev, quilt (>= 0.46-7), automake1.9, libtool (>= 2), libpng12-dev, libjpeg62-dev, libtiff4-dev, libavcodec-dev, libavformat-dev, libsdl-gfx1.2-dev, libsdl-image1.2-dev, python, imagemagick +Standards-Version: 3.8.3 +DM-Upload-Allowed: yes +Homepage: http://code.google.com/p/iulib/ + +Package: libiulib0 +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: C++ library of image understanding-related algorithms + Iulib provides basic image processing, mathematical morphology, and machine + learning algorithms. + . + Iulib implements easy-to-use image and video I/O functions, as well as a + large number of common image processing functions. + . + Design goals are high portability, easy-to-understand algorithms, no + reliance on STL, and using a minimal set of data structures. Almost all + interfaces are written in terms of just numbers and the simple narray array + class. + +Package: libiulib-dev +Section: libdevel +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, libiulib0 (= ${binary:Version}) +Description: C++ library of image understanding-related algorithms -- development files + Iulib provides basic image processing, mathematical morphology, and machine + learning algorithms. + . + Iulib implements easy-to-use image and video I/O functions, as well as a + large number of common image processing functions. + . + Design goals are high portability, easy-to-understand algorithms, no + reliance on STL, and using a minimal set of data structures. Almost all + interfaces are written in terms of just numbers and the simple narray array + class. + . + This package includes header files and static libraries needed to compile + programs using libiulib --- iulib-0.4.orig/debian/compat +++ iulib-0.4/debian/compat @@ -0,0 +1 @@ +7 --- iulib-0.4.orig/debian/README.source +++ iulib-0.4/debian/README.source @@ -0,0 +1,47 @@ +This package uses quilt to manage all modifications to the upstream +source. Changes are stored in the source package as diffs in +debian/patches and applied during the build. + +To get the fully patched source after unpacking the source package, cd to +the root level of the source package and run: + + quilt push -a + +The last patch listed in debian/patches/series will become the current +patch. + +To add a new set of changes, first run quilt push -a, and then run: + + quilt new + +where is a descriptive name for the patch, used as the filename in +debian/patches. Then, for every file that will be modified by this patch, +run: + + quilt add + +before editing those files. You must tell quilt with quilt add what files +will be part of the patch before making changes or quilt will not work +properly. After editing the files, run: + + quilt refresh + +to save the results as a patch. + +Alternately, if you already have an external patch and you just want to +add it to the build system, run quilt push -a and then: + + quilt import -P /path/to/patch + quilt push -a + +(add -p 0 to quilt import if needed). as above is the filename to +use in debian/patches. The last quilt push -a will apply the patch to +make sure it works properly. + +To remove an existing patch from the list of patches that will be applied, +run: + + quilt delete + +You may need to run quilt pop -a to unapply patches first before running +this command. --- iulib-0.4.orig/debian/libiulib-dev.install +++ iulib-0.4/debian/libiulib-dev.install @@ -0,0 +1,5 @@ +usr/include/colib/* +usr/include/iulib/* +usr/lib/libiulib.la +usr/lib/libiulib.so + --- iulib-0.4.orig/debian/libiulib0.install +++ iulib-0.4/debian/libiulib0.install @@ -0,0 +1,3 @@ +usr/lib/libiulib.so.0 +usr/lib/libiulib.so.0.0.0 + --- iulib-0.4.orig/debian/changelog +++ iulib-0.4/debian/changelog @@ -0,0 +1,23 @@ +iulib (0.4-0ubuntu1) lucid; urgency=low + + * New upstream release + * debian/control: + - Update debhelper version required, and Standards-Version. + - Add imagemagick to Build-Depends (required by tests) + * debian/rules: + - Add Makefile.am generation by ./genAM.py, and cleanup + - Remove Makefile.in backup + * patches/ftbfs: Removed. Applied upstream. + * patches/shared_library: Updated to reflect generation of Makefile.am by + genAM.py + * patches/version: Added. Correctly set version to 0.4 instead of 0.3 + * patches/include_dirs: Added. Add required include directories. + + -- Bernhard Reiter Tue, 19 Jan 2010 20:02:24 +0100 + +iulib (0.3-1) unstable; urgency=low + + * Initial release. (Closes: #508143) + + -- Jeffrey Ratcliffe Wed, 06 May 2009 22:05:13 +0200 + --- iulib-0.4.orig/debian/watch +++ iulib-0.4/debian/watch @@ -0,0 +1,3 @@ +version=3 +http://code.google.com/p/iulib/downloads/list http://iulib.googlecode.com/files/iulib-(.*)\.ta?r?\.?gz + --- iulib-0.4.orig/debian/rules +++ iulib-0.4/debian/rules @@ -0,0 +1,22 @@ +#!/usr/bin/make -f +%: + dh --with quilt $@ + +override_dh_auto_configure: + mv aclocal.m4 aclocal.m4.old + mv configure configure.old + cp /usr/share/libtool/config/ltmain.sh . + ./genAM.py > ./Makefile.am + aclocal + autoconf + automake --add-missing + ./configure --prefix=/usr + +clean: + dh_testdir + dh_auto_clean + dh_quilt_unpatch + dh_clean config.guess config.sub ltmain.sh Makefile.am + [ ! -f aclocal.m4.old ] || mv aclocal.m4.old aclocal.m4 + [ ! -f configure.old ] || mv configure.old configure + --- iulib-0.4.orig/debian/.pc/.version +++ iulib-0.4/debian/.pc/.version @@ -0,0 +1 @@ +2 --- iulib-0.4.orig/debian/.pc/genAM.py +++ iulib-0.4/debian/.pc/genAM.py @@ -0,0 +1,120 @@ +#!/usr/bin/python + +import glob, os, string as s + +print """# Copyright 2008 Deutsches Forschungszentrum fuer Kuenstliche Intelligenz +# or its licensors, as applicable. +# +# You may not use this file except under the terms of the accompanying license. +# +# Licensed under the Apache License, Version 2.0 (the "License"); you +# may not use this file except in compliance with the License. You may +# obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# Project: iulib -- image understanding library +# File: Makefile.am +# Purpose: building iulib +# Responsible: kofler +# Reviewer: +# Primary Repository: http://ocropus.googlecode.com/svn/trunk/ +# Web Sites: www.iupr.org, www.dfki.de + +AM_CPPFLAGS = -I$(srcdir)/colib -I$(srcdir)/imgio -I$(srcdir)/imglib + +includedir = ${prefix}/include/iulib +colibdir = ${prefix}/include/colib + +lib_LIBRARIES = libiulib.a +""" + +dirs = """ + imgio + imglib + imgbits +""".split() + +print "libiulib_a_SOURCES = ", +for d in dirs: + print '\\' + for cc in glob.glob(d + "/*.cc"): + if os.path.basename(cc).startswith("test-"): continue + print "$(srcdir)/" + cc, +print +print + +print "include_HEADERS = ", +for d in dirs: + print '\\' + for h in glob.glob(d + "/*.h"): + print "$(srcdir)/" + h, +print +print "include_HEADERS += $(srcdir)/utils/dgraphics.h" +print + +print "colib_HEADERS = \\" +for h in glob.glob("colib/*.h"): + print "$(srcdir)/" + h, +print +print + +# gather all test-* files +tests = glob.glob("colib/tests/test-*.cc") +for d in dirs: + tests += glob.glob(d +"/test-*.cc") + tests += glob.glob(d + "/tests/test-*.cc") +#name the resulting binaries (strip folder and suffix) +print "check_PROGRAMS = " + s.join(" " + os.path.basename(t)[:-3] for t in tests) +for t in tests: + tName = os.path.basename(t)[:-3].replace('-','_') + print tName + "_SOURCES = $(srcdir)/" + t + print tName + "_LDADD = libiulib.a" + print tName + "_CPPFLAGS = -I$(srcdir)/colib -I$(srcdir)/imgio -I$(srcdir)/imglib" + + + + +print """ +# conditionals +if have_sdl + libiulib_a_SOURCES += $(srcdir)/utils/dgraphics.cc + libiulib_a_SOURCES += $(srcdir)/utils/SDL_lines.cc + include_HEADERS += $(srcdir)/utils/SDL_lines.h +else + libiulib_a_SOURCES += $(srcdir)/utils/dgraphics_nosdl.cc +endif + +if have_vidio + libiulib_a_SOURCES += $(srcdir)/vidio/vidio.cc +endif + +# We install it always because iulib.h always includes it. +include_HEADERS += $(srcdir)/vidio/vidio.h + +if have_v4l2 + libiulib_a_SOURCES += $(srcdir)/vidio/v4l2cap.cc +endif + +# make installation of colib a separate target + +install-colib: + install -d $(colibdir) + install $(colib_HEADERS) $(colibdir) + +install: all install-colib + install -d $(includedir) + install -d $(libdir) + install $(include_HEADERS) $(includedir) + install $(lib_LIBRARIES) $(libdir) +""" + +print +print "check:" +print ' @echo "# running tests"' +for t in tests: + print " $(srcdir)/" + os.path.basename(t)[:-3] --- iulib-0.4.orig/debian/patches/include_dirs +++ iulib-0.4/debian/patches/include_dirs @@ -0,0 +1,23 @@ +Index: iulib-0.4/genAM.py +=================================================================== +--- iulib-0.4.orig/genAM.py 2010-01-22 05:40:34.000000000 +0100 ++++ iulib-0.4/genAM.py 2010-01-22 05:41:01.000000000 +0100 +@@ -25,7 +25,8 @@ + # Primary Repository: http://ocropus.googlecode.com/svn/trunk/ + # Web Sites: www.iupr.org, www.dfki.de + +-AM_CPPFLAGS = -I$(srcdir)/colib -I$(srcdir)/imgio -I$(srcdir)/imglib ++AM_CPPFLAGS = -I$(srcdir)/colib -I$(srcdir)/imgio -I$(srcdir)/imglib \ ++ -I$(srcdir)/imgbits -I$(srcdir)/utils -I$(srcdir)/vidio + + includedir = ${prefix}/include/iulib + colibdir = ${prefix}/include/colib +@@ -74,7 +75,7 @@ + tName = os.path.basename(t)[:-3].replace('-','_') + print tName + "_SOURCES = $(srcdir)/" + t + print tName + "_LDADD = libiulib.la" +- print tName + "_CPPFLAGS = -I$(srcdir)/colib -I$(srcdir)/imgio -I$(srcdir)/imglib" ++ print tName + "_CPPFLAGS = $(AM_CPPFLAGS)" + + + --- iulib-0.4.orig/debian/patches/shared_library +++ iulib-0.4/debian/patches/shared_library @@ -0,0 +1,86 @@ +# Description: Create shared rather than static library +Index: iulib-0.4/genAM.py +=================================================================== +--- iulib-0.4.orig/genAM.py 2009-06-10 00:32:20.000000000 +0200 ++++ iulib-0.4/genAM.py 2010-01-19 23:03:16.000000000 +0100 +@@ -30,7 +30,7 @@ + includedir = ${prefix}/include/iulib + colibdir = ${prefix}/include/colib + +-lib_LIBRARIES = libiulib.a ++lib_LTLIBRARIES = libiulib.la + """ + + dirs = """ +@@ -39,7 +39,7 @@ + imgbits + """.split() + +-print "libiulib_a_SOURCES = ", ++print "libiulib_la_SOURCES = ", + for d in dirs: + print '\\' + for cc in glob.glob(d + "/*.cc"): +@@ -73,7 +73,7 @@ + for t in tests: + tName = os.path.basename(t)[:-3].replace('-','_') + print tName + "_SOURCES = $(srcdir)/" + t +- print tName + "_LDADD = libiulib.a" ++ print tName + "_LDADD = libiulib.la" + print tName + "_CPPFLAGS = -I$(srcdir)/colib -I$(srcdir)/imgio -I$(srcdir)/imglib" + + +@@ -82,35 +82,23 @@ + print """ + # conditionals + if have_sdl +- libiulib_a_SOURCES += $(srcdir)/utils/dgraphics.cc +- libiulib_a_SOURCES += $(srcdir)/utils/SDL_lines.cc ++ libiulib_la_SOURCES += $(srcdir)/utils/dgraphics.cc ++ libiulib_la_SOURCES += $(srcdir)/utils/SDL_lines.cc + include_HEADERS += $(srcdir)/utils/SDL_lines.h + else +- libiulib_a_SOURCES += $(srcdir)/utils/dgraphics_nosdl.cc ++ libiulib_la_SOURCES += $(srcdir)/utils/dgraphics_nosdl.cc + endif + + if have_vidio +- libiulib_a_SOURCES += $(srcdir)/vidio/vidio.cc ++ libiulib_la_SOURCES += $(srcdir)/vidio/vidio.cc + endif + + # We install it always because iulib.h always includes it. + include_HEADERS += $(srcdir)/vidio/vidio.h + + if have_v4l2 +- libiulib_a_SOURCES += $(srcdir)/vidio/v4l2cap.cc ++ libiulib_la_SOURCES += $(srcdir)/vidio/v4l2cap.cc + endif +- +-# make installation of colib a separate target +- +-install-colib: +- install -d $(colibdir) +- install $(colib_HEADERS) $(colibdir) +- +-install: all install-colib +- install -d $(includedir) +- install -d $(libdir) +- install $(include_HEADERS) $(includedir) +- install $(lib_LIBRARIES) $(libdir) + """ + + print +Index: iulib-0.4/configure.ac +=================================================================== +--- iulib-0.4.orig/configure.ac 2009-06-10 00:32:20.000000000 +0200 ++++ iulib-0.4/configure.ac 2010-01-19 22:28:30.000000000 +0100 +@@ -10,7 +10,7 @@ + + AC_PROG_CXX + AC_PROG_CC +-AC_PROG_RANLIB ++AM_PROG_LIBTOOL + + AC_HEADER_STDC + AC_HEADER_SYS_WAIT --- iulib-0.4.orig/debian/patches/series +++ iulib-0.4/debian/patches/series @@ -0,0 +1,3 @@ +version +shared_library +include_dirs --- iulib-0.4.orig/debian/patches/version +++ iulib-0.4/debian/patches/version @@ -0,0 +1,13 @@ +Index: iulib-0.4/configure.ac +=================================================================== +--- iulib-0.4.orig/configure.ac 2010-01-22 05:54:00.000000000 +0100 ++++ iulib-0.4/configure.ac 2010-01-22 05:54:05.000000000 +0100 +@@ -4,7 +4,7 @@ + } + + # -- Prelude -- +-AC_INIT(iulib, 0.3, ) ++AC_INIT(iulib, 0.4, ) + AM_INIT_AUTOMAKE([foreign]) + AC_CONFIG_SRCDIR([colib/colib.h]) + --- iulib-0.4.orig/debian/patches/destdir +++ iulib-0.4/debian/patches/destdir @@ -0,0 +1,49 @@ +# Correct $(DESTDIR) +Index: iulib/Makefile.am +=================================================================== +--- iulib.orig/Makefile.am 2009-05-03 22:57:56.000000000 +0200 ++++ iulib/Makefile.am 2009-05-03 22:58:24.000000000 +0200 +@@ -38,11 +38,11 @@ + # make installation of colib a separate target + + install-colib: +- install -d $(colibdir) +- install $(colib_HEADERS) $(colibdir) ++ install -d $(DESTDIR)$(colibdir) ++ install $(colib_HEADERS) $(DESTDIR)$(colibdir) + + install: all install-colib +- install -d $(includedir) +- install -d $(libdir) +- install $(include_HEADERS) $(includedir) +- install $(lib_LIBRARIES) $(libdir) +\ No newline at end of file ++ install -d $(DESTDIR)$(includedir) ++ install -d $(DESTDIR)$(libdir) ++ install $(include_HEADERS) $(DESTDIR)$(includedir) ++ install $(lib_LIBRARIES) $(DESTDIR)$(libdir) +Index: iulib/Makefile.in +=================================================================== +--- iulib.orig/Makefile.in 2009-05-03 22:58:30.000000000 +0200 ++++ iulib/Makefile.in 2009-05-03 22:58:45.000000000 +0200 +@@ -1092,14 +1092,14 @@ + # make installation of colib a separate target + + install-colib: +- install -d $(colibdir) +- install $(colib_HEADERS) $(colibdir) ++ install -d $(DESTDIR)$(colibdir) ++ install $(colib_HEADERS) $(DESTDIR)$(colibdir) + + install: all install-colib +- install -d $(includedir) +- install -d $(libdir) +- install $(include_HEADERS) $(includedir) +- install $(lib_LIBRARIES) $(libdir) ++ install -d $(DESTDIR)$(includedir) ++ install -d $(DESTDIR)$(libdir) ++ install $(include_HEADERS) $(DESTDIR)$(includedir) ++ install $(lib_LIBRARIES) $(DESTDIR)$(libdir) + # Tell versions [3.59,3.63) of GNU make to not export all variables. + # Otherwise a system limit (for SysV at least) may be exceeded. + .NOEXPORT: