diff options
Diffstat (limited to 'dilos/tdepim/debian/rules')
-rwxr-xr-x | dilos/tdepim/debian/rules | 97 |
1 files changed, 97 insertions, 0 deletions
diff --git a/dilos/tdepim/debian/rules b/dilos/tdepim/debian/rules new file mode 100755 index 000000000..8a0aa8bbf --- /dev/null +++ b/dilos/tdepim/debian/rules @@ -0,0 +1,97 @@ +#!/usr/bin/make -f + +# Set LD_LIBRARY_PATH to the installed library directory to allow dh_shlibdeps to function +# Also include the main Trinity path +ifeq ("$(LD_LIBRARY_PATH)", "") +LD_LIBRARY_PATH=debian/tmp/usr/lib:debian/tmp/usr/lib/trinity +else +LD_LIBRARY_PATH += :debian/tmp/usr/lib:debian/tmp/usr/lib/trinity +endif +export LD_LIBRARY_PATH + +include /usr/share/cdbs/1/rules/debhelper.mk +include /usr/share/cdbs/1/class/cmake.mk +include debian/cdbs/debian-tde.mk + +DEB_KDE_APIDOX := yes + +CPPFLAGS+= -D__dilos__ + +DEB_CMAKE_EXTRA_FLAGS := \ + -DLIB_SUFFIX="" \ + -DCMAKE_INSTALL_PREFIX="/usr" \ + -DCONFIG_INSTALL_DIR="/etc/trinity" \ + -DSYSCONF_INSTALL_DIR="/etc/trinity" \ + -DXDG_MENU_INSTALL_DIR="/etc/xdg/menus" \ + -DCMAKE_VERBOSE_MAKEFILE="ON" \ + -DCMAKE_SKIP_RPATH="OFF" \ + -DBUILD_ALL="ON" \ + -DWITH_ARTS="ON" \ + -DWITH_SASL="ON" \ + -DWITH_NEWDISTRLISTS="ON" \ + -DWITH_GNOKII="OFF" \ + -DWITH_EXCHANGE="ON" \ + -DWITH_EGROUPWARE="ON" \ + -DWITH_KOLAB="ON" \ + -DWITH_SLOX="ON" \ + -DWITH_GROUPWISE="ON" \ + -DWITH_FEATUREPLAN="ON" \ + -DWITH_GROUPDAV="ON" \ + -DWITH_BIRTHDAYS="ON" \ + -DWITH_NEWEXCHANGE="ON" \ + -DWITH_SCALIX="ON" \ + -DWITH_CALDAV="ON" \ + -DWITH_CARDDAV="ON" \ + -DWITH_INDEXLIB="ON" \ + -DWITH_XSCREENSAVER="ON" \ + -DCMAKE_BUILD_TYPE=RelWithDebInfo \ + -DCMAKE_C_COMPILER=gcc \ + -DLIB_SUFFIX="/$(DEB_HOST_MULTIARCH)" + +DEB_MAKE_CHECK_TARGET = check + +DEB_DH_INSTALL_SOURCEDIR := $(DEB_DESTDIR) + +DEB_INSTALL_DOCS_ALL := + +DEB_INSTALL_CHANGELOGS_ALL = $(shell for f in ChangeLog CHANGELOG CHANGES; do if test -s $(DEB_SRCDIR)/$(cdbs_curpkg)/$$f; then echo $(DEB_SRCDIR)/$(cdbs_curpkg)/$$f; break; fi; done) + +DEB_DH_BUILDDEB_ARGS += -- -Z$(shell dpkg-deb --help | grep -q ":.* xz[,.]" \ + && echo xz || echo bzip2) + +shlibs_ver=4:3.5.7 +DEB_DH_MAKESHLIBS_ARGS_libindex0-trinity := -V'libindex0-trinity (>= $(shlibs_ver))' +DEB_DH_MAKESHLIBS_ARGS_libtdenetwork2-trinity := -V'libtdenetwork2-trinity (>= $(shlibs_ver))' +DEB_DH_MAKESHLIBS_ARGS_libtdepim1a-trinity := -V'libtdepim1a-trinity (>= $(shlibs_ver))' +DEB_DH_MAKESHLIBS_ARGS_libkgantt0-trinity := -V'libkgantt0-trinity (>= $(shlibs_ver))' +DEB_DH_MAKESHLIBS_ARGS_libkleopatra1-trinity := -V'libkleopatra1-trinity (>= $(shlibs_ver))' +DEB_DH_MAKESHLIBS_ARGS_libkmime2-trinity := -V'libkmime2-trinity (>= $(shlibs_ver))' +DEB_DH_MAKESHLIBS_ARGS_libkpimexchange1-trinity := -V'libkpimexchange1-trinity (>= $(shlibs_ver))' +DEB_DH_MAKESHLIBS_ARGS_libkpimidentities1-trinity := -V'libkpimidentities1-trinity (>= $(shlibs_ver))' +DEB_DH_MAKESHLIBS_ARGS_libksieve0-trinity := -V'libksieve0-trinity (>= $(shlibs_ver))' +DEB_DH_MAKESHLIBS_ARGS_libktnef1-trinity := -V'libktnef1-trinity (>= $(shlibs_ver))' +DEB_DH_MAKESHLIBS_ARGS_libmimelib1c2a-trinity := -V'libmimelib1c2a-trinity (>= $(shlibs_ver))' + +# kontact-trinity starts fine without korganizer-trinity or kpilot-trinity dependencies +# specialdates-trinity is only in recommends to get the kaddressbook-trinity dependency there +kontact-trinity_recommends_plugins := korganizer specialdates +kontact-trinity_suggests_plugins := journal todo + +DEB_DH_SHLIBDEPS_ARGS_kontact-trinity := \ + $(foreach p,$(kontact-trinity_recommends_plugins) $(kontact-trinity_suggests_plugins),-Xusr/lib/$(DEB_HOST_MULTIARCH)/trinity/libkontact_$(p)plugin.so) \ + -- -dRecommends \ + $(foreach p,$(kontact-trinity_recommends_plugins),debian/kontact-trinity/usr/lib/$(DEB_HOST_MULTIARCH)/trinity/libkontact_$(p)plugin.so) \ + -dSuggests \ + $(foreach p,$(kontact-trinity_suggests_plugins),debian/kontact-trinity/usr/lib/$(DEB_HOST_MULTIARCH)/trinity/libkontact_$(p)plugin.so) \ + -dDepends # Since -u args go first in dpkg-shlibdeps call + +test-shlibdeps: + @echo $(DEB_DH_SHLIBDEPS_ARGS_kontact-trinity) + +KDE_UPSTREAM_VERSION := $(shell echo $(DEB_UPSTREAM_VERSION) | sed -e 's/\.dfsg.*//') +KDE_TARBALL := ../$(DEB_SOURCE_PACKAGE)-$(KDE_UPSTREAM_VERSION).tar.bz2 +KDE_SOURCEDIR := dfsg-tmp/$(DEB_SOURCE_PACKAGE)-$(KDE_UPSTREAM_VERSION) +NEWDEB_SOURCEDIR := $(DEB_SOURCE_PACKAGE)-$(DEB_UPSTREAM_VERSION) + +DEB_DH_STRIP_ARGS := -Xlibindex.so.0.0.0 -Xlibgpgme++.so.0.4.0 \ +-Xlibmimelib.so.1.0.1 |