--- ocaml-mad-0.3.2.orig/debian/libmad-ocaml.install.in
+++ ocaml-mad-0.3.2/debian/libmad-ocaml.install.in
@@ -0,0 +1 @@
+usr/lib/ocaml/@OCamlABI@/mad/dllmad_stubs.so    usr/lib/ocaml/@OCamlABI@/stublibs/
--- ocaml-mad-0.3.2.orig/debian/control
+++ ocaml-mad-0.3.2/debian/control
@@ -0,0 +1,44 @@
+Source: ocaml-mad
+Section: devel
+Priority: optional
+Maintainer:Liquidsoap Debian Packaging <savonet-debian@lists.sourceforge.net>
+Uploaders: Romain Beauxis <toots@rastageeks.org>, Samuel Mimram <smimram@debian.org> 
+Build-Depends: debhelper (>> 4.0.0), dpkg-dev (>= 1.13.19), libmad0-dev, ocaml-nox (>= 3.10.1), ocaml-findlib (>= 1.2.1-4~bpo40+3), pkg-config
+Standards-Version: 3.7.3
+Vcs-Svn: svn://svn.debian.org/svn/pkg-ocaml-maint/trunk/packages/ocaml-mad/trunk
+Vcs-Browser: http://svn.debian.org/wsvn/pkg-ocaml-maint/trunk/packages/ocaml-mad/trunk/
+
+Package: libmad-ocaml
+Section: libs
+Architecture: any
+Depends: ocaml-base-nox-${F:OCamlABI}, ${shlibs:Depends}
+Description: OCaml bindings for the MAD library
+ This OCaml library interfaces the MAD C library to decode MPEG files.
+ The MAD library currently only supports the MPEG 1 standard, but fully
+ implements all three audio layers (Layer I, Layer II, and Layer III, the
+ latter often colloquially known as MP3.)
+ .
+ MAD has the following special features:
+   - 100% fixed-point (integer) computation
+   - completely new implementation based on the ISO/IEC 11172-3 standard
+   - distributed under the terms of the GNU General Public License (GPL)
+ .
+ This package contains only the shared runtime stub libraries.
+
+Package: libmad-ocaml-dev
+Section: libdevel
+Architecture: any
+Depends: ocaml-nox-${F:OCamlABI}, libmad0-dev, libmad-ocaml (= ${binary:Version})
+Description: OCaml bindings for the MAD library
+ This OCaml library interfaces the MAD C library to decode MPEG files.
+ The MAD library currently only supports the MPEG 1 standard, but fully
+ implements all three audio layers (Layer I, Layer II, and Layer III, the
+ latter often colloquially known as MP3.)
+ .
+ MAD has the following special features:
+   - 100% fixed-point (integer) computation
+   - completely new implementation based on the ISO/IEC 11172-3 standard
+   - distributed under the terms of the GNU General Public License (GPL)
+ .
+ This package contains all the development stuff you need to use ocaml-mad
+ in your programs.
--- ocaml-mad-0.3.2.orig/debian/rules
+++ ocaml-mad-0.3.2/debian/rules
@@ -0,0 +1,71 @@
+#!/usr/bin/make -f
+# Sample debian/rules that uses debhelper.
+# GNU copyright 1997 to 1999 by Joey Hess.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+OCAMLABI := $(shell ocamlc -version)
+OFILES := $(patsubst %.in,%,$(wildcard debian/*.in))
+
+DESTDIR = $(CURDIR)/debian/tmp$(shell ocamlc -where)
+
+CFLAGS = "-O2 -g -fPIC"
+
+ocamlinit:
+	for f in $(OFILES); do sed -e 's/@OCamlABI@/$(OCAMLABI)/g' $$f.in > $$f; done
+
+config.status: configure
+	dh_testdir
+	./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info
+
+build: ocamlinit build-stamp
+build-stamp: config.status
+	dh_testdir
+
+	$(MAKE) CFLAGS=$(CFLAGS)
+
+	touch build-stamp
+
+clean: 
+	dh_testdir
+	dh_testroot
+	rm -f build-stamp
+
+	[ ! -f Makefile ] || $(MAKE) distclean
+	rm -f config.log config.status
+
+	dh_clean
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_clean -k
+	dh_installdirs
+
+	mkdir -p $(DESTDIR)
+	$(MAKE) install OCAMLFIND_DESTDIR=$(DESTDIR) OCAMLFIND_LDCONF=ignore
+	$(MAKE) doc
+
+binary-arch: build install
+	dh_testdir
+	dh_testroot
+	dh_installchangelogs CHANGES
+	dh_installdocs
+	dh_installexamples
+	dh_install --sourcedir=debian/tmp --list-missing
+	dh_link
+	dh_strip
+	dh_compress
+	dh_fixperms
+	dh_makeshlibs
+	dh_installdeb
+	dh_shlibdeps
+	dh_gencontrol -- -VF:OCamlABI="$(OCAMLABI)"
+	dh_md5sums
+	dh_builddeb
+
+binary-indep:
+
+binary: binary-arch
+.PHONY: build clean binary-indep binary-arch binary install ocamlinit
--- ocaml-mad-0.3.2.orig/debian/watch
+++ ocaml-mad-0.3.2/debian/watch
@@ -0,0 +1,3 @@
+version=3
+
+http://sf.net/savonet/ocaml-mad-([0-9\.]*)\.tar\.gz debian uupdate
--- ocaml-mad-0.3.2.orig/debian/svn-deblayout
+++ ocaml-mad-0.3.2/debian/svn-deblayout
@@ -0,0 +1,3 @@
+origDir=../upstream
+origUrl=svn+ssh://svn.debian.org/svn/pkg-ocaml-maint/trunk/packages/ocaml-mad/upstream
+tagsUrl=svn+ssh://svn.debian.org/svn/pkg-ocaml-maint/tags/packages/ocaml-mad
--- ocaml-mad-0.3.2.orig/debian/libmad-ocaml-dev.docs
+++ ocaml-mad-0.3.2/debian/libmad-ocaml-dev.docs
@@ -0,0 +1,2 @@
+README
+doc/html
--- ocaml-mad-0.3.2.orig/debian/changelog
+++ ocaml-mad-0.3.2/debian/changelog
@@ -0,0 +1,142 @@
+ocaml-mad (0.3.2-4~bpo40+2) etch-backports; urgency=low
+
+  * Tightened build dependencies on ocaml-nox and ocaml-findlib 
+
+ -- Romain Beauxis <toots@rastageeks.org>  Tue, 13 May 2008 16:01:21 +0200
+
+ocaml-mad (0.3.2-4~bpo40+1) etch-backports; urgency=low
+
+  * Rebuild for etch-backports.
+
+ -- Romain Beauxis <toots@rastageeks.org>  Mon, 31 Mar 2008 20:53:29 +0100
+
+ocaml-mad (0.3.2-4) unstable; urgency=high
+
+  * Update fixed package to sid
+  * Setting urgency to high to propagate quickly to testing.
+
+ -- Romain Beauxis <toots@rastageeks.org>  Wed, 19 Mar 2008 10:58:10 +0100
+
+ocaml-mad (0.3.2-3) experimental; urgency=low
+
+  [ Stefano Zacchiroli ]
+  * fix vcs-svn field to point just above the debian/ dir
+
+  [ Romain Beauxis ]
+  * Added missing pkg-config dependency
+  Closes: #471620
+  * Updated standards to 3.7.3 (no changes)
+  * Setting urgency to high to ease ocaml transition to 3.10.1
+  * Set maintainer field to Liquidsoap packaging team, 
+    added Sam and me as uploaders
+  * Removed unused dpatch support
+
+ -- Romain Beauxis <toots@rastageeks.org>  Wed, 19 Mar 2008 10:32:43 +0100
+
+ocaml-mad (0.3.2-2) unstable; urgency=low
+
+  * Upload to unstable.
+
+ -- Samuel Mimram <smimram@debian.org>  Fri, 16 Nov 2007 19:29:26 +0000
+
+ocaml-mad (0.3.2-1) experimental; urgency=low
+
+  * New upstream release.
+  * Removed link.dpatch, integrated upstream.
+
+ -- Samuel Mimram <smimram@debian.org>  Mon, 12 Nov 2007 23:15:05 +0000
+
+ocaml-mad (0.3.1-2) unstable; urgency=low
+
+  * Rebuild with OCaml 3.10.
+  * Using dpatch to handle patches.
+  * Added link.dpatch to correcly link, closes: #433208.
+
+ -- Samuel Mimram <smimram@debian.org>  Sat, 08 Sep 2007 14:10:33 +0200
+
+ocaml-mad (0.3.1-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Samuel Mimram <smimram@debian.org>  Fri, 22 Jun 2007 19:32:08 +0200
+
+ocaml-mad (0.3.0-2) unstable; urgency=low
+
+  * Upload to unstable.
+
+ -- Samuel Mimram <smimram@debian.org>  Wed, 11 Apr 2007 16:59:00 +0200
+
+ocaml-mad (0.3.0-1) experimental; urgency=low
+
+  * New upstream release.
+
+ -- Samuel Mimram <smimram@debian.org>  Fri, 16 Mar 2007 18:24:50 +0100
+
+ocaml-mad (0.2.1-1) unstable; urgency=low
+
+  * Messed up the last upload: this package shouldn't be native.
+
+ -- Samuel Mimram <smimram@debian.org>  Mon, 20 Nov 2006 23:55:47 +0100
+
+ocaml-mad (0.2.1) unstable; urgency=low
+
+  * New upstream release.
+  * Made the package binNMU-safe.
+
+ -- Samuel Mimram <smimram@debian.org>  Mon, 20 Nov 2006 20:40:02 +0100
+
+ocaml-mad (0.2.0-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Samuel Mimram <smimram@debian.org>  Fri,  7 Jul 2006 08:46:50 +0000
+
+ocaml-mad (0.1.3-4) unstable; urgency=low
+
+  * Rebuild with OCaml 3.09.2.
+  * Updated standards version to 3.7.2, no changes needed.
+
+ -- Samuel Mimram <smimram@debian.org>  Thu, 18 May 2006 22:36:39 +0000
+
+ocaml-mad (0.1.3-3) unstable; urgency=low
+
+  * Rebuild with OCaml 3.09.1.
+
+ -- Samuel Mimram <smimram@debian.org>  Sun,  8 Jan 2006 19:37:25 +0100
+
+ocaml-mad (0.1.3-2) unstable; urgency=low
+
+  * Rebuild with OCaml 3.09.0.
+  * No longer hardcoding OCaml's ABI in the package.
+  * Updated standards version to 3.6.2, no changes needed.
+  * Updated watch file.
+
+ -- Samuel Mimram <smimram@debian.org>  Sat, 26 Nov 2005 11:51:16 +0100
+
+ocaml-mad (0.1.3-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Samuel Mimram <smimram@debian.org>  Thu, 28 Apr 2005 20:16:57 +0200
+
+ocaml-mad (0.1.2-3) unstable; urgency=low
+
+  * Rebuilding with OCaml 3.08.3.
+  * Updated my email.
+
+ -- Samuel Mimram <smimram@debian.org>  Tue, 22 Mar 2005 17:09:50 +0100
+
+ocaml-mad (0.1.2-2) unstable; urgency=low
+
+  * Added -fPIC to the CFLAGS.
+  * Added a watch file.
+  * The -dev does not need to depend on ocaml-findlib.
+  * Test for a native compiler is handled by the configure.
+
+ -- Samuel Mimram <samuel.mimram@ens-lyon.org>  Sun,  8 Aug 2004 18:27:13 +0200
+
+ocaml-mad (0.1.2-1) unstable; urgency=low
+
+  * Initial release, closes: #256924.
+
+ -- Samuel Mimram <samuel.mimram@ens-lyon.org>  Tue,  1 Jun 2004 14:52:33 +0200
--- ocaml-mad-0.3.2.orig/debian/compat
+++ ocaml-mad-0.3.2/debian/compat
@@ -0,0 +1 @@
+4
--- ocaml-mad-0.3.2.orig/debian/libmad-ocaml-dev.install.in
+++ ocaml-mad-0.3.2/debian/libmad-ocaml-dev.install.in
@@ -0,0 +1,4 @@
+usr/lib/ocaml/@OCamlABI@/mad/META
+usr/lib/ocaml/@OCamlABI@/mad/*.a
+usr/lib/ocaml/@OCamlABI@/mad/*.cm*
+usr/lib/ocaml/@OCamlABI@/mad/*.ml*
--- ocaml-mad-0.3.2.orig/debian/libmad-ocaml-dev.examples
+++ ocaml-mad-0.3.2/debian/libmad-ocaml-dev.examples
@@ -0,0 +1 @@
+examples/*
--- ocaml-mad-0.3.2.orig/debian/libmad-ocaml-dev.doc-base
+++ ocaml-mad-0.3.2/debian/libmad-ocaml-dev.doc-base
@@ -0,0 +1,9 @@
+Document: libmad-ocaml-dev
+Title: OCaml Mad module documentation
+Author: Samuel Mimram
+Abstract: Documentation of the OCaml Mad module
+Section: Programming/OCaml
+
+Format: HTML
+Index: /usr/share/doc/libmad-ocaml-dev/html/index.html
+Files: /usr/share/doc/libmad-ocaml-dev/html/*
--- ocaml-mad-0.3.2.orig/debian/copyright
+++ ocaml-mad-0.3.2/debian/copyright
@@ -0,0 +1,15 @@
+This package was debianized by Samuel Mimram <samuel.mimram@ens-lyon.org> on
+Sun,  2 Nov 2003 20:18:05 +0100.
+
+It was downloaded from http://savonet.sourceforge.net/
+
+Upstream Author: The Savonet Team <savonet-devl@lists.sourceforge.net>
+
+Copyright (c) 2003-2004 The Savonet Team.
+
+The ocaml-mad library is free software; you can redistribute it and/or
+modify it under the terms of the GNU General Public License
+(GPL) as published by the Free Software Foundation; either version
+2 of the License, or (at your option) any later version.
+
+The license text is contained in /usr/share/common-licenses/GPL.
