summaryrefslogtreecommitdiffstats
path: root/dilos/tdeedu/debian/rules
diff options
context:
space:
mode:
authorDenis Kozadaev <[email protected]>2020-01-30 22:13:12 +0300
committerTDE Gitea <[email protected]>2020-03-08 01:19:48 +0000
commitfd388b53035add95b3b3c3121fb9c62a6b642353 (patch)
tree7be9eb179739189fc0ee8f0ea484e6e011907b98 /dilos/tdeedu/debian/rules
parent9f9a029df53111c614780e8790e5f5cbe367f94e (diff)
downloadtde-packaging-fd388b53035add95b3b3c3121fb9c62a6b642353.tar.gz
tde-packaging-fd388b53035add95b3b3c3121fb9c62a6b642353.zip
DilOS: tdeedu build pack
Signed-off-by: Denis Kozadaev <[email protected]>
Diffstat (limited to 'dilos/tdeedu/debian/rules')
-rwxr-xr-xdilos/tdeedu/debian/rules55
1 files changed, 55 insertions, 0 deletions
diff --git a/dilos/tdeedu/debian/rules b/dilos/tdeedu/debian/rules
new file mode 100755
index 000000000..879189e68
--- /dev/null
+++ b/dilos/tdeedu/debian/rules
@@ -0,0 +1,55 @@
+#! /usr/bin/make -f
+
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/class/cmake.mk
+include debian/cdbs/debian-tde.mk
+
+DEB_DH_BUILDDEB_ARGS += -- -Z$(shell dpkg-deb --help | grep -q ":.* xz[,.]" \
+ && echo xz || echo bzip2)
+
+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_MAKESHLIBS_ARGS_libtdeedu3-trinity := -V'libtdeedu3-trinity'
+DEB_DH_MAKESHLIBS_ARGS_libkiten1-trinity := -V'libkiten1-trinity'
+
+PACKAGES_WITH_LIBS := libtdeedu3-trinity libkiten1-trinity kvoctrain-trinity
+
+# Although ocaml is available for all architectures,
+# ocamlopt for some architectures is not available.
+# Therefore, kalzium/solver build will be required
+# according to ocamlopt availability.
+HAVE_OCAMLOPT= $(if $(wildcard /usr/bin/ocamlopt),ON,OFF)
+
+CPPFLAGS+= -D__dilos__
+
+DEB_CMAKE_EXTRA_FLAGS := \
+ -DCMAKE_INSTALL_PREFIX="/usr" \
+ -DCONFIG_INSTALL_DIR="/etc/trinity" \
+ -DSYSCONF_INSTALL_DIR="/etc" \
+ -DXDG_MENU_INSTALL_DIR="/etc/xdg/menus" \
+ -DCMAKE_BUILD_TYPE=RelWithDebInfo \
+ -DCMAKE_VERBOSE_MAKEFILE="ON" \
+ -DCMAKE_SKIP_RPATH="OFF" \
+ -DBUILD_ALL="ON" \
+ -DWITH_ALL_OPTIONS="ON" \
+ -DWITH_OCAML_SOLVER="$(HAVE_OCAMLOPT)" \
+ -DCMAKE_C_COMPILER=gcc \
+ -DLIB_SUFFIX="/$(DEB_HOST_MULTIARCH)" \
+ -DWITH_V4L="OFF"
+
+DEB_MAKE_CHECK_TARGET = check
+
+
+# Ensure that kig's python scripting built successfully.
+common-build-arch::
+ test -e $(DEB_BUILDDIR)/kig/scripting/libkigscripting.a || \
+ test -e $(DEB_BUILDDIR)/kig/scripting/libscripting.la
+
+common-install-prehook-arch::
+ cp -f debian/indi-trinity.install.kfreebsd-i386 \
+ debian/indi-trinity.install.kfreebsd-amd64
+
+clean::
+ rm -f debian/indi-trinity.install.kfreebsd-amd64