#!/usr/bin/make -f # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 include /usr/share/cdbs/1/rules/patchsys-quilt.mk include /usr/share/cdbs/1/rules/debhelper.mk include /usr/share/cdbs/1/class/autotools.mk DEB_DESTDIR = $(CURDIR)/debian/tmp #let's help configure to figure out our host/build system DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH) DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE)) DEB_CONFIGURE_EXTRA_FLAGS += --build $(DEB_HOST_GNU_TYPE) else DEB_CONFIGURE_EXTRA_FLAGS += --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE) endif DEB_CONFIGURE_EXTRA_FLAGS += --prefix=/opt/navit # scale all gui icons #DEB_CONFIGURE_EXTRA_FLAGS += --enable-svg2png-scaling="32 48 64" \ # --enable-svg2png-scaling-flag="16 24 32" \ # --enable-svg2png-scaling-nav="16 32 48 64" # Force svg2png conversion using rsvg-convert since it is the most reliable # ATM DEB_CONFIGURE_EXTRA_FLAGS += --with-svg2png-use-rsvg-convert # Enable GUIs we want DEB_CONFIGURE_EXTRA_FLAGS += --enable-gui-internal \ --enable-hildon \ --disable-gui-sdl # Disable python binding DEB_CONFIGURE_EXTRA_FLAGS += --disable-binding-python # Broken switches # gd (run fails) DEB_CONFIGURE_EXTRA_FLAGS += --disable-graphics-gd --disable-graphics-sdl # don't build the samplemap - we don't want to download # stuff while building... DEB_CONFIGURE_EXTRA_FLAGS += --disable-samplemap # Disable garmin DEB_CONFIGURE_EXTRA_FLAGS += --disable-garmin # no gpsd and no gypsy-lib in maemo DEB_CONFIGURE_EXTRA_FLAGS += --disable-vehicle-gpsd \ --enable-vehicle-gypsy \ --enable-vehicle-maemo # Avoid floating point calculation for armel ifeq ($(DEB_HOST_ARCH), armel) DEB_CONFIGURE_EXTRA_FLAGS += --enable-avoid-float endif #let's take care of optimization + debug builds CFLAGS += -Wall -g ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) CFLAGS += -O0 else CFLAGS += -O2 endif post-patches:: AUTOMAKE=automake-1.9 ACLOCAL=aclocal-1.9 autoreconf --install -I m4 clean:: # Add here commands to clean up after the build process. [ ! -f Makefile ] || $(MAKE) distclean find $(CURDIR) -name Makefile.in -print0 | xargs -0 rm -f find $(CURDIR)/intl -mindepth 1 -name VERSION -o -type f -print0 | xargs -0 rm -f find $(CURDIR)/po -mindepth 1 -name '*.po.in' -o -name Makefile.am -o -print0 | xargs -0 rm -rf find $(CURDIR) -name .libs -type d -print0 | xargs -0 rm -rf find $(CURDIR) -name .deps -type d -print0 | xargs -0 rm -rf rm -f ABOUT-NLS INSTALL aclocal.m4 compile config.guess \ config.h.in config.rpath config.sub configure depcomp \ install-sh missing mkinstalldirs ltmain.sh rm -rf autom4te.cache m4