From 219a6dab8995aad9ac4860cc1a84d6f3509a03a4 Mon Sep 17 00:00:00 2001 From: wbx Date: Sun, 17 May 2009 14:41:34 +0200 Subject: Initial import --- package/esound/Config.in | 10 ++++++++++ package/esound/Makefile | 30 ++++++++++++++++++++++++++++++ package/esound/files/esd.init | 24 ++++++++++++++++++++++++ package/esound/ipkg/esound.control | 6 ++++++ package/esound/ipkg/esound.postinst | 3 +++ package/esound/patches/patch-esd_c | 23 +++++++++++++++++++++++ 6 files changed, 96 insertions(+) create mode 100644 package/esound/Config.in create mode 100644 package/esound/Makefile create mode 100644 package/esound/files/esd.init create mode 100644 package/esound/ipkg/esound.control create mode 100644 package/esound/ipkg/esound.postinst create mode 100644 package/esound/patches/patch-esd_c (limited to 'package/esound') diff --git a/package/esound/Config.in b/package/esound/Config.in new file mode 100644 index 000000000..42f9f77e4 --- /dev/null +++ b/package/esound/Config.in @@ -0,0 +1,10 @@ +config ADK_PACKAGE_ESOUND + prompt "esound............................ Enlightened Sound Daemon" + tristate + default n + select ADK_PACKAGE_LIBAUDIOFILE + help + Sound daemon can be used to play music via the network. For example + with Amarok. You need to connect a sound card to your embedded device. + + http://www.tux.org/~ricdude/download.html diff --git a/package/esound/Makefile b/package/esound/Makefile new file mode 100644 index 000000000..f97d58be0 --- /dev/null +++ b/package/esound/Makefile @@ -0,0 +1,30 @@ +# $Id$ +#- +# This file is part of the OpenADK project. OpenADK is copyrighted +# material, please see the LICENCE file in the top-level directory. + +include ${TOPDIR}/rules.mk + +PKG_NAME:= esound +PKG_VERSION:= 0.2.38 +PKG_RELEASE:= 5 +PKG_MD5SUM:= 77c4e9805a017fba06552487df3c6662 +MASTER_SITES:= ftp://ftp.gnome.org/pub/gnome/sources/esound/0.2/ + +include ${TOPDIR}/mk/package.mk + +$(eval $(call PKG_template,ESOUND,esound,${PKG_VERSION}-${PKG_RELEASE},${ARCH})) + +CONFIGURE_STYLE:= gnu +BUILD_STYLE:= auto +INSTALL_STYLE:= auto + +post-install: + ${INSTALL_DIR} ${IDIR_ESOUND}/etc/init.d + ${INSTALL_DIR} ${IDIR_ESOUND}/usr/bin + ${INSTALL_DIR} ${IDIR_ESOUND}/usr/lib + ${INSTALL_BIN} ${WRKINST}/usr/bin/esd ${IDIR_ESOUND}/usr/bin/ + $(CP) $(WRKINST)/usr/lib/libesd.so.* $(IDIR_ESOUND)/usr/lib/ + $(INSTALL_DATA) ./files/esd.init $(IDIR_ESOUND)/etc/init.d/esd + +include ${TOPDIR}/mk/pkg-bottom.mk diff --git a/package/esound/files/esd.init b/package/esound/files/esd.init new file mode 100644 index 000000000..b6acdb5f3 --- /dev/null +++ b/package/esound/files/esd.init @@ -0,0 +1,24 @@ +#!/bin/sh +#FWINIT 75 +. /etc/rc.conf + +case $1 in +autostart) + test x"${esd:-NO}" = x"NO" && exit 0 + exec sh $0 start + ;; +start) + esd -d /dev/sound/dsp -public -tcp -nobeeps + ;; +stop) + killall esd + ;; +restart) + sh $0 stop + sh $0 start + ;; +*) + echo "Usage: $0 {start | stop | restart}" + ;; +esac +exit 0 diff --git a/package/esound/ipkg/esound.control b/package/esound/ipkg/esound.control new file mode 100644 index 000000000..aa1a8f34d --- /dev/null +++ b/package/esound/ipkg/esound.control @@ -0,0 +1,6 @@ +Package: esound +Version: 0.2.8 +Section: net +Priority: optional +Depends: libaudiofile +Description: Enlightened Sound Daemon diff --git a/package/esound/ipkg/esound.postinst b/package/esound/ipkg/esound.postinst new file mode 100644 index 000000000..866b0f83e --- /dev/null +++ b/package/esound/ipkg/esound.postinst @@ -0,0 +1,3 @@ +#!/bin/sh +. $IPKG_INSTROOT/etc/functions.sh +add_rcconf esd diff --git a/package/esound/patches/patch-esd_c b/package/esound/patches/patch-esd_c new file mode 100644 index 000000000..ebec477a1 --- /dev/null +++ b/package/esound/patches/patch-esd_c @@ -0,0 +1,23 @@ +$Id$ + + cast to double, to avoid sinf, patch from Sven Gugges + +--- esound-0.2.38.orig/esd.c 2007-05-03 22:28:35.000000000 +0200 ++++ esound-0.2.38/esd.c 2007-05-19 17:21:23.000000000 +0200 +@@ -131,14 +131,14 @@ void set_audio_buffer( void *buf, esd_fo + { + case ESD_BITS8: + for ( i = 0 ; i < length ; i+=2 ) { +- sample = sin( (float)(i+offset) * kf ); ++ sample = sin( (double)(i+offset) * kf ); + uc_buf[i] = 127 + magl * sample; + uc_buf[i+1] = 127 + magr * sample; + } + break; + case ESD_BITS16: /* assume same endianness */ + for ( i = 0 ; i < length ; i+=2 ) { +- sample = sin( (float)(i+offset) * kf ); ++ sample = sin( (double)(i+offset) * kf ); + ss_buf[i] = magl * sample; + ss_buf[i+1] = magr * sample; + } -- cgit v1.2.3