--- enscribe-0.1.0.orig/debian/rules
+++ enscribe-0.1.0/debian/rules
@@ -0,0 +1,67 @@
+#!/usr/bin/make -f
+# This file was originally written by Joey Hess and Craig Small.
+# As a special exception, when this file is copied by dh-make into a
+# dh-make output file, you may use that output file without restriction.
+# This special exception was added by Craig Small in version 0.37 of dh-make.
+# Modified by Nick Rusnov for enscribe
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+
+
+
+CFLAGS='-Wall -g'
+
+build: patch
+ dh_testdir
+ $(MAKE) CFLAGS=$(CFLAGS)
+ docbook-to-man debian/enscribe.sgml > enscribe.1
+
+clean: clean-patched unpatch
+clean-patched:
+ dh_testdir
+ dh_testroot
+
+ -$(MAKE) clean
+ -rm -f enscribe.1
+
+ dh_clean
+
+unpatch:
+ dpatch deapply-all
+ rm -rf patch-stamp debian/patched
+
+install: build
+ dh_testdir
+ dh_testroot
+ dh_clean -k
+ dh_installdirs
+
+ $(MAKE) install DESTDIR=$(CURDIR)/debian/enscribe
+
+
+binary-indep: build install
+# We have nothing to do by default.
+
+binary-arch: build install
+ dh_testdir
+ dh_testroot
+ dh_installchangelogs
+ dh_installdocs README
+ dh_installman enscribe.1
+ 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 configure
+
+patch:
+ dpatch apply-all
--- enscribe-0.1.0.orig/debian/enscribe.sgml
+++ enscribe-0.1.0/debian/enscribe.sgml
@@ -0,0 +1,60 @@
+Debian GNU/Linux">
+ DocBook">
+ SGML">
+]>
+
+
+
+
+
+
+ nickrusnov@debian.org
+
+
+ Nick
+ Rusnov
+
+ March 2005
+
+
+ enscribe
+ 1
+
+
+ enscribe
+ convert images to sound
+
+
+
+ enscribe
+ options
+ input image
+ output sound
+
+
+
+ DESCRIPTION
+ enscribe converts the scan-lines of the input image into frequency components and then using an inverse Fast Fourier Transform, converts them into sound. The left side of the image is the low frequency end, and the right is the high end, up to just under the Nyquist limit if you want it to. There are several tunable parameters as to how colour is converted into stereo sound and the frequency range to be used. This conversion can be used to create resilient audio watermarks or to simply create interesting sounds from images.
+
+
+
+ SEE ALSO
+ See enscribe --help for descriptions of the command line options.
+
+
+
+ BUGS
+ This manual page should be expanded to contain descriptions of the command-line options.
+
+
+
+ AUTHORS
+ enscribe was written by Jason Downer <jbd@cableone.net>.
+ This manual page was written by Nick Rusnov <nickrusnov@debian.org>, for the Debian GNU/Linux system (but may be used by others).
+
+
+
+
--- enscribe-0.1.0.orig/debian/copyright
+++ enscribe-0.1.0/debian/copyright
@@ -0,0 +1,13 @@
+This package was debianized by Nick Rusnov on Mon, 1 Nov 2004 14:52:24 -0800.
+
+It was downloaded from http://jbd.zayda.net/enscribe/
+
+Copyright:
+
+ Copyright (C) 2004
+ Jason Downer
+ jbd@cableone.net
+ http://jbd.zayda.net/enscribe/
+
+This package may be redistributed under the terms of the GNU GPL, version 2 or
+later, found on Debian systems in the file /usr/share/common-licenses/GPL
--- enscribe-0.1.0.orig/debian/compat
+++ enscribe-0.1.0/debian/compat
@@ -0,0 +1 @@
+4
--- enscribe-0.1.0.orig/debian/control
+++ enscribe-0.1.0/debian/control
@@ -0,0 +1,19 @@
+Source: enscribe
+Section: sound
+Priority: extra
+Maintainer: Ubuntu Developers
+XSBC-Original-Maintainer: Nick Rusnov
+Build-Depends: debhelper (>= 4.0.0), libgd2-xpm-dev | libgd-dev, libsndfile1-dev, pkg-config, docbook-to-man, dpatch
+Standards-Version: 3.7.2.0
+
+Package: enscribe
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: convert images into sounds
+ Enscribe converts the scanlines of the input image into frequency components
+ and then using an inverse Fast Fourier Transform, converts them into sound. The
+ left side of the image is the low frequency end, and the right is the high end,
+ up to just under the Nyquist limit if you want it to. There are several tunable
+ parameters as to how colour is converted into stereo sound and the frequency
+ range to be used. This conversion can be used to create resilient audio
+ watermarks or to simply create interesting sounds from images.
--- enscribe-0.1.0.orig/debian/changelog
+++ enscribe-0.1.0/debian/changelog
@@ -0,0 +1,70 @@
+enscribe (0.1.0-1.1ubuntu2) saucy; urgency=low
+
+ * Rebuild for libgd3.
+
+ -- Colin Watson Mon, 20 May 2013 00:39:50 +0100
+
+enscribe (0.1.0-1.1ubuntu1) oneiric; urgency=low
+
+ * debian/patches/01-makefile.dpatch:
+ - Refresh patch, reorder libraries to fix FTBFS with ld --as-needed
+ (LP: #770933) (Closes: #638843)
+
+ -- Angel Abad Mon, 22 Aug 2011 14:15:42 +0200
+
+enscribe (0.1.0-1.1) unstable; urgency=low
+
+ * Non-maintainer upload.
+ * Fix "FTBFS in squeeze: Nonexistent build-dependency: 'libgd-dev'":
+ switch order of libgd-dev | libgd2-xpm-dev to put the real package before
+ the virtual one (closes: #595836).
+
+ -- gregor herrmann Sun, 19 Sep 2010 15:48:09 +0200
+
+enscribe (0.1.0-1) unstable; urgency=low
+
+ * New upstream version
+ - Adds audio mask feature.
+ - iFFT blocksize can go to 7 (65536)
+ * repack source to remove upstream binary
+ * added pathes/02-FFTblocksizenorm - normalizes the two FFT blocksize
+ arguments (upstream set one to be able to go to 7, but not the
+ other, the are the same now).
+
+ -- Nick Rusnov Mon, 10 Aug 2009 20:34:16 -0700
+
+enscribe (0.0.4-3) unstable; urgency=low
+
+ * Ack NMU.
+ * Bump standards version to 3.7.2.0.
+ * Fix control to match override (sound-extra).
+
+ -- Nick Rusnov Tue, 27 Feb 2007 14:32:30 -0800
+
+enscribe (0.0.4-2.2) unstable; urgency=low
+
+ * Non-maintainer upload.
+ * Build-depend on libgd2-noxpm-dev (Closes: #347916).
+
+ -- Luk Claes Fri, 13 Jan 2006 23:24:27 +0100
+
+enscribe (0.0.4-2.1) unstable; urgency=high
+
+ * Non-maintainer upload.
+ * Build-depend on libgd2-xpm-dev (Closes: #343912).
+
+ -- Luk Claes Tue, 27 Dec 2005 19:33:44 +0100
+
+enscribe (0.0.4-2) unstable; urgency=low
+
+ * Durr. Adding docbook-to-man and dpatch to dependencies. Sorry for the
+ sloppy. (Closes: #303472)
+
+ -- Nick Rusnov Wed, 6 Apr 2005 15:00:22 -0700
+
+enscribe (0.0.4-1) unstable; urgency=low
+
+ * Initial Release. (Closes: #273256)
+
+ -- Nick Rusnov Mon, 1 Nov 2004 14:52:24 -0800
+
--- enscribe-0.1.0.orig/debian/dirs
+++ enscribe-0.1.0/debian/dirs
@@ -0,0 +1,2 @@
+usr/bin
+usr/sbin
--- enscribe-0.1.0.orig/debian/patches/01-makefile.dpatch
+++ enscribe-0.1.0/debian/patches/01-makefile.dpatch
@@ -0,0 +1,49 @@
+#! /bin/sh -e
+## 01-makefile.dpatch by Nick Rusnov
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Add the required functions to makefile, etc.
+
+if [ $# -lt 1 ]; then
+ echo "`basename $0`: script expects -patch|-unpatch as argument" >&2
+ exit 1
+fi
+
+[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
+patch_opts="${patch_opts:--f --no-backup-if-mismatch} ${2:+-d $2}"
+
+case "$1" in
+ -patch) patch -p1 ${patch_opts} < $0;;
+ -unpatch) patch -R -p1 ${patch_opts} < $0;;
+ *)
+ echo "`basename $0`: script expects -patch|-unpatch as argument" >&2
+ exit 1;;
+esac
+
+exit 0
+
+@DPATCH@
+diff -udr enscribe-0.0.4/makefile enscribe-0.0.4-makefilepatch/makefile
+--- enscribe-0.0.4/makefile 2004-07-04 12:49:06.000000000 -0700
++++ enscribe-0.0.4-makefilepatch/makefile 2004-11-01 15:44:55.000000000 -0800
+@@ -1,10 +1,15 @@
+ #No nonsense makefile
+ #Make sure you have libgd and libgd-devel installed!
+
+-all:
+- PKG_CONFIG_PATH=$(PKG_CONFIG_PATH):/usr/local/lib/pkgconfig;
+- gcc `pkg-config --cflags --libs sndfile` -Wall -o enscribe enscribe.c -lgd -lpng -lz -ljpeg -lfreetype -lm
++DESTDIR=/
++CFLAGS=-Wall
+
+-install:
+- install enscribe /usr/local/bin/enscribe
++all: enscribe
++enscribe:
++ $(CC) $(CFLAGS) `pkg-config --cflags sndfile` -o enscribe enscribe.c -lgd -lm `pkg-config --libs sndfile`
+
++install: enscribe
++ install -D enscribe $(DESTDIR)/usr/bin/enscribe
++
++clean:
++ rm -f enscribe
--- enscribe-0.1.0.orig/debian/patches/02-FFTblocksizenorm.dpatch
+++ enscribe-0.1.0/debian/patches/02-FFTblocksizenorm.dpatch
@@ -0,0 +1,50 @@
+#! /bin/sh -e
+## 02-FFTblocksizenorm.dpatch by Nick Rusnov
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Normalize the two FFT blocksize arguments
+
+if [ $# -lt 1 ]; then
+ echo "`basename $0`: script expects -patch|-unpatch as argument" >&2
+ exit 1
+fi
+
+[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
+patch_opts="${patch_opts:--f --no-backup-if-mismatch} ${2:+-d $2}"
+
+case "$1" in
+ -patch) patch -p1 ${patch_opts} < $0;;
+ -unpatch) patch -R -p1 ${patch_opts} < $0;;
+ *)
+ echo "`basename $0`: script expects -patch|-unpatch as argument" >&2
+ exit 1;;
+esac
+
+exit 0
+
+@DPATCH@
+diff -udr enscribe-0.1.0-orig/enscribe.c enscribe-0.1.0/enscribe.c
+--- enscribe-0.1.0-orig/enscribe.c 2009-08-10 20:52:16.000000000 -0700
++++ enscribe-0.1.0/enscribe.c 2009-08-10 20:58:28.000000000 -0700
+@@ -195,6 +195,9 @@
+ printf(" 2 = 2048\n");
+ printf(" 3 = 4096\n");
+ printf(" 4 = 8192\n");
++ printf(" 5 = 16384\n");
++ printf(" 6 = 32768\n");
++ printf(" 7 = 65536\n");
+ printf("\n");
+ // printf(" -t text Print text instead of image\n");
+ // printf(" -fs=[font size] Sets text font size (0 to 4)\n");
+@@ -488,9 +491,9 @@
+ {
+ strncpy(arg,&(argv[i][6]),255);
+ j=atoi(arg);
+- if ((j<0) || (j>4))
++ if ((j<0) || (j>7))
+ {
+- fprintf(stderr,"Error: You need to specify a transform size between 0 and 4.\n");
++ fprintf(stderr,"Error: You need to specify a transform size between 0 and 7.\n");
+ exit(BAD_ARGS);
+ }
+ else
--- enscribe-0.1.0.orig/debian/patches/00list
+++ enscribe-0.1.0/debian/patches/00list
@@ -0,0 +1,2 @@
+01-makefile.dpatch
+02-FFTblocksizenorm.dpatch