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.

78 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. 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))