Açıklama Yok

Makefile 2.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. #
  2. # Copyright (C) 2008 David Cooper <dave@kupesoft.com>
  3. # Copyright (C) 2006-2014 OpenWrt.org
  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.1
  11. PKG_RELEASE:=1
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  13. PKG_SOURCE_URL:=@SF/sox
  14. PKG_MD5SUM:=ff9ca6aca972549de0e80e8e30ed379c
  15. PKG_LICENSE:=LGPLv2.1 GPLv2
  16. PKG_LICENSE_FILES:=COPYING LICENSE.LGPL LICENSE.GPL
  17. PKG_INSTALL:=1
  18. include $(INCLUDE_DIR)/package.mk
  19. TARGET_LDFLAGS+= \
  20. -Wl,-rpath-link=$(STAGING_DIR)/usr/lib
  21. define Package/sox
  22. SECTION:=sound
  23. CATEGORY:=Sound
  24. DEPENDS:=+BUILD_PATENTED:lame-lib +BUILD_PATENTED:libmad +BUILD_PATENTED:libid3tag +libvorbis +libvorbisidec +libgsm +alsa-lib +libsndfile +libflac +libmagic +libpng +libao +libffmpeg
  25. TITLE:=Sox is a general purpose sound converter/player/recorder
  26. URL:=http://sox.sourceforge.net/
  27. MAINTAINER:=Hamish Guthrie <hcg@openwrt.org>
  28. endef
  29. define Package/sox/description
  30. SoX is a command line utility that can convert various formats
  31. of computer audio files in to other formats. It can also apply
  32. various effects to these sound files during the conversion.
  33. As an added bonus, SoX can play and record audio files on
  34. several unix-style platforms.
  35. endef
  36. define Build/Configure
  37. $(call Build/Configure/Default, \
  38. --disable-external-gsm \
  39. --disable-oss \
  40. --enable-alsa \
  41. --disable-libao \
  42. --without-libltdl \
  43. --with-ogg \
  44. --with-flac \
  45. --with-ffmpeg \
  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))