Makefile cleanups, round 3
[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_BUILD_DEPENDS:=libnotimpl
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/sox
24 SECTION:=sound
25 CATEGORY:=Sound
26 DEPENDS:=+libflac +libid3tag +libmad +libvorbisidec +libgsm
27 TITLE:=Sox is a general purpose sound converter/player/recorder
28 URL:=http://sox.sourceforge.net/
29 endef
30
31 define Package/sox/description
32 SoX is a command line utility that can convert various formats
33 of computer audio files in to other formats. It can also apply
34 various effects to these sound files during the conversion.
35 As an added bonus, SoX can play and record audio files on
36 several unix-style platforms.
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} $(1)/usr/bin/
57 endef
58
59 $(eval $(call BuildPackage,sox))