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.

80 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. TARGET_LDFLAGS+= \
  18. -Wl,-rpath-link=$(STAGING_DIR)/usr/lib
  19. define Package/sox
  20. SECTION:=sound
  21. CATEGORY:=Sound
  22. DEPENDS:=+lame-lib +libmad +libid3tag +libmagic \
  23. +libvorbis +alsa-lib +libflac
  24. TITLE:=Sox is a general purpose sound converter/player/recorder
  25. URL:=http://sox.sourceforge.net/
  26. endef
  27. define Package/sox/description
  28. SoX is a command line utility that can convert various formats
  29. of computer audio files in to other formats. It can also apply
  30. various effects to these sound files during the conversion.
  31. As an added bonus, SoX can play and record audio files on
  32. several unix-style platforms.
  33. endef
  34. CONFIGURE_ARGS += \
  35. --without-oss \
  36. --without-ao \
  37. --with-alsa \
  38. --without-libltdl \
  39. --with-flac \
  40. --without-ladspa \
  41. --without-png \
  42. --without-sndfile \
  43. --without-opus \
  44. --with-lame \
  45. --with-id3tag \
  46. --disable-openmp
  47. define Build/InstallDev
  48. $(INSTALL_DIR) $(1)/usr/include
  49. $(CP) \
  50. $(PKG_INSTALL_DIR)/usr/include \
  51. $(1)/usr/include/
  52. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  53. $(CP) \
  54. $(PKG_INSTALL_DIR)/usr/lib/libsox.{a,so*,la} \
  55. $(1)/usr/lib/
  56. $(INSTALL_DATA) \
  57. $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
  58. $(1)/usr/lib/pkgconfig/
  59. endef
  60. define Package/sox/install
  61. $(INSTALL_DIR) $(1)/usr/bin
  62. $(INSTALL_DIR) $(1)/usr/lib
  63. $(CP) $(PKG_INSTALL_DIR)/usr/bin/{play,rec,sox} $(1)/usr/bin/
  64. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsox.so* $(1)/usr/lib/
  65. endef
  66. $(eval $(call BuildPackage,sox))