2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR)/rules.mk
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@SF/sox
17 PKG_MD5SUM:=ba25e512a6c824d6e56d76767a18af99
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
23 PKG_BUILD_DEPENDS:=libnotimpl
25 include $(INCLUDE_DIR)/package.mk
30 DEPENDS:=+libflac +libid3tag +libmad +libvorbisidec
31 TITLE:=Sox is a general purpose sound converter/player/recorder
32 URL:=http://sox.sourceforge.net/
35 define Package/sox/description
36 SoX is a command line utility that can convert various formats
37 of computer audio files in to other formats. It can also apply
38 various effects to these sound files during the conversion.
39 As an added bonus, SoX can play and record audio files on
40 several unix-style platforms.
43 define Build/Configure
44 $(call Build/Configure/Default, \
45 --disable-external-gsm \
47 LIBS="-lnotimpl -lm" \
52 $(MAKE) -C $(PKG_BUILD_DIR) \
53 DESTDIR="$(PKG_INSTALL_DIR)" \
54 STAGING_DIR="$(STAGING_DIR)" \
58 define Package/sox/install
59 $(INSTALL_DIR) $(1)/usr/bin
60 $(CP) $(PKG_BUILD_DIR)/src/{play,sox,soxmix} $(1)/usr/bin/
63 $(eval $(call BuildPackage,sox))