autoreconfckage] sox: Update maintainer and copyright notice
[openwrt/svn-archive/archive.git] / sound / sox / Makefile
1 #
2 # Copyright (C) 2008 David Cooper <dave@kupesoft.com>
3 # Copyright (C) 2006-2012 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.0
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16 PKG_SOURCE_URL:=@SF/sox
17 PKG_MD5SUM:=813807c6d6fcd4b0af5c995e61f46687
18
19 PKG_FIXUP:=autoreconf
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 # NOTE: libflac is out of date for 8.09's freeze and can't be compiled in
29
30 define Package/sox
31 SECTION:=sound
32 CATEGORY:=Sound
33 DEPENDS:=+BUILD_PATENTED:lame-lib +BUILD_PATENTED:libmad +BUILD_PATENTED:libid3tag +libvorbis +libvorbisidec +libgsm +alsa-lib +libsndfile +libflac +ffmpeg +libmagic +libpng
34 TITLE:=Sox is a general purpose sound converter/player/recorder
35 URL:=http://sox.sourceforge.net/
36 MAINTAINER:=Hamish Guthrie <hcg@openwrt.org>
37 endef
38
39 define Package/sox/description
40 SoX is a command line utility that can convert various formats
41 of computer audio files in to other formats. It can also apply
42 various effects to these sound files during the conversion.
43 As an added bonus, SoX can play and record audio files on
44 several unix-style platforms.
45 endef
46
47 define Build/Configure
48 $(call Build/Configure/Default, \
49 --disable-external-gsm \
50 --disable-oss \
51 --enable-alsa \
52 --disable-libao \
53 --without-libltdl \
54 --with-ogg \
55 --with-flac \
56 --with-ffmpeg \
57 --without-amr-wb \
58 --without-amr-nb \
59 --without-samplerate \
60 --without-ladspa \
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) \
64 )
65 endef
66
67 define Build/InstallDev
68 $(INSTALL_DIR) $(1)/usr/include
69 $(CP) \
70 $(PKG_INSTALL_DIR)/usr/include \
71 $(1)/usr/include/
72 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
73 $(CP) \
74 $(PKG_INSTALL_DIR)/usr/lib/libsox.{a,so*,la} \
75 $(1)/usr/lib/
76 $(INSTALL_DATA) \
77 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
78 $(1)/usr/lib/pkgconfig/
79 endef
80
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/
86 endef
87
88 $(eval $(call BuildPackage,sox))
89