debian directory needed to build maemo packages

The build rules in the debain directoy are currently
maemo specific and won't build on debian.

Later on we could add automatic distribution detection
and switch the build rules based on that if someone
wants to build a generic RaaA package for debian.

Maemo binary packages get build like this (in scratchbox):

dpkg-buildpackage -rfakeroot -sa

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29256 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Thomas Jarosch 2011-02-08 22:09:36 +00:00
parent eaeff26349
commit 06023f3110
8 changed files with 246 additions and 0 deletions

11
debian/README.Debian vendored Normal file
View File

@ -0,0 +1,11 @@
rockbox 3.7.x for Maemo
--------------------------
Rockbox for maemo technial preview release.
Known issues:
- Application exit is only possible with CTRL+BACKSPACE
- Last.FM scrobbler log file is not working
Possible cause: We don't call clean_shutdown() / system_flush()
so the scrobbler log file never gets written to disk

48
debian/changelog vendored Normal file
View File

@ -0,0 +1,48 @@
rockbox (2011-01-26maemo0) unstable; urgency=low
* Bluetooth headset support
* Ignore preinstalled sounds in /usr/share/sounds
-- Thomas Jarosch <tomj@simonv.com> Wed, 26 Jan 2011 22:50:00 -0500
rockbox (2011-01-12maemo0) unstable; urgency=low
* Always show prev/next track button
* Bind enter key to rockbock's center button (all platforms)
* Bind more keys on n8xx (maemo4)
* Update to latest rockbox SVN code
-- Thomas Jarosch <tomj@simonv.com> Tue, 12 Jan 2011 19:42:00 -0500
rockbox (2011-01-04maemo0) unstable; urgency=low
* Update to latest rockbox SVN code (regenerates the database)
* Test automatic garage build
* Fix x86 build targets
-- Thomas Jarosch <tomj@simonv.com> Tue, 04 Jan 2011 00:20:00 -0500
rockbox (2011-01-02maemo0) unstable; urgency=low
* New version number to indicate this build is work in progress
-- Thomas Jarosch <tomj@simonv.com> Sun, 02 Jan 2011 00:05:00 -0500
rockbox (3.7.2maemo2) unstable; urgency=low
* Fix duplicate database entries
* Initial rockbox plugin support:
- Small tools in the context menu
- mikmod (.mod, .s3m, .xm etc) support
- Credits screen
-- Thomas Jarosch <tomj@simonv.com> Sat, 01 Jan 2011 19:01:00 -0500
rockbox (3.7.2maemo1) unstable; urgency=low
* Initial release for Nokia N900
-- Thomas Jarosch <tomj@simonv.com> Thu, 30 Dec 2010 16:18:05 -0500

1
debian/compat vendored Normal file
View File

@ -0,0 +1 @@
5

80
debian/control vendored Normal file
View File

@ -0,0 +1,80 @@
Source: rockbox
Section: user/multimedia
Priority: extra
Maintainer: Thomas Jarosch <tomj@simonv.com>
Build-Depends: debhelper (>= 5), pkg-config, maemo-version-dev,
libosso-dev, libglib2.0-dev, libhal-dev, osso-af-settings,
libsdl1.2-dev, libxml2-dev,
libgstreamer0.10-dev | maemo-version-dev (<= 5),
libgstreamer-plugins-base0.10-dev | maemo-version-dev (<= 5),
libgstreamer-plugins-base0.10-dev | maemo-version-dev (<= 5),
libplayback-1-dev | maemo-version-dev (<= 5)
# Note: This is the -debian- standards version, not rockbox
Standards-Version: 3.7.2
XB-Maemo-Icon-26:
iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c
6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAAN1wAADdcBQiibeAAAAAd0
SU1FB9oKHhIPE5mDh+sAAAAZdEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJ
TVBXgQ4XAAAH/ElEQVRo3s2aeZBU1RXGf/e+13v3rD0Dw4DiBA3FHpICVJZQ
MiJLKKJsUikiREoxKROIKYiKSkUSQ0QhAUPASkJRRmPCEoOFKDjUIBBCWFSs
IGCIEGFg9n2mu9+9+eP1DN0wg3T3zMCt+qq7Xt/13Hu+77zTV2AXCTgBL+AB
HNFngpujaEABYaARaACaAW1GJ+kFcr53L4NmjGRUupdswEDfJNMXgMaqbqDs
jWI++MNuPgJKgXoTcAE5zzzI5EX3s9gXJGi4cYqbx/r2Fmi01UxoeD9m9czh
lz97g+1AxADSZo7i68/P4ecZt9JTujGFgcCAK1FWC8f/C0dOQmMYwgqcbjAd
INqo35EQBkK6MN1ppA3JY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mHZKS2UVQCIRNo2v6P8Af9
Cjwz01z0QHbtDgwf5GXTC/mUlEbonmNyS54jLuvQhvWpq+TSWwfCe4EmA9Cf
nGmoDWb6GwuCjv6GIVwgpdZSaCXpbKAl6X6T/Fwn6X4TdDt1LamtJhGpqxCl
W/c2/WbdtpJdQGWLMviA4EOTcoaNHey+0+MSGVrfXJc9hMBqbNZV7x9t3L9x
R9khoAyoFzF5RVf01oo7evXmZrxuEwKaYq/b/B/B2k8FFRXfJAAAAABJRU5E
rkJggg==
XSBC-Bugtracker: https://bugs.maemo.org/enter_bug.cgi?product=rockbox
Package: rockbox
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: Rockbox open source high quality audio player
Package: rockbox-doc
Architecture: all
Description: Documentation for rockbox
Package: rockbox-dbg
Section: devel
Architecture: any
Depends: rockbox (= ${Source-Version})
Description: Debug symbols for rockbox

30
debian/copyright vendored Normal file
View File

@ -0,0 +1,30 @@
This package was debianized by Thomas Jarosch <tomj@simonv.com> on
Thu, 30 Dec 2010 16:18:05 -0500.
It was downloaded from www.rockbox.org / svn://svn.rockbox.org/rockbox/trunk
Upstream Author: The rockbox team - see docs/CREDITS for all the names
Copyright: 2001-2011 - The rockbox team
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) 2010, Thomas Jarosch <tomj@simonv.com> and
is licensed under the GPL, see above.

9
debian/maemo/rockbox.desktop vendored Normal file
View File

@ -0,0 +1,9 @@
[Desktop Entry]
Encoding=UTF-8
Version=3.7.1
Type=Application
Name=Rockbox
Exec=/opt/rockbox/bin/rockbox
Icon=rockbox
X-HildonDesk-ShowInToolbar=true
X-Osso-Type=application/x-executable

BIN
debian/maemo/rockbox.png vendored Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

67
debian/rules vendored Executable file
View File

@ -0,0 +1,67 @@
#!/usr/bin/make -f
CONFIGURE_OPTIONS := --platform=M --lcdwidth=800 --lcdheight=480 --target=application --ram=8 --rbdir=/.rockbox --type=N
DESKTOP_DIR := `pkg-config --variable=desktopentrydir osso-af-settings`
export DH_VERBOSE=1
builddir:
test -d builddir || mkdir -p builddir
builddir/Makefile: builddir
cd builddir && test -f Makefile || ../tools/configure $(CONFIGURE_OPTIONS)
build: build-stamp
build-stamp: builddir/Makefile
dh_testdir
cd builddir && $(MAKE)
touch $@
clean:
dh_testdir
dh_testroot
rm -f build-stamp
rm -rf builddir
dh_clean
install: build
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs
cd builddir && $(MAKE) PREFIX=$(CURDIR)/debian/rockbox/opt/rockbox fullinstall
# Install icon and .desktop file
mkdir -p $(CURDIR)/debian/rockbox/usr/share/icons/hicolor/64x64/apps
cp -f debian/maemo/rockbox.png $(CURDIR)/debian/rockbox/usr/share/icons/hicolor/64x64/apps
mkdir -p $(CURDIR)/debian/rockbox$(DESKTOP_DIR)
cp -f debian/maemo/rockbox.desktop $(CURDIR)/debian/rockbox$(DESKTOP_DIR)
# Ignore built in sounds
mkdir -p $(CURDIR)/debian/rockbox/usr/share/sounds
touch $(CURDIR)/debian/rockbox/usr/share/sounds/database.ignore
# Build architecture-independent files here.
binary-indep:
# We have nothing to do by default.
# Build architecture-dependent files here.
binary-arch: build install
dh_testdir
dh_testroot
dh_installdocs
dh_installexamples
dh_installman
dh_link
dh_strip --dbg-package=rockbox-dbg
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