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 += -march=armv7-a -mtune=cortex-a8 -mfpu=neon -ftree-vectorize -mfloat-abi=softfp
25 ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
28 ifeq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
29 CFLAGS += -DG_DISABLE_CAST_CHECKS
35 # Add here commands to configure the package.
36 CFLAGS="$(CFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE) \
37 --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man \
38 --infodir=\$${prefix}/share/info --with-maemo
42 build-stamp: config.status
45 # Add here commands to compile the package.
54 # Add here commands to clean up after the build process.
66 # Add here commands to install the package
67 mkdir -p $(CURDIR)/debian/tmp/usr
68 mkdir -p $(CURDIR)/debian/tmp/usr/share/applications/hildon
69 mkdir -p $(CURDIR)/debian/tmp/usr/share/icons/hicolor/26x26/hildon
70 mkdir -p $(CURDIR)/debian/tmp/usr/share/icons/hicolor/40x40/hildon
71 mkdir -p $(CURDIR)/debian/tmp/usr/share/icons/hicolor/scalable/hildon
72 cp $(CURDIR)/src/tuner26.png $(CURDIR)/debian/tmp/usr/share/icons/hicolor/26x26/hildon/pkg_tuner.png
73 cp $(CURDIR)/src/tuner40.png $(CURDIR)/debian/tmp/usr/share/icons/hicolor/40x40/hildon/pkg_tuner.png
74 cp $(CURDIR)/src/tuner64.png $(CURDIR)/debian/tmp/usr/share/icons/hicolor/scalable/hildon/pkg_tuner.png
75 cp $(CURDIR)/tuner.desktop $(CURDIR)/debian/tmp/usr/share/applications/hildon/tuner.desktop
76 mkdir -p $(CURDIR)/debian/tmp/usr/bin
77 cp $(CURDIR)/src/tuner $(CURDIR)/debian/tmp/usr/bin
78 strip $(CURDIR)/debian/tmp/usr/bin/tuner
80 # Build architecture-independent files here.
81 binary-indep: build install
82 # We have nothing to do by default.
84 # Build architecture-dependent files here.
85 binary-arch: build install
98 binary: binary-indep binary-arch
99 .PHONY: build clean binary-indep binary-arch binary install configure