From fd2d7b7816d5f983a6a3d96093bc5fe8a61e96a3 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sat, 5 Sep 2015 12:00:01 +0200 Subject: [PATCH] libffado: switch to build_style=scons and split python stuff into -python. --- srcpkgs/libffado-python | 1 + srcpkgs/libffado/template | 48 +++++++++++++++++++-------------------- 2 files changed, 25 insertions(+), 24 deletions(-) create mode 120000 srcpkgs/libffado-python diff --git a/srcpkgs/libffado-python b/srcpkgs/libffado-python new file mode 120000 index 00000000000..0ddb45fa85d --- /dev/null +++ b/srcpkgs/libffado-python @@ -0,0 +1 @@ +libffado \ No newline at end of file diff --git a/srcpkgs/libffado/template b/srcpkgs/libffado/template index 76daa57e51d..7acae52db41 100644 --- a/srcpkgs/libffado/template +++ b/srcpkgs/libffado/template @@ -1,14 +1,13 @@ # Template file for 'ffado' pkgname=libffado version=2.2.1 -revision=1 +revision=2 +build_style=scons +make_build_args="PREFIX=/usr MANDIR=/usr/share/man UDEVDIR=/usr/lib/udev/rules.d CUSTOM_ENV=1 BUILD_TESTS=0 ENABLE_OPTIMIZATIONS=0 WILL_DEAL_WITH_XDG_MYSELF=1" +make_install_args="${make_build_args}" hostmakedepends="scons pkg-config" makedepends="libxml++-devel libdbus-c++-devel libsigc++-devel libconfig++-devel - jack-devel libavc1394-devel libiec61883-devel libraw1394-devel alsa-lib-devel - python-PyQt4-devel python-PyQt4-dbus python-dbus-devel" -pycompile_versions="2.7" -pycompile_module="ffado" -pycompile_dirs="usr/share/libffado/python" + jack-devel libavc1394-devel libiec61883-devel libraw1394-devel alsa-lib-devel" short_desc="Library for accessing BeBoB IEEE1394 devices" maintainer="Duncaen " license="GPL-3" @@ -16,27 +15,28 @@ homepage="http://www.ffado.org" distfiles="http://www.ffado.org/files/libffado-${version}.tgz" checksum=9f299b8ecd9885338aeae8c7f2fc10af9afb85ca4384256d485b010a128b35f6 -do_build() { - scons ${makejobs} \ - CUSTOM_ENV=True \ - CC="$CC" \ - CXX="$CXX" \ - CFLAGS="$CFLAGS" \ - CXXFLAGS="$CXXFLAGS" \ - LDFLAGS="$LDFLAGS" \ - PREFIX=/usr \ - MANDIR="/usr/share/man" \ - UDEVDIR="/usr/lib/udev/rules.d" \ - BUILD_TESTS=False \ - ENABLE_OPTIMIZATIONS=False +subpackages="libffado-devel" + +if [ -z "$CROSS_BUILD" ]; then + makedepends+=" python-PyQt4-devel python-PyQt4-dbus python-dbus-devel" + subpackages+=" libffado-python" +fi + +post_install() { + vinstall support/xdg/ffado.org-ffadomixer.desktop 644 usr/share/applications ffadomixer.desktop + vinstall support/xdg/hi64-apps-ffado.png 644 usr/share/pixmaps ffado.png } -do_install() { - scons PREFIX=${DESTDIR}/usr WILL_DEAL_WITH_XDG_MYSELF="True" install - vinstall support/xdg/ffado.org-ffadomixer.desktop 644 usr/share/applications/ffadomixer.desktop - vinstall support/xdg/hi64-apps-ffado.png 644 usr/share/pixmaps/ffado.png +libffado-python_package() { + depends="python-dbus python-PyQt4-dbus" + short_desc+=" - python bindings" + pycompile_module="ffado" + pycompile_dirs="usr/share/libffado/python" + pkg_install() { + vmove usr/share/libffado/python + vmove usr/lib/python2.7 + } } - libffado-devel_package() { depends="${sourcepkg}>=${version}_${revision}" short_desc+=" - development files"