3 # Sample debian/rules that uses debhelper.
4 # GNU copyright 1997 to 1999 by Joey Hess.
6 # Uncomment this to turn on verbose mode.
9 # These are used for cross-compiling and for saving the configure script
10 # from having to guess our platform (since we know it already)
11 DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
12 DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
13 DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
17 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
21 ifneq (,$(findstring $(DEB_HOST_ARCH),arm armel))
22 CFLAGS += -mcpu=arm926ej-s
25 ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
32 # Add here commands to configure the package.
33 CFLAGS="$(CFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE) \
34 --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man \
35 --infodir=\$${prefix}/share/info --with-maemo
39 build-stamp: config.status
42 # Add here commands to compile the package.
51 # Add here commands to clean up after the build process.
63 # Add here commands to install the package
64 mkdir -p $(CURDIR)/debian/tmp/usr
65 mkdir -p $(CURDIR)/debian/tmp/usr/share/applications/hildon
66 mkdir -p $(CURDIR)/debian/tmp/usr/share/icons/hicolor/26x26/hildon
67 mkdir -p $(CURDIR)/debian/tmp/usr/share/icons/hicolor/40x40/hildon
68 mkdir -p $(CURDIR)/debian/tmp/usr/share/icons/hicolor/scalable/hildon
69 cp $(CURDIR)/src/tuner26.png $(CURDIR)/debian/tmp/usr/share/icons/hicolor/26x26/hildon/pkg_tuner.png
70 cp $(CURDIR)/src/tuner40.png $(CURDIR)/debian/tmp/usr/share/icons/hicolor/40x40/hildon/pkg_tuner.png
71 cp $(CURDIR)/src/tuner64.png $(CURDIR)/debian/tmp/usr/share/icons/hicolor/scalable/hildon/pkg_tuner.png
72 cp $(CURDIR)/tuner.desktop $(CURDIR)/debian/tmp/usr/share/applications/hildon/tuner.desktop
73 mkdir -p $(CURDIR)/debian/tmp/usr/bin
74 cp $(CURDIR)/src/tuner $(CURDIR)/debian/tmp/usr/bin
75 strip $(CURDIR)/debian/tmp/usr/bin/tuner
77 # Build architecture-independent files here.
78 binary-indep: build install
79 # We have nothing to do by default.
81 # Build architecture-dependent files here.
82 binary-arch: build install
95 binary: binary-indep binary-arch
96 .PHONY: build clean binary-indep binary-arch binary install configure