diff options
| author | Thomas Jarosch <tomj@simonv.com> | 2011-02-08 22:09:36 +0000 |
|---|---|---|
| committer | Thomas Jarosch <tomj@simonv.com> | 2011-02-08 22:09:36 +0000 |
| commit | 06023f311003ba5b357c1132895afc829dff43d4 (patch) | |
| tree | 5969a79ed4fb9356a4194af9661bb1b94875b00f /debian/rules | |
| parent | eaeff26349b6cbceb435f58421e10133c45cbfa5 (diff) | |
| download | rockbox-06023f311003ba5b357c1132895afc829dff43d4.zip rockbox-06023f311003ba5b357c1132895afc829dff43d4.tar.gz rockbox-06023f311003ba5b357c1132895afc829dff43d4.tar.bz2 rockbox-06023f311003ba5b357c1132895afc829dff43d4.tar.xz | |
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
Diffstat (limited to 'debian/rules')
| -rwxr-xr-x | debian/rules | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..380d0d2 --- /dev/null +++ b/debian/rules @@ -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 |