dc374e045c4a4e42e5ef12c14bdade55a4132c8a
[openwrt/svn-archive/archive.git] / sound / sox / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=sox
12 PKG_VERSION:=14.0.1
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@SF/sox
17 PKG_MD5SUM:=6c95af60b20b9655531bf3162c0be937
18
19 PKG_FIXUP = libtool
20 PKG_BUILD_DEPENDS:=libnotimpl
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/sox
25 SECTION:=sound
26 CATEGORY:=Sound
27 DEPENDS:=+libflac +libid3tag +libmad +libvorbisidec +libgsm
28 TITLE:=Sox is a general purpose sound converter/player/recorder
29 URL:=http://sox.sourceforge.net/
30 endef
31
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.
38 endef
39
40 define Build/Configure
41 $(call Build/Configure/Default, \
42 --disable-external-gsm \
43 , \
44 LIBS="-lnotimpl -lm" \
45 )
46 endef
47
48 define Build/Compile
49 $(MAKE) -C $(PKG_BUILD_DIR) \
50 DESTDIR="$(PKG_INSTALL_DIR)" \
51 STAGING_DIR="$(STAGING_DIR)" \
52 all
53 endef
54
55 define Package/sox/install
56 $(INSTALL_DIR) $(1)/usr/bin
57 $(CP) $(PKG_BUILD_DIR)/src/{play,sox} $(1)/usr/bin/
58 endef
59
60 $(eval $(call BuildPackage,sox))