From 8588ae94d512b34355d483125b553d28b2f58c8e Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Wed, 17 Jul 2013 16:32:33 +0200 Subject: [PATCH] alsa-utils: convert ot new package format Signed-off-by: Stephan Raue --- packages/audio/alsa-utils/build | 41 ------------------- packages/audio/alsa-utils/install | 38 ----------------- .../meta => alsa/alsa-utils/package.mk} | 29 +++++++++++-- .../{ => alsa}/alsa-utils/scripts/soundconfig | 0 .../alsa-utils/udev.d/40-alsa.rules | 0 5 files changed, 26 insertions(+), 82 deletions(-) delete mode 100755 packages/audio/alsa-utils/build delete mode 100755 packages/audio/alsa-utils/install rename packages/audio/{alsa-utils/meta => alsa/alsa-utils/package.mk} (65%) rename packages/audio/{ => alsa}/alsa-utils/scripts/soundconfig (100%) rename packages/audio/{ => alsa}/alsa-utils/udev.d/40-alsa.rules (100%) diff --git a/packages/audio/alsa-utils/build b/packages/audio/alsa-utils/build deleted file mode 100755 index d4199011f4..0000000000 --- a/packages/audio/alsa-utils/build +++ /dev/null @@ -1,41 +0,0 @@ -#!/bin/sh - -################################################################################ -# This file is part of OpenELEC - http://www.openelec.tv -# Copyright (C) 2009-2012 Stephan Raue (stephan@openelec.tv) -# -# This Program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2, or (at your option) -# any later version. -# -# This Program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with OpenELEC.tv; see the file COPYING. If not, write to -# the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110, USA. -# http://www.gnu.org/copyleft/gpl.html -################################################################################ - -. config/options $1 - -cd $PKG_BUILD -./configure --host=$TARGET_NAME \ - --build=$HOST_NAME \ - --prefix=/usr \ - --sysconfdir=/etc \ - --localstatedir=/var \ - --disable-dependency-tracking \ - --disable-xmlto \ - --disable-alsamixer \ - --enable-alsatest \ - --disable-nls - -make -C amixer -make -C alsactl -make -C aplay -make -C iecset -make -C speaker-test diff --git a/packages/audio/alsa-utils/install b/packages/audio/alsa-utils/install deleted file mode 100755 index 9374234270..0000000000 --- a/packages/audio/alsa-utils/install +++ /dev/null @@ -1,38 +0,0 @@ -#!/bin/sh - -################################################################################ -# This file is part of OpenELEC - http://www.openelec.tv -# Copyright (C) 2009-2012 Stephan Raue (stephan@openelec.tv) -# -# This Program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2, or (at your option) -# any later version. -# -# This Program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with OpenELEC.tv; see the file COPYING. If not, write to -# the Free Software Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110, USA. -# http://www.gnu.org/copyleft/gpl.html -################################################################################ - -. config/options $1 - -mkdir -p $INSTALL/usr/bin - cp $PKG_BUILD/amixer/amixer $INSTALL/usr/bin - cp $PKG_BUILD/aplay/aplay $INSTALL/usr/bin - cp $PKG_BUILD/speaker-test/speaker-test $INSTALL/usr/bin - -mkdir -p $INSTALL/lib/udev - cp $PKG_DIR/scripts/soundconfig $INSTALL/lib/udev - -mkdir -p $INSTALL/usr/sbin - cp $PKG_BUILD/alsactl/alsactl $INSTALL/usr/sbin - -mkdir -p $INSTALL/usr/share/alsa/init - cp $PKG_BUILD/alsactl/init/* $INSTALL/usr/share/alsa/init - rm -rf $INSTALL/usr/share/alsa/init/Makefile* diff --git a/packages/audio/alsa-utils/meta b/packages/audio/alsa/alsa-utils/package.mk similarity index 65% rename from packages/audio/alsa-utils/meta rename to packages/audio/alsa/alsa-utils/package.mk index 0aa67a0ee4..bed0427726 100644 --- a/packages/audio/alsa-utils/meta +++ b/packages/audio/alsa/alsa-utils/package.mk @@ -25,12 +25,35 @@ PKG_ARCH="any" PKG_LICENSE="GPL" PKG_SITE="http://www.alsa-project.org/" PKG_URL="ftp://ftp.alsa-project.org/pub/utils/$PKG_NAME-$PKG_VERSION.tar.bz2" -PKG_DEPENDS="alsa-lib" -PKG_BUILD_DEPENDS="toolchain alsa-lib" +PKG_DEPENDS="" +PKG_BUILD_DEPENDS_TARGET="toolchain" PKG_PRIORITY="optional" PKG_SECTION="audio" PKG_SHORTDESC="alsa-utils: Advanced Linux Sound Architecture utilities" PKG_LONGDESC="This package includes the utilities for ALSA, like alsamixer, aplay, arecord, alsactl, iecset and speaker-test." -PKG_IS_ADDON="no" +PKG_IS_ADDON="no" PKG_AUTORECONF="yes" + +# package specific configure options +PKG_CONFIGURE_OPTS_TARGET="--disable-dependency-tracking \ + --disable-xmlto \ + --disable-alsamixer \ + --disable-alsaconf \ + --disable-alsaloop \ + --enable-alsatest \ + --disable-nls" + + +post_makeinstall_target() { + rm -rf $INSTALL/lib $INSTALL/var + rm -rf $INSTALL/usr/share/alsa/speaker-test + rm -rf $INSTALL/usr/share/sounds + + for i in aconnect alsaucm amidi aplaymidi arecord arecordmidi aseqdump aseqnet iecset; do + rm -rf $INSTALL/usr/bin/$i + done + + mkdir -p $INSTALL/lib/udev + cp $PKG_DIR/scripts/soundconfig $INSTALL/lib/udev +} diff --git a/packages/audio/alsa-utils/scripts/soundconfig b/packages/audio/alsa/alsa-utils/scripts/soundconfig similarity index 100% rename from packages/audio/alsa-utils/scripts/soundconfig rename to packages/audio/alsa/alsa-utils/scripts/soundconfig diff --git a/packages/audio/alsa-utils/udev.d/40-alsa.rules b/packages/audio/alsa/alsa-utils/udev.d/40-alsa.rules similarity index 100% rename from packages/audio/alsa-utils/udev.d/40-alsa.rules rename to packages/audio/alsa/alsa-utils/udev.d/40-alsa.rules