--- performous-0.3.0.orig/debian/performous.manpages
+++ performous-0.3.0/debian/performous.manpages
@@ -0,0 +1 @@
+debian/h2m/performous.6
--- performous-0.3.0.orig/debian/copyright
+++ performous-0.3.0/debian/copyright
@@ -0,0 +1,49 @@
+This package was debianized by Miriam Ruiz <little_miry@yahoo.es> on
+Wed, 21 Feb 2007 22:17:24 +0000.
+
+It was downloaded from http://sourceforge.net/projects/performous/
+
+Upstream Authors:
+
+    Vincent Le Ligeour  <yoda-jm@users.sourceforge.net>
+    Lasse KÃ¤rkkÃ¤inen  <tronic+ndrm@trn.iki.fi>
+
+    See Authors.txt for the full list of authors
+
+Copyright:
+
+    Copyright (c) 2006-2008 Performous Developers
+
+cmake/Modules/*:
+
+    Copyright (c) 2008 Andreas Schneider <mail@cynapses.org>
+    Copyright (c) 2007 Wengo
+    Copyright (c) 2007 Mike Jackson
+    Copyright (c) 2008 Andreas Pakulat <apaku@gmx.de>
+
+libda/plugins/plugin.hpp:
+
+    Copyright (c) 2007-2008 Lasse Karkkainen
+
+License:
+
+   This package 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 package 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 General Public License
+   along with this package; 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'.
+
+The Debian packaging is (c) 2007-2008, Miriam Ruiz <little_miry@yahoo.es>
+and is licensed under the same license as the program, see above.
+
--- performous-0.3.0.orig/debian/changelog
+++ performous-0.3.0/debian/changelog
@@ -0,0 +1,108 @@
+performous (0.3.0-2~bpo50+1) lenny-backports; urgency=low
+
+  * Compiled in Lenny for the first upload to Debian backports.
+  * Added myself to the uploaders list
+
+ -- JosÃ© L. Redrejo RodrÃ­guez <jredrejo@debian.org>  Thu, 25 Jun 2009 10:17:55 +0200
+
+performous (0.3.0-2) unstable; urgency=low
+
+  [ Ansgar Burchardt ]
+  * debian/copyright: Fix typo.
+
+  [ Miriam Ruiz ]
+  * Uploaded to sid
+  * Do not depend on the dependencies of the plugins
+  * Recommend the dependencies of the ALSA plugin
+
+ -- Miriam Ruiz <little_miry@yahoo.es>  Tue, 23 Dec 2008 22:19:45 +0100
+
+performous (0.3.0-1) experimental; urgency=low
+
+  * UltraStar NG is now called Performous. Package renamed to performous.
+  * New homepage: http://performous.org/
+  * New building system: cmake
+  * Updated build dependencies
+  * Removed ultrastar-ng-xine and ultrastar-ng-gstreamer packages
+  * Added package performous-dbg with the debugging symbols
+
+ -- Miriam Ruiz <little_miry@yahoo.es>  Tue, 11 Nov 2008 21:11:40 +0100
+
+ultrastar-ng (0.2.1-1) unstable; urgency=low
+
+  [ Miriam Ruiz ]
+  * New Upstream Release (Closes: #453132)
+  * Removed unneeded patches
+  * Added packages to build deps:
+    + libtool
+    + portaudio19-dev | portaudio-dev
+    + libboost-dev, libboost-thread-dev, libboost-serialization-dev
+    + libboost-program-options-dev, libboost-regex-dev
+  * Moved shared objects to private directory: /usr/lib/ultraster-ng
+  * Added rpath to binaries to search for shared objects in the private dir
+  * Uses ultrastar-ng-gstreamer as default, instead of ultrastar-ng-xine,
+    since there are significantly less issues with GStreamer.
+  * Added patch to fix upstream desktop file
+  * Added -Wl,-as-needed to LDFLAGS
+  * Replaced fftw3-dev by libfftw3-dev in build dependencies.
+  * Standards-Version upgraded to 3.7.3
+
+  [ Mario Bonino ]
+  * Fixed data/Makefile.am to install .desktop file and icon
+
+  [ Jon Dowland ]
+  * add Homepage: control field to source stanza
+  * fix a bashism in debian/rules (Closes: #478634)
+
+  [ Ansgar Burchardt ]
+  * debian/control: Change XS-Vcs-* to Vcs-*
+  * Remove Homepage semi-field from description
+
+ -- Miriam Ruiz <little_miry@yahoo.es>  Sat, 07 Jun 2008 16:43:18 +0200
+
+ultrastar-ng (0.1.4-2) unstable; urgency=low
+
+  [ Miriam Ruiz ]
+  * Added patch to support previewing ogg files with xine (Closes: #430531)
+  * Added patch to check that SDL is properly initialized (Closes: #427386)
+  * Added patch to prevent incorrect singing screens in songs with wrong
+    #BACKGROUND or #VIDEO headers (Closes: #435383)
+
+  [ Jon Dowland ]
+  * update menu section to "Games/Action" for menu policy transition.
+    Thanks Linas Å½virblis.
+
+  [ Cyril Brulebois ]
+  * Added XS-Vcs-Svn and XS-Vcs-Browser fields in the control file.
+
+ -- Miriam Ruiz <little_miry@yahoo.es>  Wed, 01 Aug 2007 08:52:08 +0000
+
+ultrastar-ng (0.1.4-1) unstable; urgency=low
+
+  * Build-Depends on libcairo2-dev (>= 1.2)
+  * Modified rules so that the icon and desktop files appear in both flavours
+    of the program.
+  * Added rule-flavour type of targets in debian/rules, so that it is
+    easier to maintain.
+  * New Upstream Release.
+    + Added difficulty level
+    + Added to-start cursor
+    + Added audio pause/seek
+    + Added practice screen
+    + Added ingame fullscreen support
+    + Rewrote of the lyrics parsing and screen API
+    + Added manpage, desktop and pixmap files
+    + Fixed latest unscaled graphics
+    + Bufixes and memleak fixes
+  * Reconfigure autotools files before running configure.
+    Added build dependencies: autoconf, automake1.10
+  * Added patch to avoid rebuilding the man page, not working properly.
+
+ -- Miriam Ruiz <little_miry@yahoo.es>  Sat, 19 May 2007 13:27:05 +0000
+
+ultrastar-ng (0.1.3-1) unstable; urgency=low
+
+  * Initial release (Closes: #411708)
+
+ -- Miriam Ruiz <little_miry@yahoo.es>  Wed, 21 Feb 2007 22:17:24 +0000
+
--- performous-0.3.0.orig/debian/control
+++ performous-0.3.0/debian/control
@@ -0,0 +1,52 @@
+Source: performous
+Section: games
+Priority: extra
+Maintainer: Debian Games Team <pkg-games-devel@lists.alioth.debian.org>
+Uploaders: Miriam Ruiz <little_miry@yahoo.es>, JosÃ© L. Redrejo RodrÃ­guez <jredrejo@debian.org>
+Build-Depends: debhelper (>= 5.0.51), cmake (>= 2.4), quilt, help2man, 
+ libgl1-mesa-dev, libsdl1.2-dev, libcairo2-dev, librsvg2-dev,
+ libboost-thread-dev, libboost-serialization-dev, libboost-program-options-dev,
+ libboost-regex-dev, libboost-filesystem-dev,
+ libavcodec-dev, libavformat-dev, libswscale-dev,
+ libmagick++9-dev, libsamplerate0-dev, libxml++2.6-dev,
+ libasound2-dev, libjack-dev, libpulse-dev, portaudio19-dev,
+ libgstreamer0.10-dev
+Standards-Version: 3.8.0
+Vcs-Svn: svn://svn.debian.org/svn/pkg-games/packages/trunk/ultrastar-ng/
+Vcs-Browser: http://svn.debian.org/wsvn/pkg-games/packages/trunk/ultrastar-ng/?op=log
+Homepage: http://performous.org/
+
+Package: performous
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Recommends: ${alsalibs:Recommends}
+Conflicts: ultrastar-ng (<< 0.3.0)
+Replaces: ultrastar-ng (<< 0.3.0)
+Provides: ultrastar-ng
+Description: karaoke game that allows user supplied songs
+ Performous is a karaoke program which is based off and looks similar to
+ the Singstar game for PS2. Performous is based on UltraStar and allows
+ you to add your own songs in the forms of mp3s along with a song text
+ and a music video file. It was previously called UltraStar NG.
+
+Package: performous-dbg
+Architecture: any
+Depends: performous (= ${binary:Version})
+Description: karaoke game that allows user supplied songs
+ Performous is a karaoke program which is based off and looks similar to
+ the Singstar game for PS2. Performous is based on UltraStar and allows
+ you to add your own songs in the forms of mp3s along with a song text
+ and a music video file. It was previously called UltraStar NG.
+ .
+ This package includes the debugging symbols.
+
+Package: ultrastar-ng
+Architecture: all
+Depends: performous
+Description: karaoke game - transitional package
+ Performous is a karaoke program which is based off and looks similar to
+ the Singstar game for PS2. Performous is based on UltraStar and allows
+ you to add your own songs in the forms of mp3s along with a song text
+ and a music video file. It was previously called UltraStar NG.
+ .
+ This is a transitional package to provide a smooth transition
--- performous-0.3.0.orig/debian/README.Debian
+++ performous-0.3.0/debian/README.Debian
@@ -0,0 +1,38 @@
+performous for Debian
+---------------------
+
+You can find songs online by Google or at your favorite Torrent sites. We
+recommend starting with the ultrastar-songs package that can be download from
+our project website. You need to extract that tarball into ~/.ultrastar/ or to
+one of the other folders that the game searches songs for. Run ultrastar from
+a terminal to see the list of folders.
+
+If your songs are not in UTF-8 (most songs aren't yet), please do:
+        recode CP1252..UTF-8 songs/*/*.txt
+
+You can use iconv instead, if you prefer:
+	iconv --from-code=ISO-8859-1 --to-code=UTF-8 source.txt > dest.txt
+
+For converting a whole directory of songs to UTF-8 with iconv:
+	for i in *; do echo $i; \
+	mv "$i/$i.txt" "$i/$i.ISO-8859-1.txt"; \
+	iconv --from-code=ISO-8859-1 --to-code=UTF-8 "$i/$i.ISO-8859-1.txt" \
+		> "$i/$i.txt"; \
+	done
+
+After that make sure that all the characters display correctly. If they don't,
+you need to guess which charset the original used (instead of CP1252) and retry.
+
+If you want to improve the game, join IRC channel #Performous (Freenode) and
+you'll get SVN write access.
+
+For more (up to date) information, see http://performous.org/
+
+Songs are searched for in the following directories:
+    $HOME/.ultrastar/songs/
+    /usr/local/share/games/ultrastar/songs/
+    /usr/local/share/ultrastar/songs/
+    /usr/share/games/ultrastar/songs/
+    /usr/share/ultrastar/songs/
+
+ -- Miriam Ruiz <little_miry@yahoo.es>  Tue, 11 Nov 2008 21:11:40 +0100
--- performous-0.3.0.orig/debian/rules
+++ performous-0.3.0/debian/rules
@@ -0,0 +1,97 @@
+#!/usr/bin/make -f
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+# This has to be exported to make some magic below work.
+export DH_OPTIONS
+
+BUILD_TREE=$(CURDIR)/build-tree
+
+configure: configure-stamp
+configure-stamp:
+	dh_testdir
+	QUILT_PATCHES=debian/patches quilt push -a || test $$? = 2
+	
+	# Perform an out-of-tree build to keep a clean source tree
+	mkdir $(BUILD_TREE)
+	cd $(BUILD_TREE); cmake .. \
+		-DCMAKE_INSTALL_PREFIX:STRING="/usr" \
+		-DCMAKE_C_FLAGS:STRING="$(CFLAGS)" 
+	touch $@
+
+build: build-stamp
+build-stamp: configure-stamp 
+	dh_testdir
+	cd $(BUILD_TREE); $(MAKE)
+	touch $@
+
+clean: configure
+	dh_testdir
+	dh_testroot
+	QUILT_PATCHES=debian/patches quilt pop -a -R || test $$? = 2
+	rm -f build-stamp configure-stamp
+	if [ -d $(BUILD_TREE) ]; then cd $(BUILD_TREE); $(MAKE) clean; fi
+	rm -fr $(BUILD_TREE)
+	$(MAKE) -C debian/h2m clean
+	rm -fr .pc
+	dh_clean 
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_clean -k
+	dh_installdirs
+	cd $(BUILD_TREE); $(MAKE) install DESTDIR=$(CURDIR)/debian/performous
+	$(MAKE) -C debian/h2m
+	cp themes/lima/icon.png $(CURDIR)/debian/performous/usr/share/pixmaps/performous.png
+	mkdir -p  $(CURDIR)/debian/performous/usr/share/games/ultrastar/songs
+	rm $(CURDIR)/debian/performous/usr/bin/performous.sh
+	mv $(CURDIR)/debian/performous/usr/bin $(CURDIR)/debian/performous/usr/games
+
+# Build architecture independant packages using the common target.
+binary-indep: 
+	dh_testdir
+	dh_testroot
+	dh_install -i
+	dh_link -i
+	dh_compress -i
+	dh_fixperms -i
+	dh_makeshlibs -i
+	dh_installdeb -i
+	dh_gencontrol -i
+	dh_md5sums -i
+	dh_builddeb -i
+
+# Build architecture dependant packages using the common target.
+binary-arch: build install
+	dh_testdir
+	dh_testroot
+	dh_installchangelogs -a
+	dh_installdocs -a
+	dh_installmenu -a
+	dh_installman -a
+	dh_install -a
+	dh_desktop -a
+	dh_icons -a
+	dh_link -a
+	dh_strip --dbg-package=performous-dbg
+	dh_compress -a 
+	dh_fixperms -a
+	dh_makeshlibs -a
+	dh_installdeb -a
+	dh_shlibdeps -a \
+		-Xusr/lib/libda/
+	dh_shlibdeps -a \
+		-Xusr/lib/libda.a \
+		-Xusr/lib/libda/libda_audio_dev_gst.so \
+		-Xusr/lib/libda/libda_audio_dev_jack.so \
+		-Xusr/lib/libda/libda_audio_dev_pa19.so \
+		-Xusr/lib/libda/libda_audio_dev_pulse.so \
+		-- -dRecommends -palsalibs
+	dh_gencontrol -a
+	dh_md5sums -a
+	dh_builddeb -a
+
+binary: binary-arch binary-indep
+.PHONY: build clean binary-indep binary-arch binary install configure
--- performous-0.3.0.orig/debian/watch
+++ performous-0.3.0/debian/watch
@@ -0,0 +1,8 @@
+# Watch control file for uscan
+# See uscan(1) for format
+
+# Compulsory line, this is a version 3 file
+version=3
+
+# Find new files on sourceforge, for debscripts >= 2.9
+http://sf.net/performous/Performous-(.*)-Source\.tar\.bz2
--- performous-0.3.0.orig/debian/ultrastar-ng.links
+++ performous-0.3.0/debian/ultrastar-ng.links
@@ -0,0 +1,3 @@
+usr/games/performous usr/games/ultrastar-ng
+usr/share/man/man6/performous.6.gz usr/share/man/man6/ultrastar-ng.6.gz
+usr/share/doc/performous usr/share/doc/ultrastar-ng
--- performous-0.3.0.orig/debian/performous.menu
+++ performous-0.3.0/debian/performous.menu
@@ -0,0 +1,3 @@
+?package(performous):needs="x11" section="Games/Action" \
+	title="Performous" command="/usr/games/performous" \
+	icon="/usr/share/pixmaps/performous.xpm"
--- performous-0.3.0.orig/debian/compat
+++ performous-0.3.0/debian/compat
@@ -0,0 +1 @@
+5
--- performous-0.3.0.orig/debian/docs
+++ performous-0.3.0/debian/docs
@@ -0,0 +1,2 @@
+docs/Authors.txt
+docs/TODO.txt
--- performous-0.3.0.orig/debian/patches/directories.patch
+++ performous-0.3.0/debian/patches/directories.patch
@@ -0,0 +1,27 @@
+Index: performous-0.3.0/CMakeLists.txt
+===================================================================
+--- performous-0.3.0.orig/CMakeLists.txt	2008-11-13 23:32:38.000000000 +0000
++++ performous-0.3.0/CMakeLists.txt	2008-11-13 23:36:58.000000000 +0000
+@@ -40,17 +40,18 @@
+ endif(NOT CMAKE_BUILD_TYPE)
+ 
+ 
+-set(SHARE_INSTALL "share/performous")
++set(SHARE_INSTALL "share/games/performous")
+ 
+ add_subdirectory(libda)
+ add_subdirectory(themes)
+ add_subdirectory(data)
+ add_subdirectory(game)
+ 
++set(PERFORMOUS_THEME_PATH "${CMAKE_INSTALL_PREFIX}/${SHARE_INSTALL}/themes")
++set(PERFORMOUS_PLUGIN_PATH "${CMAKE_INSTALL_PREFIX}/lib/libda")
++set(PERFORMOUS_EXECUTABLE "${CMAKE_INSTALL_PREFIX}/bin/performous")
++
+ if(NOT "${CMAKE_INSTALL_PREFIX}" MATCHES "^/usr/")
+-	set(PERFORMOUS_THEME_PATH "${CMAKE_INSTALL_PREFIX}/${SHARE_INSTALL}/themes")
+-	set(PERFORMOUS_PLUGIN_PATH "${CMAKE_INSTALL_PREFIX}/lib/libda")
+-	set(PERFORMOUS_EXECUTABLE "${CMAKE_INSTALL_PREFIX}/bin/performous")
+ 	configure_file("${PROJECT_SOURCE_DIR}/cmake/performous.sh.cmake" "${PROJECT_BINARY_DIR}/performous.sh" ESCAPE_QUOTES @ONLY)
+ 	install(PROGRAMS "${PROJECT_BINARY_DIR}/performous.sh" DESTINATION bin)
+ 	install(SCRIPT "${PROJECT_SOURCE_DIR}/cmake/performous-launcher.cmake")
--- performous-0.3.0.orig/debian/patches/desktop.patch
+++ performous-0.3.0/debian/patches/desktop.patch
@@ -0,0 +1,18 @@
+Index: performous-0.3.0/data/performous.desktop
+===================================================================
+--- performous-0.3.0.orig/data/performous.desktop	2008-11-12 01:39:07.000000000 +0100
++++ performous-0.3.0/data/performous.desktop	2008-11-12 01:39:23.000000000 +0100
+@@ -4,11 +4,11 @@
+ Comment=A karaoke game
+ Comment[de]=Ein Karaoke Spiel
+ Comment[ro]=Un joc de tip karaoke
+-Comment[fr]=Un jeu de Karaoké
++Comment[fr]=Un jeu de KaraokÃ©
+ Comment[fi]=Karaokepeli
+ Comment[se]=Ett karaoke-spel
+ Exec=performous
+-Icon=performous.xpm
++Icon=performous.png
+ Terminal=false
+ Type=Application
+ Categories=Application;Game;ArcadeGame;
--- performous-0.3.0.orig/debian/patches/series
+++ performous-0.3.0/debian/patches/series
@@ -0,0 +1,2 @@
+desktop.patch
+directories.patch
--- performous-0.3.0.orig/debian/h2m/performous
+++ performous-0.3.0/debian/h2m/performous
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+BASEDIR=".."
+LIB="$BASEDIR/performous/usr/lib/libda"
+BIN="$BASEDIR/performous/usr/bin"
+
+case "$1" in
+  "--help")
+    LD_LIBRARY_PATH="$LIB" $BIN/performous --help 2>/dev/null
+    ;;
+   "--version")
+    LD_LIBRARY_PATH="$LIB" $BIN/performous --version 2>/dev/null | \
+      grep -e "^Performous"| awk '{print $2}'
+    ;;
+esac
+exit 0
--- performous-0.3.0.orig/debian/h2m/Makefile
+++ performous-0.3.0/debian/h2m/Makefile
@@ -0,0 +1,14 @@
+#!/usr/bin/make -f
+
+MANPAGES= performous.6
+
+all: $(MANPAGES)
+
+# NEED: help2man
+
+clean:
+	rm -f $(MANPAGES)
+
+performous.6: performous
+	chmod +x $<
+	help2man --no-info --section=6 --include=../../docs/$<.h2m ./$< > $@
