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:=6c95af60b20b9655531bf3162c0be937
20 PKG_BUILD_DEPENDS:=libnotimpl
22 include $(INCLUDE_DIR)/package.mk
27 DEPENDS:=+libflac +libid3tag +libmad +libvorbisidec +libgsm
28 TITLE:=Sox is a general purpose sound converter/player/recorder
29 URL:=http://sox.sourceforge.net/
32 define Package/sox/description
33 SoX is a command line utility that can convert various formats
34 of computer audio files in to other formats. It can also apply
35 various effects to these sound files during the conversion.
36 As an added bonus, SoX can play and record audio files on
37 several unix-style platforms.
40 define Build/Configure
41 $(call Build/Configure/Default, \
42 --disable-external-gsm \
44 LIBS="-lnotimpl -lm" \
49 $(MAKE) -C $(PKG_BUILD_DIR) \
50 DESTDIR="$(PKG_INSTALL_DIR)" \
51 STAGING_DIR="$(STAGING_DIR)" \
55 define Package/sox/install
56 $(INSTALL_DIR) $(1)/usr/bin
57 $(CP) $(PKG_BUILD_DIR)/src/{play,sox} $(1)/usr/bin/
60 $(eval $(call BuildPackage,sox))