This adds a package for the esound soundserver. I think I got it right now.
Signed-off-by: Martin Metzker <[EMAIL PROTECTED]> --- henschelring/martin/feeds/packages/sound/esound/Makefile 1970-01-01 01:00:00.000000000 +0100 +++ steffi/openwrt/feeds/packages/sound/esound/Makefile 2008-02-21 17:39:59.108615216 +0100 @@ -0,0 +1,75 @@ +# +# Copyright (C) 2008 OpenWrt.org +# Copyright (C) 2007 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# +# $Id: Makefile 9695 2007-12-09 18:59:01Z nbd $ + +include $(TOPDIR)/rules.mk + +PKG_NAME:=esound +PKG_VERSION:=0.2.38 +PKG_RELEASE:=1 + +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz +PKG_SOURCE_URL:=ftp://ftp.gnome.org/pub/gnome/sources/esound/0.2/ +PKG_MD5SUM:=77c4e9805a017fba06552487df3c6662 + +PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) +PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install + +include $(INCLUDE_DIR)/package.mk + +define Package/esound + SECTION:=sound + CATEGORY:=Sound + DEPENDS:=+libaudiofile +libwrap +alsa-lib + TITLE:=The Enlightend Sound Daemon + URL:=http://www.tux.org/~ricdude/EsounD.html +endef + +define Package/esound/description + The Enlightened Sound Daemon can mix several audio streams into one + sound device. It will mix in pre-loaded samples, too. Want to play a + frightening sound whenever the user presses the "go" button? + No problem, just cache it, and play it back by sample id number. +endef + +define Package/esound/conffiles +/etc/esd/esd.conf +endef + +define Build/Configure + $(call Build/Configure/Default, \ + --disable-ipv6 \ + --disable-oss \ + --enable-alsa \ + --with-libwrap \ + --disable-arts \ + --prefix=/usr \ + --sysconfdir=/etc/esd \ + LIBS="-L$(TOOLCHAIN_DIR)/lib" \ + CFLAGS="$(TARGET_CFLAGS) -fno-builtin-sin -fno-builtin-cos" \ + ) +endef + +define Build/Compile + $(MAKE) -C $(PKG_BUILD_DIR) \ + DESTDIR="$(PKG_INSTALL_DIR)" \ + all install +endef + +define Package/esound/install + $(INSTALL_DIR) $(1)/etc/esd + $(INSTALL_DIR) $(1)/usr/bin + $(INSTALL_DIR) $(1)/usr/lib + $(CP) $(PKG_INSTALL_DIR)/usr/lib/libesd.so* $(1)/usr/lib/ + $(CP) $(TOOLCHAIN_DIR)/lib/libm-* $(1)/usr/lib/ + $(CP) $(TOOLCHAIN_DIR)/lib/libm.* $(1)/usr/lib/ + $(CP) $(PKG_INSTALL_DIR)/etc/esd/esd.conf $(1)/etc/esd/esd.conf + $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/esd $(1)/usr/bin/ +endef + +$(eval $(call BuildPackage,esound)) _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org http://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel