nuke $Id$ in /packages as well
[packages.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
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=sox
12 PKG_VERSION:=14.0.1
13 PKG_RELEASE:=2
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@SF/sox
17 PKG_MD5SUM:=6c95af60b20b9655531bf3162c0be937
18
19 PKG_FIXUP = libtool
20 PKG_BUILD_DEPENDS:=libnotimpl
21
22 include $(INCLUDE_DIR)/package.mk
23
24 # NOTE: libflac is out of date for 8.09's freeze and can't be compiled in
25
26 define Package/sox
27   SECTION:=sound
28   CATEGORY:=Sound
29   DEPENDS:=+libmad +libvorbis +libvorbisidec +libgsm
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                 --without-libltdl \
46                 --with-ogg \
47                 , \
48                 LIBS="-lnotimpl -lm" \
49         )
50 endef
51
52 define Build/Compile
53         $(MAKE) -C $(PKG_BUILD_DIR) \
54                 DESTDIR="$(PKG_INSTALL_DIR)" \
55                 STAGING_DIR="$(STAGING_DIR)" \
56                 all install
57 endef
58
59 define Package/sox/install
60         $(INSTALL_DIR) $(1)/usr/bin
61         $(INSTALL_DIR) $(1)/usr/lib
62         $(CP) $(PKG_INSTALL_DIR)/usr/bin/{play,rec,sox} $(1)/usr/bin/
63         $(CP) $(PKG_INSTALL_DIR)/usr/lib/{libsfx.so*,libsox.so*} $(1)/usr/lib/
64 endef
65
66 $(eval $(call BuildPackage,sox))
67