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.

79 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:=2
  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. --with-lame \
  44. --with-id3tag \
  45. --disable-openmp
  46. define Build/InstallDev
  47. $(INSTALL_DIR) $(1)/usr/include
  48. $(CP) \
  49. $(PKG_INSTALL_DIR)/usr/include \
  50. $(1)/usr/include/
  51. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  52. $(CP) \
  53. $(PKG_INSTALL_DIR)/usr/lib/libsox.{a,so*,la} \
  54. $(1)/usr/lib/
  55. $(INSTALL_DATA) \
  56. $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
  57. $(1)/usr/lib/pkgconfig/
  58. endef
  59. define Package/sox/install
  60. $(INSTALL_DIR) $(1)/usr/bin
  61. $(INSTALL_DIR) $(1)/usr/lib
  62. $(CP) $(PKG_INSTALL_DIR)/usr/bin/{play,rec,sox} $(1)/usr/bin/
  63. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsox.so* $(1)/usr/lib/
  64. endef
  65. $(eval $(call BuildPackage,sox))