packages/sound/sox/Makefile
florian f2faeab9df Update sox to 14.0.1, soxmix is removed upstream, add libgsm dependency (#3616)
git-svn-id: svn://svn.openwrt.org/openwrt/packages@11828 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-07-14 12:27:13 +00:00

63 lines
1.4 KiB
Makefile

#
# Copyright (C) 2006 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
# $Id$
include $(TOPDIR)/rules.mk
PKG_NAME:=sox
PKG_VERSION:=14.0.1
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=@SF/sox
PKG_MD5SUM:=6c95af60b20b9655531bf3162c0be937
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
PKG_BUILD_DEPENDS:=libnotimpl
include $(INCLUDE_DIR)/package.mk
define Package/sox
SECTION:=sound
CATEGORY:=Sound
DEPENDS:=+libflac +libid3tag +libmad +libvorbisidec +libgsm
TITLE:=Sox is a general purpose sound converter/player/recorder
URL:=http://sox.sourceforge.net/
endef
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
define Build/Configure
$(call Build/Configure/Default, \
--disable-external-gsm \
, \
LIBS="-lnotimpl -lm" \
)
endef
define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR) \
DESTDIR="$(PKG_INSTALL_DIR)" \
STAGING_DIR="$(STAGING_DIR)" \
all
endef
define Package/sox/install
$(INSTALL_DIR) $(1)/usr/bin
$(CP) $(PKG_BUILD_DIR)/src/{play,sox} $(1)/usr/bin/
endef
$(eval $(call BuildPackage,sox))