[Packages] admin/htop: Update to 0.7 (#3415)
[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:=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
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
20 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
21
22 PKG_BUILD_DEPENDS:=libnotimpl
23
24 include $(INCLUDE_DIR)/package.mk
25
26 define Package/sox
27 SECTION:=sound
28 CATEGORY:=Sound
29 DEPENDS:=+libflac +libid3tag +libmad +libvorbisidec
30 TITLE:=Sox is a general purpose sound converter/player/recorder
31 URL:=http://sox.sourceforge.net/
32 endef
33
34 define Package/sox/description
35 SoX is a command line utility that can convert various formats
36 of computer audio files in to other formats. It can also apply
37 various effects to these sound files during the conversion.
38 As an added bonus, SoX can play and record audio files on
39 several unix-style platforms.
40 endef
41
42 define Build/Configure
43 $(call Build/Configure/Default, \
44 --disable-external-gsm \
45 , \
46 LIBS="-lnotimpl -lm" \
47 )
48 endef
49
50 define Build/Compile
51 $(MAKE) -C $(PKG_BUILD_DIR) \
52 DESTDIR="$(PKG_INSTALL_DIR)" \
53 STAGING_DIR="$(STAGING_DIR)" \
54 all
55 endef
56
57 define Package/sox/install
58 $(INSTALL_DIR) $(1)/usr/bin
59 $(CP) $(PKG_BUILD_DIR)/src/{play,sox,soxmix} $(1)/usr/bin/
60 endef
61
62 $(eval $(call BuildPackage,sox))