Merge pull request #17303 from CarlosDerSeher/feature_bt_agent
[feed/packages.git] / sound / sox / Makefile
1 #
2 # This is free software, licensed under the GNU General Public License v2.
3 # See /LICENSE for more information.
4 #
5
6 include $(TOPDIR)/rules.mk
7
8 PKG_NAME:=sox
9 PKG_VERSION:=14.4.2
10 PKG_RELEASE:=4
11
12 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
13 PKG_SOURCE_URL:=@SF/sox
14 PKG_HASH:=81a6956d4330e75b5827316e44ae381e6f1e8928003c6aa45896da9041ea149c
15
16 PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net>
17 PKG_LICENSE:=LGPL-2.1 GPL-2.0
18 PKG_LICENSE_FILES:=COPYING LICENSE.LGPL LICENSE.GPL
19
20 PKG_INSTALL:=1
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/sox
25 SECTION:=sound
26 CATEGORY:=Sound
27 DEPENDS:=+lame-lib +libmad +libid3tag +libmagic \
28 +libvorbis +alsa-lib +libflac
29 TITLE:=Sox is a general purpose sound converter/player/recorder
30 URL:=http://sox.sourceforge.net/
31 endef
32
33 define Package/sox/description
34 SoX is a command line utility that can convert various formats
35 of computer audio files in to other formats. It can also apply
36 various effects to these sound files during the conversion.
37 As an added bonus, SoX can play and record audio files on
38 several unix-style platforms.
39 endef
40
41 CONFIGURE_ARGS += \
42 --without-oss \
43 --without-ao \
44 --with-alsa \
45 --without-libltdl \
46 --with-flac \
47 --without-ladspa \
48 --without-png \
49 --without-sndfile \
50 --without-opus \
51 --with-lame \
52 --with-id3tag \
53 --disable-openmp
54
55 define Build/InstallDev
56 $(INSTALL_DIR) $(1)/usr/include
57 $(CP) \
58 $(PKG_INSTALL_DIR)/usr/include \
59 $(1)/usr/include/
60 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
61 $(CP) \
62 $(PKG_INSTALL_DIR)/usr/lib/libsox.{a,so*,la} \
63 $(1)/usr/lib/
64 $(INSTALL_DATA) \
65 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
66 $(1)/usr/lib/pkgconfig/
67 endef
68
69 define Package/sox/install
70 $(INSTALL_DIR) $(1)/usr/bin
71 $(INSTALL_DIR) $(1)/usr/lib
72 $(CP) $(PKG_INSTALL_DIR)/usr/bin/{play,rec,sox} $(1)/usr/bin/
73 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsox.so* $(1)/usr/lib/
74 endef
75
76 $(eval $(call BuildPackage,sox))