2014-03-27 07:04:33 +00:00
|
|
|
#
|
2008-12-02 15:50:40 +00:00
|
|
|
# Copyright (C) 2008 David Cooper <dave@kupesoft.com>
|
2012-09-12 16:54:27 +00:00
|
|
|
# Copyright (C) 2006-2012 OpenWrt.org
|
2006-11-02 22:09:39 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=sox
|
2013-07-28 23:28:23 +00:00
|
|
|
PKG_VERSION:=14.4.1
|
2012-09-12 14:06:21 +00:00
|
|
|
PKG_RELEASE:=1
|
2006-11-02 22:09:39 +00:00
|
|
|
|
2012-09-12 14:06:21 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
2006-11-02 22:09:39 +00:00
|
|
|
PKG_SOURCE_URL:=@SF/sox
|
2013-07-28 23:28:23 +00:00
|
|
|
PKG_MD5SUM:=ff9ca6aca972549de0e80e8e30ed379c
|
2006-11-02 22:09:39 +00:00
|
|
|
|
2012-10-19 15:36:24 +00:00
|
|
|
PKG_LICENSE:=LGPLv2.1 GPLv2
|
|
|
|
PKG_LICENSE_FILES:=COPYING LICENSE.LGPL LICENSE.GPL
|
|
|
|
|
2010-04-20 17:20:08 +00:00
|
|
|
PKG_INSTALL:=1
|
|
|
|
|
2006-11-02 22:09:39 +00:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
2010-04-20 17:20:08 +00:00
|
|
|
TARGET_LDFLAGS+= \
|
|
|
|
-Wl,-rpath-link=$(STAGING_DIR)/usr/lib
|
|
|
|
|
2006-11-02 22:09:39 +00:00
|
|
|
define Package/sox
|
|
|
|
SECTION:=sound
|
|
|
|
CATEGORY:=Sound
|
2013-01-17 15:51:44 +00:00
|
|
|
DEPENDS:=+BUILD_PATENTED:lame-lib +BUILD_PATENTED:libmad +BUILD_PATENTED:libid3tag +libvorbis +libvorbisidec +libgsm +alsa-lib +libsndfile +libflac +ffmpeg +libmagic +libpng +libao
|
2006-11-02 22:09:39 +00:00
|
|
|
TITLE:=Sox is a general purpose sound converter/player/recorder
|
|
|
|
URL:=http://sox.sourceforge.net/
|
2012-09-12 16:54:27 +00:00
|
|
|
MAINTAINER:=Hamish Guthrie <hcg@openwrt.org>
|
2006-11-02 22:09:39 +00:00
|
|
|
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 \
|
2010-04-20 17:20:08 +00:00
|
|
|
--disable-oss \
|
|
|
|
--enable-alsa \
|
|
|
|
--disable-libao \
|
2008-12-02 15:50:40 +00:00
|
|
|
--without-libltdl \
|
|
|
|
--with-ogg \
|
2012-09-12 14:06:21 +00:00
|
|
|
--with-flac \
|
|
|
|
--with-ffmpeg \
|
2010-04-20 17:20:08 +00:00
|
|
|
--without-amr-wb \
|
|
|
|
--without-amr-nb \
|
|
|
|
--without-samplerate \
|
|
|
|
--without-ladspa \
|
|
|
|
--$(if $(CONFIG_BUILD_PATENTED),with-mad,without-mad) \
|
|
|
|
--$(if $(CONFIG_BUILD_PATENTED),with-lame,without-lame) \
|
|
|
|
--$(if $(CONFIG_BUILD_PATENTED),with-id3tag,without-id3tag) \
|
2006-11-02 22:09:39 +00:00
|
|
|
)
|
|
|
|
endef
|
|
|
|
|
2012-09-12 14:06:21 +00:00
|
|
|
define Build/InstallDev
|
|
|
|
$(INSTALL_DIR) $(1)/usr/include
|
|
|
|
$(CP) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/include \
|
|
|
|
$(1)/usr/include/
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
|
|
|
|
$(CP) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/lib/libsox.{a,so*,la} \
|
|
|
|
$(1)/usr/lib/
|
|
|
|
$(INSTALL_DATA) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
|
|
|
|
$(1)/usr/lib/pkgconfig/
|
|
|
|
endef
|
|
|
|
|
2006-11-02 22:09:39 +00:00
|
|
|
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/
|
2012-09-12 14:06:21 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libsox.so* $(1)/usr/lib/
|
2006-11-02 22:09:39 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,sox))
|