diff --git a/debian/control b/debian/control
index 032e7fcc26ca4233586290324b7889b01ce9182b..afe3f7c1ce8127f1ac18be410c4e86a9912514dd 100644
--- a/debian/control
+++ b/debian/control
@@ -2,7 +2,7 @@ Source: ao
 Section: devel
 Priority: optional
 Maintainer: Christopher L Cheney <ccheney@debian.org>
-Build-Depends: debhelper
+Build-Depends: debhelper, libasound1-dev, libesd0-dev
 Standards-Version: 3.1.1
 
 Package: libao0-dev
diff --git a/debian/rules b/debian/rules
index 67821c2860d1e640bb80f7f34aa21217f6512209..e651a85f0f7c975ea6be5c5f2108a8f4a858a965 100755
--- a/debian/rules
+++ b/debian/rules
@@ -8,23 +8,13 @@
 # This is the debhelper compatability version to use.
 export DH_COMPAT=2
 
-# shared library versions, option 1
-version=0.0.0
-major=0
-#version=2.0.5
-#major=2
-# option 2, assuming the library is created as src/.libs/libfoo.so.2.0.5 or so
-#version=`ls src/.libs/lib*.so.* | \
-# awk '{if (match($$0,/[0-9]+\.[0-9]+\.[0-9]+$$/)) print substr($$0,RSTART)}'`
-#major=`ls src/.libs/lib*.so.* | \
-# awk '{if (match($$0,/\.so\.[0-9]+$$/)) print substr($$0,RSTART+4)}'`
-
 configure: configure-stamp
 configure-stamp:
 	dh_testdir
 	# Add here commands to configure the package.
-	
-	./autogen.sh --prefix=/usr
+
+	# If compiling cvs version change to ./autogen.sh --prefix=/usr
+	./configure --prefix=/usr
 
 	touch configure-stamp
 
@@ -63,38 +53,21 @@ binary-indep: build install
 
 # Build architecture-dependent files here.
 binary-arch: build install
-#	dh_testversion
 	dh_testdir
 	dh_testroot
-	#
-	# build libao${major} package by moving files from libao-dev
-	#
-#	dh_movefiles -plibao$(major)             \
-#	usr/lib/libao.so.$(major)        \
-#	usr/lib/libao.so.$(version)
 
 	dh_movefiles
-#	dh_installdebconf	
 	dh_installdocs
 	dh_installexamples
-#	dh_installmenu
-#	dh_installemacsen
-#	dh_installpam
-#	dh_installinit
-#	dh_installcron
 	dh_installmanpages
-#	dh_installinfo
 	dh_undocumented
 	dh_installchangelogs CHANGES
 	dh_link
 	dh_strip
 	dh_compress
 	dh_fixperms
-	# You may want to make some executables suid here.
-#	dh_suidregister
 	dh_makeshlibs
 	dh_installdeb
-#	dh_perl
 	dh_shlibdeps --exclude=/usr/lib/ao
 	dh_gencontrol
 	dh_md5sums