summaryrefslogtreecommitdiffstats
path: root/ubuntu/_base/dependencies/akode/debian/rules
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2019-04-03 23:02:46 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2019-04-03 23:02:46 +0900
commitfcad8b8d150fb9f508973e3044a103de74ec3877 (patch)
treeca34a8cf3bfbe08335d40c47863b4901e1d19609 /ubuntu/_base/dependencies/akode/debian/rules
parent5d8ed1fab813d86b04383f7fcf8ab2c994cbea30 (diff)
downloadtde-packaging-fcad8b8d150fb9f508973e3044a103de74ec3877.tar.gz
tde-packaging-fcad8b8d150fb9f508973e3044a103de74ec3877.zip
DEB: use _base folder for a distro instead of specific distros (squeeze and maverick).
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'ubuntu/_base/dependencies/akode/debian/rules')
-rwxr-xr-xubuntu/_base/dependencies/akode/debian/rules42
1 files changed, 42 insertions, 0 deletions
diff --git a/ubuntu/_base/dependencies/akode/debian/rules b/ubuntu/_base/dependencies/akode/debian/rules
new file mode 100755
index 000000000..7d457930b
--- /dev/null
+++ b/ubuntu/_base/dependencies/akode/debian/rules
@@ -0,0 +1,42 @@
+#! /usr/bin/make -f
+
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/class/cmake.mk
+include debian/cdbs/debian-qt-kde.mk
+include /usr/share/cdbs/1/rules/utils.mk
+
+DEB_HOST_ARCH_OS = $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)
+ifeq (linux,$(DEB_HOST_ARCH_OS))
+DEB_DH_GENCONTROL_ARGS=-- -Valsa-dev=libasound2-dev
+endif
+
+DEB_CONFIGURE_EXTRA_FLAGS := --without-libltdl --with-extra-includes=/usr/include/speex/
+
+DEB_DH_STRIP_ARGS := --dbg-package=akode-dbg
+
+PACKAGES_WITH_LIBS := libakode2
+
+DEB_DH_MAKESHLIBS_ARGS_libakode2 := -V'libakode2 (>= 2-rc1-1)'
+
+DEB_DH_BUILDDEB_ARGS += -- -Z$(shell dpkg-deb --help | grep -q ":.* xz[,.]" \
+ && echo xz || echo bzip2)
+
+# Build options
+DEB_CMAKE_EXTRA_FLAGS := \
+ -DCMAKE_SKIP_RPATH="OFF" \
+ -DCMAKE_VERBOSE_MAKEFILE="ON" \
+ -DCMAKE_BUILD_TYPE=RelWithDebInfo \
+ -DWITH_ALL_OPTIONS="ON" \
+ -DWITH_LIBLTDL="OFF" \
+ -DWITH_JACK_SINK="OFF" \
+ -DWITH_PULSE_SINK="ON" \
+ -DWITH_FFMPEG_DECODER="OFF"
+
+common-install-prehook-arch::
+ grep -v libakode_alsa_sink debian/libakode2.install > debian/libakode2.install.kfreebsd-i386
+ grep -v libakode_alsa_sink debian/libakode2.install > debian/libakode2.install.kfreebsd-amd64
+ grep -v libakode_alsa_sink debian/libakode-dev.install > debian/libakode-dev.install.kfreebsd-i386
+ grep -v libakode_alsa_sink debian/libakode-dev.install > debian/libakode-dev.install.kfreebsd-amd64
+
+clean::
+ rm -f debian/libakode2.install.kfreebsd* debian/libakode-dev.install.kfreebsd*