* debian/rules:
authorJose Dapena Paz <jdapena@igalia.com>
Tue, 5 Feb 2008 12:58:48 +0000 (12:58 +0000)
committerJose Dapena Paz <jdapena@igalia.com>
Tue, 5 Feb 2008 12:58:48 +0000 (12:58 +0000)
* Reenable maemo launcher (fixes NB#79471).
* Also respect debug DEB_BUILD_OPTIONS parameter.

pmo-trunk-r4138

debian/rules

index 64e6c91..fd0a3ae 100755 (executable)
@@ -27,15 +27,19 @@ endif
 
 # maemo-launcher support is not working properly yet, so leave it disabled
 #DEB_BUILD_OPTIONS := $(DEB_BUILD_OPTIONS),nolauncher
-#ifeq (,$(findstring nolauncher,$(DEB_BUILD_OPTIONS)))
-#      conf_opt := --enable-maemo-launcher
-#endif
+ifeq (,$(findstring nolauncher,$(DEB_BUILD_OPTIONS)))
+       conf_opt = --enable-maemo-launcher
+endif
+
+ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
+       conf_opt += --enable-debug
+endif
 
 config.status: configure
        dh_testdir
        # commands to configure the package.
        if [ ! -x configure ]; then ./autogen.sh; fi
-       CFLAGS="$(CFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --disable-maemo-launcher --prefix=/usr --sysconfdir=/etc --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info $(conf_opt)
+       CFLAGS="$(CFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --sysconfdir=/etc --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info $(conf_opt)
 
 configure: configure-stamp
 configure-stamp:
@@ -116,7 +120,7 @@ binary-arch: build install
        dh_installdeb
        dh_shlibdeps
        # Not a requirement by now, so don't fail if it's not installed
-#      which dh_maemolauncher && dh_maemolauncher usr/bin/modest || true
+       which dh_maemolauncher && dh_maemolauncher usr/bin/modest || true
        dh_gencontrol
        sh debian/scripts/renew_control_file.sh
        dh_md5sums