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.

76 lines
1.9 KiB

  1. #
  2. # This is free software, licensed under the GNU General Public License v2.
  3. # See /LICENSE for more information.
  4. #
  5. include $(TOPDIR)/rules.mk
  6. PKG_NAME:=sox
  7. PKG_VERSION:=14.4.2
  8. PKG_RELEASE:=4
  9. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  10. PKG_SOURCE_URL:=@SF/sox
  11. PKG_HASH:=81a6956d4330e75b5827316e44ae381e6f1e8928003c6aa45896da9041ea149c
  12. PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net>
  13. PKG_LICENSE:=LGPL-2.1 GPL-2.0
  14. PKG_LICENSE_FILES:=COPYING LICENSE.LGPL LICENSE.GPL
  15. PKG_INSTALL:=1
  16. include $(INCLUDE_DIR)/package.mk
  17. define Package/sox
  18. SECTION:=sound
  19. CATEGORY:=Sound
  20. DEPENDS:=+lame-lib +libmad +libid3tag +libmagic \
  21. +libvorbis +alsa-lib +libflac
  22. TITLE:=Sox is a general purpose sound converter/player/recorder
  23. URL:=http://sox.sourceforge.net/
  24. endef
  25. define Package/sox/description
  26. SoX is a command line utility that can convert various formats
  27. of computer audio files in to other formats. It can also apply
  28. various effects to these sound files during the conversion.
  29. As an added bonus, SoX can play and record audio files on
  30. several unix-style platforms.
  31. endef
  32. CONFIGURE_ARGS += \
  33. --without-oss \
  34. --without-ao \
  35. --with-alsa \
  36. --without-libltdl \
  37. --with-flac \
  38. --without-ladspa \
  39. --without-png \
  40. --without-sndfile \
  41. --without-opus \
  42. --with-lame \
  43. --with-id3tag \
  44. --disable-openmp
  45. define Build/InstallDev
  46. $(INSTALL_DIR) $(1)/usr/include
  47. $(CP) \
  48. $(PKG_INSTALL_DIR)/usr/include \
  49. $(1)/usr/include/
  50. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  51. $(CP) \
  52. $(PKG_INSTALL_DIR)/usr/lib/libsox.{a,so*,la} \
  53. $(1)/usr/lib/
  54. $(INSTALL_DATA) \
  55. $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
  56. $(1)/usr/lib/pkgconfig/
  57. endef
  58. define Package/sox/install
  59. $(INSTALL_DIR) $(1)/usr/bin
  60. $(INSTALL_DIR) $(1)/usr/lib
  61. $(CP) $(PKG_INSTALL_DIR)/usr/bin/{play,rec,sox} $(1)/usr/bin/
  62. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsox.so* $(1)/usr/lib/
  63. endef
  64. $(eval $(call BuildPackage,sox))