docker-compose: Update to version 2.28.0
[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 PKG_CPE_ID:=cpe:/a:sound_exchange_project:sound_exchange
20
21 PKG_INSTALL:=1
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/sox
26 SECTION:=sound
27 CATEGORY:=Sound
28 DEPENDS:=+lame-lib +libmad +libid3tag +libmagic \
29 +libvorbis +alsa-lib +libflac
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 CONFIGURE_ARGS += \
43 --without-oss \
44 --without-ao \
45 --with-alsa \
46 --without-libltdl \
47 --with-flac \
48 --without-ladspa \
49 --without-png \
50 --without-sndfile \
51 --without-opus \
52 --with-lame \
53 --with-id3tag \
54 --disable-openmp
55
56 define Build/InstallDev
57 $(INSTALL_DIR) $(1)/usr/include
58 $(CP) \
59 $(PKG_INSTALL_DIR)/usr/include \
60 $(1)/usr/include/
61 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
62 $(CP) \
63 $(PKG_INSTALL_DIR)/usr/lib/libsox.{a,so*,la} \
64 $(1)/usr/lib/
65 $(INSTALL_DATA) \
66 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
67 $(1)/usr/lib/pkgconfig/
68 endef
69
70 define Package/sox/install
71 $(INSTALL_DIR) $(1)/usr/bin
72 $(INSTALL_DIR) $(1)/usr/lib
73 $(CP) $(PKG_INSTALL_DIR)/usr/bin/{play,rec,sox} $(1)/usr/bin/
74 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsox.so* $(1)/usr/lib/
75 endef
76
77 $(eval $(call BuildPackage,sox))