sox: update ffmpeg patches for 2.4.x (deprecated functions), add myself as pkg maintainer
[feed/packages.git] / sound / sox / Makefile
1 #
2 # Copyright (C) 2008 David Cooper <dave@kupesoft.com>
3 # Copyright (C) 2006-2014 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.4.1
13 PKG_RELEASE:=3
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16 PKG_SOURCE_URL:=@SF/sox
17 PKG_MD5SUM:=ff9ca6aca972549de0e80e8e30ed379c
18
19 PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net>
20 PKG_LICENSE:=LGPL-2.1 GPL-2.0
21 PKG_LICENSE_FILES:=COPYING LICENSE.LGPL LICENSE.GPL
22
23
24 PKG_INSTALL:=1
25
26 include $(INCLUDE_DIR)/package.mk
27
28 TARGET_LDFLAGS+= \
29 -Wl,-rpath-link=$(STAGING_DIR)/usr/lib
30
31 define Package/sox
32 SECTION:=sound
33 CATEGORY:=Sound
34 DEPENDS:=+BUILD_PATENTED:lame-lib +BUILD_PATENTED:libmad +BUILD_PATENTED:libid3tag \
35 +libvorbis +libvorbisidec +alsa-lib +libsndfile +libflac \
36 +libmagic +libpng +libffmpeg
37 TITLE:=Sox is a general purpose sound converter/player/recorder
38 URL:=http://sox.sourceforge.net/
39 endef
40
41 define Package/sox/description
42 SoX is a command line utility that can convert various formats
43 of computer audio files in to other formats. It can also apply
44 various effects to these sound files during the conversion.
45 As an added bonus, SoX can play and record audio files on
46 several unix-style platforms.
47 endef
48
49 define Build/Configure
50 $(call Build/Configure/Default, \
51 --without-oss \
52 --without-ao \
53 --with-alsa \
54 --without-libltdl \
55 --with-ogg \
56 --with-flac \
57 --with-ffmpeg \
58 --without-amr-wb \
59 --without-amr-nb \
60 --without-samplerate \
61 --without-ladspa \
62 --$(if $(CONFIG_BUILD_PATENTED),with-mad,without-mad) \
63 --$(if $(CONFIG_BUILD_PATENTED),with-lame,without-lame) \
64 --$(if $(CONFIG_BUILD_PATENTED),with-id3tag,without-id3tag) \
65 )
66 endef
67
68 define Build/InstallDev
69 $(INSTALL_DIR) $(1)/usr/include
70 $(CP) \
71 $(PKG_INSTALL_DIR)/usr/include \
72 $(1)/usr/include/
73 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
74 $(CP) \
75 $(PKG_INSTALL_DIR)/usr/lib/libsox.{a,so*,la} \
76 $(1)/usr/lib/
77 $(INSTALL_DATA) \
78 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
79 $(1)/usr/lib/pkgconfig/
80 endef
81
82 define Package/sox/install
83 $(INSTALL_DIR) $(1)/usr/bin
84 $(INSTALL_DIR) $(1)/usr/lib
85 $(CP) $(PKG_INSTALL_DIR)/usr/bin/{play,rec,sox} $(1)/usr/bin/
86 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsox.so* $(1)/usr/lib/
87 endef
88
89 $(eval $(call BuildPackage,sox))