wifidog depends on libpthread
[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 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 PKG_BUILD_DEPENDS:=libnotimpl
24
25 include $(INCLUDE_DIR)/package.mk
26
27 define Package/sox
28 SECTION:=sound
29 CATEGORY:=Sound
30 DEPENDS:=+libflac +libid3tag +libmad +libvorbisidec
31 TITLE:=Sox is a general purpose sound converter/player/recorder
32 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 URL:=http://sox.sourceforge.net/
39 endef
40
41 define Build/Configure
42 $(call Build/Configure/Default, \
43 --disable-external-gsm \
44 , \
45 LIBS="-lnotimpl -lm" \
46 )
47 endef
48
49 define Build/Compile
50 $(MAKE) -C $(PKG_BUILD_DIR) \
51 DESTDIR="$(PKG_INSTALL_DIR)" \
52 STAGING_DIR="$(STAGING_DIR)" \
53 all
54 endef
55
56 define Package/sox/install
57 $(INSTALL_DIR) $(1)/usr/bin
58 $(CP) $(PKG_BUILD_DIR)/src/{play,sox,soxmix} $(1)/usr/bin/
59 endef
60
61 $(eval $(call BuildPackage,sox))