[SCM] stk/master: Do not build stk demo on non-linux archs. Closes #728079
fsateler at users.alioth.debian.org
fsateler at users.alioth.debian.org
Wed Oct 30 15:54:51 UTC 2013
The following commit has been merged in the master branch:
commit 380d2ca166bb4dbba7046d336c2c8ae255a8ee65
Author: Felipe Sateler <fsateler at debian.org>
Date: Wed Oct 30 12:40:09 2013 -0300
Do not build stk demo on non-linux archs. Closes #728079
requires realtime
diff --git a/debian/rules b/debian/rules
index 4850619..4096934 100755
--- a/debian/rules
+++ b/debian/rules
@@ -6,10 +6,14 @@ DEB_HOST_ARCH_OS ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)
ifeq ($(DEB_HOST_ARCH_OS),linux)
CONFIGURE_FLAGS += --with-jack --with-alsa --with-oss
+STK_REALTIME = yes
else
CONFIGURE_FLAGS += --disable-realtime
+STK_REALTIME =no
endif
+export STK_REALTIME
+
RAWWAVE_PATH = /usr/share/stk/rawwaves/
CONFIGURE_FLAGS += RAWWAVE_PATH=$(RAWWAVE_PATH)
@@ -31,6 +35,13 @@ override_dh_auto_configure:
mkdir -p projects/demo/Release
+override_dh_link:
+ dh_link
+# Cleanup realtime-related files
+ifeq ($(STK_REALTIME),no)
+ rm -rf debian/stk/usr/share/menu
+ rm -rf debian/stk/usr/share/man
+endif
override_dh_installchangelogs:
dh_installchangelogs doc/ReleaseNotes.txt
diff --git a/debian/stk.install b/debian/stk.install
old mode 100644
new mode 100755
index 576fea4..fd1bcbe
--- a/debian/stk.install
+++ b/debian/stk.install
@@ -1,5 +1,8 @@
-debian/STKDemo usr/bin
-projects/demo/stk-demo usr/bin
-projects/demo/tcl usr/share/stk
-projects/examples/rawwaves/* usr/share/stk/rawwaves
-rawwaves/* usr/share/stk/rawwaves
+#!/bin/sh
+if [ "${STK_REALTIME}" = "yes" ] ; then
+ echo debian/STKDemo usr/bin
+ echo projects/demo/stk-demo usr/bin
+ echo projects/demo/tcl usr/share/stk
+fi
+echo projects/examples/rawwaves/* usr/share/stk/rawwaves
+echo rawwaves/* usr/share/stk/rawwaves
--
stk packaging
More information about the pkg-multimedia-commits
mailing list