1
0

Makefile 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. #
  2. # Copyright (C) 2008 David Cooper <dave@kupesoft.com>
  3. # Copyright (C) 2006-2017 OpenWrt
  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.2
  11. PKG_RELEASE:=1
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  13. PKG_SOURCE_URL:=@SF/sox
  14. PKG_MD5SUM:=81a6956d4330e75b5827316e44ae381e6f1e8928003c6aa45896da9041ea149c
  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
  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. --without-amr-wb \
  47. --without-amr-nb \
  48. --without-samplerate \
  49. --without-ladspa \
  50. --$(if $(CONFIG_BUILD_PATENTED),with-mad,without-mad) \
  51. --$(if $(CONFIG_BUILD_PATENTED),with-lame,without-lame) \
  52. --$(if $(CONFIG_BUILD_PATENTED),with-id3tag,without-id3tag) \
  53. )
  54. endef
  55. define Build/InstallDev
  56. $(INSTALL_DIR) $(1)/usr/include
  57. $(CP) \
  58. $(PKG_INSTALL_DIR)/usr/include \
  59. $(1)/usr/include/
  60. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  61. $(CP) \
  62. $(PKG_INSTALL_DIR)/usr/lib/libsox.{a,so*,la} \
  63. $(1)/usr/lib/
  64. $(INSTALL_DATA) \
  65. $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
  66. $(1)/usr/lib/pkgconfig/
  67. endef
  68. define Package/sox/install
  69. $(INSTALL_DIR) $(1)/usr/bin
  70. $(INSTALL_DIR) $(1)/usr/lib
  71. $(CP) $(PKG_INSTALL_DIR)/usr/bin/{play,rec,sox} $(1)/usr/bin/
  72. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsox.so* $(1)/usr/lib/
  73. endef
  74. $(eval $(call BuildPackage,sox))