Add support for maemo-launcher
[cinaest] / debian / rules
index 7b2b472..bc35360 100755 (executable)
@@ -22,12 +22,15 @@ endif
 ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
        INSTALL_PROGRAM += -s
 endif
+ifeq (,$(findstring nolauncher,$(DEB_BUILD_OPTIONS)))
+       conf_opt := --enable-maemo-launcher
+endif
 
 config.status: configure
        dh_testdir
        # Add here commands to configure the package.
        CFLAGS="$(CFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) \
-                --prefix=/usr --libexecdir=/usr/libexec
+                --prefix=/usr --libexecdir=/usr/libexec $(conf_opt)
 
 build: build-stamp
 
@@ -75,6 +78,7 @@ binary-arch: install
        dh_installdeb
        dh_shlibdeps
        dh_gencontrol
+       dh_maemolauncher
        dh_md5sums
        maemo-optify
        dh_builddeb