2 # Copyright (C) 2008 David Cooper <dave@kupesoft.com>
3 # Copyright (C) 2006-2014 OpenWrt.org
5 # This is free software, licensed under the GNU General Public License v2.
6 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
16 PKG_SOURCE_URL
:=@SF
/sox
17 PKG_MD5SUM
:=ff9ca6aca972549de0e80e8e30ed379c
19 PKG_LICENSE
:=LGPL-2.1 GPL-2.0
20 PKG_LICENSE_FILES
:=COPYING LICENSE.LGPL LICENSE.GPL
24 include $(INCLUDE_DIR
)/package.mk
27 -Wl
,-rpath-link
=$(STAGING_DIR
)/usr
/lib
32 DEPENDS
:=+BUILD_PATENTED
:lame-lib
+BUILD_PATENTED
:libmad
+BUILD_PATENTED
:libid3tag \
33 +libvorbis
+libvorbisidec
+alsa-lib
+libsndfile
+libflac \
34 +libmagic
+libpng
+libffmpeg
35 TITLE
:=Sox is a general purpose sound converter
/player
/recorder
36 URL
:=http
://sox.sourceforge.net
/
37 MAINTAINER
:=Hamish Guthrie
<hcg@openwrt.org
>
40 define Package
/sox
/description
41 SoX is a command line utility that can convert various formats
42 of computer audio files in to other formats. It can also apply
43 various effects to these sound files during the conversion.
44 As an added bonus
, SoX can play and record audio files on
45 several unix-style platforms.
48 define Build
/Configure
49 $(call Build
/Configure
/Default
, \
59 --without-samplerate \
61 --$(if
$(CONFIG_BUILD_PATENTED
),with-mad
,without-mad
) \
62 --$(if
$(CONFIG_BUILD_PATENTED
),with-lame
,without-lame
) \
63 --$(if
$(CONFIG_BUILD_PATENTED
),with-id3tag
,without-id3tag
) \
67 define Build
/InstallDev
68 $(INSTALL_DIR
) $(1)/usr
/include
70 $(PKG_INSTALL_DIR
)/usr
/include \
72 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
74 $(PKG_INSTALL_DIR
)/usr
/lib
/libsox.
{a
,so
*,la
} \
77 $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/* \
78 $(1)/usr
/lib
/pkgconfig
/
81 define Package
/sox
/install
82 $(INSTALL_DIR
) $(1)/usr
/bin
83 $(INSTALL_DIR
) $(1)/usr
/lib
84 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/{play
,rec
,sox
} $(1)/usr
/bin
/
85 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libsox.so
* $(1)/usr
/lib
/
88 $(eval
$(call BuildPackage
,sox
))