remove dependency on kmod-pwc since we also have kmod-usb-pwc
[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: Makefile 5329 2006-10-28 22:43:08Z nico $
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=sox
12 PKG_VERSION:=12.18.2
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@SF/sox
17 PKG_MD5SUM:=ba25e512a6c824d6e56d76767a18af99
18 PKG_CAT:=zcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/sox
26 SECTION:=sound
27 CATEGORY:=Sound
28 DEPENDS:=+libflac +libid3tag +libmad +libvorbisidec +libnotimpl
29 TITLE:=Sox is a general purpose sound converter/player/recorder
30 DESCRIPTION:=\
31 SoX is a command line utility that can convert various formats\\\
32 of computer audio files in to other formats. It can also apply\\\
33 various effects to these sound files during the conversion.\\\
34 As an added bonus, SoX can play and record audio files on\\\
35 several unix-style platforms.
36 URL:=http://sox.sourceforge.net/
37 endef
38
39 define Build/Configure
40 $(call Build/Configure/Default, \
41 --disable-external-gsm \
42 , \
43 LIBS="-lnotimpl -lm" \
44 )
45 endef
46
47 define Build/Compile
48 $(MAKE) -C $(PKG_BUILD_DIR) \
49 DESTDIR="$(PKG_INSTALL_DIR)" \
50 STAGING_DIR="$(STAGING_DIR)" \
51 all
52 endef
53
54 define Package/sox/install
55 $(INSTALL_DIR) $(1)/usr/bin
56 $(CP) $(PKG_BUILD_DIR)/src/{play,sox,soxmix} $(1)/usr/bin/
57 endef
58
59 $(eval $(call BuildPackage,sox))