2006-11-02 22:09:39 +00:00
|
|
|
#
|
2008-12-02 15:50:40 +00:00
|
|
|
# Copyright (C) 2008 David Cooper <dave@kupesoft.com>
|
2006-11-02 22:09:39 +00:00
|
|
|
# Copyright (C) 2006 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
2007-03-04 04:19:46 +00:00
|
|
|
# $Id$
|
2006-11-02 22:09:39 +00:00
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=sox
|
2008-07-14 12:27:13 +00:00
|
|
|
PKG_VERSION:=14.0.1
|
2008-12-02 15:50:40 +00:00
|
|
|
PKG_RELEASE:=2
|
2006-11-02 22:09:39 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=@SF/sox
|
2008-07-14 12:27:13 +00:00
|
|
|
PKG_MD5SUM:=6c95af60b20b9655531bf3162c0be937
|
2006-11-02 22:09:39 +00:00
|
|
|
|
2008-08-06 18:34:17 +00:00
|
|
|
PKG_FIXUP = libtool
|
2007-01-22 17:33:10 +00:00
|
|
|
PKG_BUILD_DEPENDS:=libnotimpl
|
2007-01-14 00:38:10 +00:00
|
|
|
|
2006-11-02 22:09:39 +00:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
2008-12-02 15:50:40 +00:00
|
|
|
# NOTE: libflac is out of date for 8.09's freeze and can't be compiled in
|
|
|
|
|
2006-11-02 22:09:39 +00:00
|
|
|
define Package/sox
|
|
|
|
SECTION:=sound
|
|
|
|
CATEGORY:=Sound
|
2008-12-02 15:50:40 +00:00
|
|
|
DEPENDS:=+libmad +libvorbis +libvorbisidec +libgsm
|
2006-11-02 22:09:39 +00:00
|
|
|
TITLE:=Sox is a general purpose sound converter/player/recorder
|
|
|
|
URL:=http://sox.sourceforge.net/
|
|
|
|
endef
|
|
|
|
|
2007-10-14 04:32:56 +00:00
|
|
|
define Package/sox/description
|
|
|
|
SoX is a command line utility that can convert various formats
|
|
|
|
of computer audio files in to other formats. It can also apply
|
|
|
|
various effects to these sound files during the conversion.
|
|
|
|
As an added bonus, SoX can play and record audio files on
|
|
|
|
several unix-style platforms.
|
|
|
|
endef
|
|
|
|
|
2006-11-02 22:09:39 +00:00
|
|
|
define Build/Configure
|
|
|
|
$(call Build/Configure/Default, \
|
|
|
|
--disable-external-gsm \
|
2008-12-02 15:50:40 +00:00
|
|
|
--without-libltdl \
|
|
|
|
--with-ogg \
|
2006-11-02 23:30:42 +00:00
|
|
|
, \
|
|
|
|
LIBS="-lnotimpl -lm" \
|
2006-11-02 22:09:39 +00:00
|
|
|
)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Compile
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
|
|
|
DESTDIR="$(PKG_INSTALL_DIR)" \
|
|
|
|
STAGING_DIR="$(STAGING_DIR)" \
|
2008-12-02 15:50:40 +00:00
|
|
|
all install
|
2006-11-02 22:09:39 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/sox/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
2008-12-02 15:50:40 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/bin/{play,rec,sox} $(1)/usr/bin/
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/{libsfx.so*,libsox.so*} $(1)/usr/lib/
|
2006-11-02 22:09:39 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,sox))
|
2008-12-02 15:50:40 +00:00
|
|
|
|