source: packages/sound/sox/Makefile @ 15454

Last change on this file since 15454 was 15454, checked in by nico, 8 years ago

[packages] remove libnotimpl, missing math functions are provided by uClibc since r10024

  • Property copyright set to Copyright (C) 2006 OpenWrt.org
  • Property svn:eol-style set to native
File size: 1.6 KB
Line 
1#
2# Copyright (C) 2008 David Cooper <dave@kupesoft.com>
3# Copyright (C) 2006 OpenWrt.org
4#
5# This is free software, licensed under the GNU General Public License v2.
6# See /LICENSE for more information.
7#
8
9include $(TOPDIR)/rules.mk
10
11PKG_NAME:=sox
12PKG_VERSION:=14.0.1
13PKG_RELEASE:=2
14
15PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16PKG_SOURCE_URL:=@SF/sox
17PKG_MD5SUM:=6c95af60b20b9655531bf3162c0be937
18
19PKG_FIXUP = libtool
20
21include $(INCLUDE_DIR)/package.mk
22
23# NOTE: libflac is out of date for 8.09's freeze and can't be compiled in
24
25define Package/sox
26  SECTION:=sound
27  CATEGORY:=Sound
28  DEPENDS:=+libmad +libvorbis +libvorbisidec +libgsm
29  TITLE:=Sox is a general purpose sound converter/player/recorder
30  URL:=http://sox.sourceforge.net/
31endef
32
33define 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.
39endef
40
41define Build/Configure
42        $(call Build/Configure/Default, \
43                --disable-external-gsm \
44                --without-libltdl \
45                --with-ogg \
46        )
47endef
48
49define Build/Compile
50        $(MAKE) -C $(PKG_BUILD_DIR) \
51                DESTDIR="$(PKG_INSTALL_DIR)" \
52                STAGING_DIR="$(STAGING_DIR)" \
53                all install
54endef
55
56define Package/sox/install
57        $(INSTALL_DIR) $(1)/usr/bin
58        $(INSTALL_DIR) $(1)/usr/lib
59        $(CP) $(PKG_INSTALL_DIR)/usr/bin/{play,rec,sox} $(1)/usr/bin/
60        $(CP) $(PKG_INSTALL_DIR)/usr/lib/{libsfx.so*,libsox.so*} $(1)/usr/lib/
61endef
62
63$(eval $(call BuildPackage,sox))
64
Note: See TracBrowser for help on using the repository browser.