--- adplay-1.6.orig/debian/control
+++ adplay-1.6/debian/control
@@ -0,0 +1,17 @@
+Source: adplay
+Section: sound
+Priority: optional
+Maintainer: Gürkan Sengün <gurkan@linuks.mine.nu>
+Build-Depends: debhelper (>= 5), dpatch, libadplug-dev, libasound2-dev [!kfreebsd-i386 !kfreebsd-amd64 !hurd-i386], libbinio-dev, libesd0-dev, libsdl-sound1.2-dev
+Standards-Version: 3.7.2
+
+Package: adplay
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: console-based OPL2 audio player
+ AdPlay is AdPlug's console-based frontend. AdPlug is a free, universal OPL2
+ audio playback library. AdPlay/UNIX supports the full range of AdPlug's file
+ format playback features. Despite this, at the moment, only emulated OPL2
+ output is supported by AdPlay, but this on a wide range of output devices.
+ .
+  Homepage: <http://adplug.sourceforge.net/>
--- adplay-1.6.orig/debian/patches/01-include.dpatch
+++ adplay-1.6/debian/patches/01-include.dpatch
@@ -0,0 +1,33 @@
+#!/bin/sh /usr/share/dpatch/dpatch-run
+## 01-include.dpatch by Daniel Baumann <daniel@debian.org>
+##
+## DP: Updates includes for libbinio 1.4.1.
+
+@DPATCH@
+
+diff -Naur adplay-1.4.orig/src/disk.cc adplay-1.4/src/disk.cc
+--- adplay-1.4.orig/src/disk.cc	2004-05-13 09:50:47.000000000 +0000
++++ adplay-1.4/src/disk.cc	2005-11-02 20:59:16.562601320 +0000
+@@ -21,8 +21,8 @@
+ #include <stdlib.h>
+ #include <stdio.h>
+ #include <string.h>
+-#include <binwrap.h>
+-#include <binfile.h>
++#include <libbinio/binwrap.h>
++#include <libbinio/binfile.h>
+ 
+ #include "defines.h"
+ #include "disk.h"
+diff -Naur adplay-1.4.orig/src/disk.h adplay-1.4/src/disk.h
+--- adplay-1.4.orig/src/disk.h	2004-05-13 09:50:47.000000000 +0000
++++ adplay-1.4/src/disk.h	2005-11-02 20:58:34.944928168 +0000
+@@ -20,7 +20,7 @@
+ #ifndef H_DISK
+ #define H_DISK
+ 
+-#include <binio.h>
++#include <libbinio/binio.h>
+ 
+ #include "output.h"
+ 
--- adplay-1.6.orig/debian/patches/00list
+++ adplay-1.6/debian/patches/00list
@@ -0,0 +1 @@
+01-include
--- adplay-1.6.orig/debian/changelog
+++ adplay-1.6/debian/changelog
@@ -0,0 +1,66 @@
+adplay (1.6-1) unstable; urgency=low
+
+  * New upstream version.
+
+ -- Gürkan Sengün <gurkan@linuks.mine.nu>  Sun, 22 Apr 2007 16:57:30 +0200
+
+adplay (1.5-6) unstable; urgency=low
+
+  * New maintainer. (Closes: #407626)
+
+ -- Gürkan Sengün <gurkan@linuks.mine.nu>  Tue, 17 Apr 2007 16:40:38 +0200
+
+adplay (1.5-5) unstable; urgency=low
+
+  * Orphaning package.
+
+ -- Daniel Baumann <daniel@debian.org>  Sat, 20 Jan 2007 10:05:00 +0100
+
+adplay (1.5-4) unstable; urgency=low
+
+  * Minor cleanups.
+
+ -- Daniel Baumann <daniel@debian.org>  Fri, 19 Jan 2007 10:04:00 +0100
+
+adplay (1.5-3) unstable; urgency=low
+
+  * Rebuild against fixed adplug.
+
+ -- Daniel Baumann <daniel@debian.org>  Sun, 17 Sep 2006 18:50:00 +0200
+
+adplay (1.5-2) unstable; urgency=low
+
+  * New email address.
+
+ -- Daniel Baumann <daniel@debian.org>  Thu,  6 Jul 2006 07:25:00 +0200
+
+adplay (1.5-1) unstable; urgency=low
+
+  * New upstream release.
+
+ -- Daniel Baumann <daniel.baumann@panthera-systems.net>  Sun, 25 Jun 2006 13:01:00 +0200
+
+adplay (1.4-4) unstable; urgency=low
+
+  * Adjusted Build-Depends for non-linux ports (Closes: #361462).
+
+ -- Daniel Baumann <daniel.baumann@panthera-systems.net>  Mon, 17 Apr 2006 21:22:00 +0100
+
+adplay (1.4-3) unstable; urgency=low
+
+  * Rebuild against the latest transition of libadplug.
+
+ -- Daniel Baumann <daniel.baumann@panthera-systems.net>  Fri, 25 Nov 2005 10:27:00 +0200
+
+adplay (1.4-2) unstable; urgency=low
+
+  * Added patch to update includes of new libbinio1c2 (Closes: #336762).
+  * Fixed depends on kfreebsd (Closes: #336850).
+
+ -- Daniel Baumann <daniel.baumann@panthera-systems.net>  Wed,  2 Nov 2005 21:50:00 +0100
+
+adplay (1.4-1) unstable; urgency=low
+
+  * Initial release.
+
+ -- Daniel Baumann <daniel.baumann@panthera-systems.net>  Wed, 11 May 2005 17:47:00 +0200
--- adplay-1.6.orig/debian/README.Debian
+++ adplay-1.6/debian/README.Debian
@@ -0,0 +1,11 @@
+adplay for Debian
+-----------------
+
+Links to adlib soundfile collections:
+
+  * <http://adlib.superfighter.com/>
+  * <http://www.chiptune.com/?menu=adlib>
+  * <http://www.chiptune.de/adlib.html>
+  * <http://ftp.atari.art.pl/stuff/mirror/chiptune.de/adlib/>
+
+ -- Daniel Baumann <daniel@debian.org>  Wed, 11 May 2005 17:47:00 +0200
--- adplay-1.6.orig/debian/copyright
+++ adplay-1.6/debian/copyright
@@ -0,0 +1,30 @@
+This package was debianized by Daniel Baumann <daniel@debian.org> on
+Wed, 11 May 2005 17:47:00 +0200.
+
+It was downloaded from <http://adplug.sourceforge.net/>.
+
+Upstream Author: Simon Peter <dn.tlp@gmx.net>
+
+License:
+
+	Copyright (C) 2001-2006 Simon Peter <dn.tlp@gmx.net>
+
+	This program is free software; you can redistribute it and/or modify
+	it under the terms of the GNU General Public License as published by
+	the Free Software Foundation; either version 2 of the License, or
+	(at your option) any later version.
+
+	This program is distributed in the hope that it will be useful,
+	but WITHOUT ANY WARRANTY; without even the implied warranty of
+	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+	GNU General Public License for more details.
+
+	You should have received a copy of the GNU Lesser General Public
+	License along with this library; if not, write to the Free Software
+	Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+
+On Debian systems, the complete text of the GNU General Public License
+can be found in /usr/share/common-licenses/GPL file.
+
+The Debian packaging is (C) 2005-2007, Daniel Baumann <daniel@debian.org> and
+is licensed under the GPL, see `/usr/share/common-licenses/GPL'.
--- adplay-1.6.orig/debian/rules
+++ adplay-1.6/debian/rules
@@ -0,0 +1,64 @@
+#!/usr/bin/make -f
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+include /usr/share/dpatch/dpatch.make
+
+CFLAGS = -Wall -g
+
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+	CFLAGS += -O0
+else
+	CFLAGS += -O2
+endif
+
+config.status: configure patch-stamp
+	dh_testdir
+	CFLAGS="$(CFLAGS)" ./configure --prefix=/usr --mandir=\$${prefix}/share/man
+
+build: build-stamp
+build-stamp: config.status
+	dh_testdir
+	$(MAKE)
+	touch build-stamp
+
+clean: unpatch
+	dh_testdir
+	dh_testroot
+	rm -f build-stamp
+	-$(MAKE) distclean
+ifneq "$(wildcard /usr/share/misc/config.sub)" ""
+	cp -f /usr/share/misc/config.sub config.sub
+endif
+ifneq "$(wildcard /usr/share/misc/config.guess)" ""
+	cp -f /usr/share/misc/config.guess config.guess
+endif
+	dh_clean
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_clean -k
+	dh_installdirs
+	$(MAKE) install DESTDIR=$(CURDIR)/debian/adplay
+
+binary-indep: build install
+
+binary-arch: build install
+	dh_testdir
+	dh_testroot
+	dh_installchangelogs ChangeLog
+	dh_installdocs
+	dh_install
+	dh_link
+	dh_strip
+	dh_compress
+	dh_fixperms
+	dh_installdeb
+	dh_shlibdeps
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install
--- adplay-1.6.orig/debian/compat
+++ adplay-1.6/debian/compat
@@ -0,0 +1 @@
+5
--- adplay-1.6.orig/debian/docs
+++ adplay-1.6/debian/docs
@@ -0,0 +1,4 @@
+AUTHORS
+NEWS
+README
+TODO
