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.

71 lines
1.6 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:=2
  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. --with-build-cc="$(HOSTCC)" \
  36. TARGET_CFLAGS+= $(FPIC)
  37. define Build/InstallDev
  38. $(INSTALL_DIR) $(1)/usr/include
  39. $(CP) \
  40. $(PKG_INSTALL_DIR)/usr/include/{af_vfs,audiofile,aupvlist}.h \
  41. $(1)/usr/include/
  42. $(INSTALL_DIR) $(1)/usr/lib
  43. $(CP) \
  44. $(PKG_INSTALL_DIR)/usr/lib/libaudiofile.{la,a,so*} \
  45. $(1)/usr/lib/
  46. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  47. $(CP) \
  48. $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/audiofile.pc \
  49. $(1)/usr/lib/pkgconfig/
  50. endef
  51. define Package/libaudiofile/install
  52. $(INSTALL_DIR) $(1)/usr/lib
  53. $(CP) \
  54. $(PKG_INSTALL_DIR)/usr/lib/libaudiofile.so.* \
  55. $(1)/usr/lib/
  56. endef
  57. $(eval $(call BuildPackage,libaudiofile))