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.

72 lines
1.7 KiB

  1. #
  2. # Copyright (C) 2006-2014 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=audiofile
  9. PKG_VERSION:=0.3.6
  10. PKG_RELEASE:=3
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:= \
  13. http://github.com/downloads/mpruett/audiofile/ \
  14. http://www.68k.org/~michael/audiofile/
  15. PKG_MD5SUM:=2731d79bec0acef3d30d2fc86b0b72fd
  16. PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net>
  17. PKG_FIXUP:=autoreconf
  18. PKG_INSTALL=1
  19. include $(INCLUDE_DIR)/package.mk
  20. define Package/libaudiofile
  21. SECTION:=libs
  22. CATEGORY:=Libraries
  23. TITLE:=Audio File library
  24. URL:=http://www.68k.org/~michael/audiofile/
  25. DEPENDS:=+libflac +libstdcpp
  26. endef
  27. define Package/libaudiofile/description
  28. The audiofile library allows the processing of audio data to and from audio
  29. files of many common formats (currently AIFF, AIFF-C, WAVE, NeXT/Sun, BICS,
  30. FLAC, ALAC, and raw data).
  31. endef
  32. CONFIGURE_ARGS+= \
  33. --enable-shared \
  34. --enable-static \
  35. --disable-examples \
  36. --with-build-cc="$(HOSTCC)" \
  37. TARGET_CFLAGS+= $(FPIC)
  38. define Build/InstallDev
  39. $(INSTALL_DIR) $(1)/usr/include
  40. $(CP) \
  41. $(PKG_INSTALL_DIR)/usr/include/{af_vfs,audiofile,aupvlist}.h \
  42. $(1)/usr/include/
  43. $(INSTALL_DIR) $(1)/usr/lib
  44. $(CP) \
  45. $(PKG_INSTALL_DIR)/usr/lib/libaudiofile.{la,a,so*} \
  46. $(1)/usr/lib/
  47. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  48. $(CP) \
  49. $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/audiofile.pc \
  50. $(1)/usr/lib/pkgconfig/
  51. endef
  52. define Package/libaudiofile/install
  53. $(INSTALL_DIR) $(1)/usr/lib
  54. $(CP) \
  55. $(PKG_INSTALL_DIR)/usr/lib/libaudiofile.so.* \
  56. $(1)/usr/lib/
  57. endef
  58. $(eval $(call BuildPackage,libaudiofile))