From 89a05bd6892fe4d744b81917cfaa91d1d47a071c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Sun, 6 Oct 2013 02:08:39 +0200 Subject: Switch tdepowersave to cmake on Debian and Ubuntu --- ubuntu/raring/applications/tdepowersave/debian/rules | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'ubuntu/raring/applications/tdepowersave/debian/rules') diff --git a/ubuntu/raring/applications/tdepowersave/debian/rules b/ubuntu/raring/applications/tdepowersave/debian/rules index f74a76605..a891b0150 100755 --- a/ubuntu/raring/applications/tdepowersave/debian/rules +++ b/ubuntu/raring/applications/tdepowersave/debian/rules @@ -1,5 +1,6 @@ #!/usr/bin/make -f +include /usr/share/cdbs/1/class/cmake.mk include debian/cdbs/kde.mk include /usr/share/cdbs/1/rules/debhelper.mk include /usr/share/cdbs/1/rules/patchsys-quilt.mk @@ -17,9 +18,20 @@ DEB_CONFIGURE_EXTRA_FLAGS := --prefix=/opt/trinity --with-extra-libs=/opt/trinit DEB_DH_BUILDDEB_ARGS += -- -Z$(shell dpkg-deb --help | grep -q ":.* xz[,.]" \ && echo xz || echo bzip2) +DEB_CMAKE_EXTRA_FLAGS := \ + -DCMAKE_INSTALL_PREFIX="/opt/trinity" \ + -DCONFIG_INSTALL_DIR="/etc/trinity" \ + -DSYSCONF_INSTALL_DIR="/etc/trinity" \ + -DXDG_MENU_INSTALL_DIR="/etc/xdg/menus" \ + -DCMAKE_BUILD_TYPE=RelWithDebInfo \ + -DCMAKE_VERBOSE_MAKEFILE="ON" \ + -DCMAKE_SKIP_RPATH="OFF" \ + -DBUILD_ALL="ON" + post-patches:: debian/stamp-bootstrap debian/stamp-bootstrap: +ifndef _cdbs_class_cmake ! [ -f /usr/share/libtool/ltmain.sh ] || \ cp -f /usr/share/libtool/ltmain.sh admin/ltmain.sh ! [ -f /usr/share/libtool/config/ltmain.sh ] || \ @@ -27,6 +39,7 @@ debian/stamp-bootstrap: cp -f /usr/share/aclocal/libtool.m4 admin/libtool.m4.in make -f admin/Makefile.common cvs +endif touch debian/stamp-bootstrap install/tdepowersave-trinity:: -- cgit v1.2.1