Merge pull request #4948 from ldir-EDB0/remwireguard
[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:=2
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
21 PKG_INSTALL:=1
22
23 include $(INCLUDE_DIR)/package.mk
24
25 TARGET_LDFLAGS+= \
26 -Wl,-rpath-link=$(STAGING_DIR)/usr/lib
27
28 define Package/sox
29 SECTION:=sound
30 CATEGORY:=Sound
31 DEPENDS:=+lame-lib +libmad +libid3tag +libmagic \
32 +libvorbis +alsa-lib +libflac
33 TITLE:=Sox is a general purpose sound converter/player/recorder
34 URL:=http://sox.sourceforge.net/
35 endef
36
37 define Package/sox/description
38 SoX is a command line utility that can convert various formats
39 of computer audio files in to other formats. It can also apply
40 various effects to these sound files during the conversion.
41 As an added bonus, SoX can play and record audio files on
42 several unix-style platforms.
43 endef
44
45 CONFIGURE_ARGS += \
46 --without-oss \
47 --without-ao \
48 --with-alsa \
49 --without-libltdl \
50 --with-flac \
51 --without-ladspa \
52 --without-png \
53 --without-sndfile \
54 --with-lame \
55 --with-id3tag \
56 --disable-openmp
57
58 define Build/InstallDev
59 $(INSTALL_DIR) $(1)/usr/include
60 $(CP) \
61 $(PKG_INSTALL_DIR)/usr/include \
62 $(1)/usr/include/
63 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
64 $(CP) \
65 $(PKG_INSTALL_DIR)/usr/lib/libsox.{a,so*,la} \
66 $(1)/usr/lib/
67 $(INSTALL_DATA) \
68 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
69 $(1)/usr/lib/pkgconfig/
70 endef
71
72 define Package/sox/install
73 $(INSTALL_DIR) $(1)/usr/bin
74 $(INSTALL_DIR) $(1)/usr/lib
75 $(CP) $(PKG_INSTALL_DIR)/usr/bin/{play,rec,sox} $(1)/usr/bin/
76 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsox.so* $(1)/usr/lib/
77 endef
78
79 $(eval $(call BuildPackage,sox))