You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

89 lines
2.3 KiB

  1. #
  2. # Copyright (C) 2008 David Cooper <dave@kupesoft.com>
  3. # Copyright (C) 2006-2014 OpenWrt.org
  4. #
  5. # This is free software, licensed under the GNU General Public License v2.
  6. # See /LICENSE for more information.
  7. #
  8. include $(TOPDIR)/rules.mk
  9. PKG_NAME:=sox
  10. PKG_VERSION:=14.4.1
  11. PKG_RELEASE:=3
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  13. PKG_SOURCE_URL:=@SF/sox
  14. PKG_MD5SUM:=ff9ca6aca972549de0e80e8e30ed379c
  15. PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net>
  16. PKG_LICENSE:=LGPL-2.1 GPL-2.0
  17. PKG_LICENSE_FILES:=COPYING LICENSE.LGPL LICENSE.GPL
  18. PKG_INSTALL:=1
  19. include $(INCLUDE_DIR)/package.mk
  20. TARGET_LDFLAGS+= \
  21. -Wl,-rpath-link=$(STAGING_DIR)/usr/lib
  22. define Package/sox
  23. SECTION:=sound
  24. CATEGORY:=Sound
  25. DEPENDS:=+BUILD_PATENTED:lame-lib +BUILD_PATENTED:libmad +BUILD_PATENTED:libid3tag \
  26. +libvorbis +libvorbisidec +alsa-lib +libsndfile +libflac \
  27. +libmagic +libpng +libffmpeg
  28. TITLE:=Sox is a general purpose sound converter/player/recorder
  29. URL:=http://sox.sourceforge.net/
  30. endef
  31. define Package/sox/description
  32. SoX is a command line utility that can convert various formats
  33. of computer audio files in to other formats. It can also apply
  34. various effects to these sound files during the conversion.
  35. As an added bonus, SoX can play and record audio files on
  36. several unix-style platforms.
  37. endef
  38. define Build/Configure
  39. $(call Build/Configure/Default, \
  40. --without-oss \
  41. --without-ao \
  42. --with-alsa \
  43. --without-libltdl \
  44. --with-ogg \
  45. --with-flac \
  46. --with-ffmpeg \
  47. --without-amr-wb \
  48. --without-amr-nb \
  49. --without-samplerate \
  50. --without-ladspa \
  51. --$(if $(CONFIG_BUILD_PATENTED),with-mad,without-mad) \
  52. --$(if $(CONFIG_BUILD_PATENTED),with-lame,without-lame) \
  53. --$(if $(CONFIG_BUILD_PATENTED),with-id3tag,without-id3tag) \
  54. )
  55. endef
  56. define Build/InstallDev
  57. $(INSTALL_DIR) $(1)/usr/include
  58. $(CP) \
  59. $(PKG_INSTALL_DIR)/usr/include \
  60. $(1)/usr/include/
  61. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  62. $(CP) \
  63. $(PKG_INSTALL_DIR)/usr/lib/libsox.{a,so*,la} \
  64. $(1)/usr/lib/
  65. $(INSTALL_DATA) \
  66. $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
  67. $(1)/usr/lib/pkgconfig/
  68. endef
  69. define Package/sox/install
  70. $(INSTALL_DIR) $(1)/usr/bin
  71. $(INSTALL_DIR) $(1)/usr/lib
  72. $(CP) $(PKG_INSTALL_DIR)/usr/bin/{play,rec,sox} $(1)/usr/bin/
  73. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsox.so* $(1)/usr/lib/
  74. endef
  75. $(eval $(call BuildPackage,sox))