Add missing patches to have the right path to the dsp device
[openwrt/svn-archive/archive.git] / sound / sox / Makefile
1 #
2 # Copyright (C) 2008 David Cooper <dave@kupesoft.com>
3 # Copyright (C) 2006 OpenWrt.org
4 #
5 # This is free software, licensed under the GNU General Public License v2.
6 # See /LICENSE for more information.
7 #
8 # $Id$
9
10 include $(TOPDIR)/rules.mk
11
12 PKG_NAME:=sox
13 PKG_VERSION:=14.0.1
14 PKG_RELEASE:=2
15
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
17 PKG_SOURCE_URL:=@SF/sox
18 PKG_MD5SUM:=6c95af60b20b9655531bf3162c0be937
19
20 PKG_FIXUP = libtool
21 PKG_BUILD_DEPENDS:=libnotimpl
22
23 include $(INCLUDE_DIR)/package.mk
24
25 # NOTE: libflac is out of date for 8.09's freeze and can't be compiled in
26
27 define Package/sox
28 SECTION:=sound
29 CATEGORY:=Sound
30 DEPENDS:=+libmad +libvorbis +libvorbisidec +libgsm
31 TITLE:=Sox is a general purpose sound converter/player/recorder
32 URL:=http://sox.sourceforge.net/
33 endef
34
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.
41 endef
42
43 define Build/Configure
44 $(call Build/Configure/Default, \
45 --disable-external-gsm \
46 --without-libltdl \
47 --with-ogg \
48 , \
49 LIBS="-lnotimpl -lm" \
50 )
51 endef
52
53 define Build/Compile
54 $(MAKE) -C $(PKG_BUILD_DIR) \
55 DESTDIR="$(PKG_INSTALL_DIR)" \
56 STAGING_DIR="$(STAGING_DIR)" \
57 all install
58 endef
59
60 define Package/sox/install
61 $(INSTALL_DIR) $(1)/usr/bin
62 $(INSTALL_DIR) $(1)/usr/lib
63 $(CP) $(PKG_INSTALL_DIR)/usr/bin/{play,rec,sox} $(1)/usr/bin/
64 $(CP) $(PKG_INSTALL_DIR)/usr/lib/{libsfx.so*,libsox.so*} $(1)/usr/lib/
65 endef
66
67 $(eval $(call BuildPackage,sox))
68