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.

70 lines
1.6 KiB

  1. #
  2. # Copyright (C) 2006-2016 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:=http://audiofile.68k.org/
  13. PKG_MD5SUM:=2731d79bec0acef3d30d2fc86b0b72fd
  14. PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net>
  15. PKG_FIXUP:=autoreconf
  16. PKG_INSTALL=1
  17. include $(INCLUDE_DIR)/package.mk
  18. define Package/libaudiofile
  19. SECTION:=libs
  20. CATEGORY:=Libraries
  21. TITLE:=Audio File library
  22. URL:=http://audiofile.68k.org/
  23. DEPENDS:=+libflac +libstdcpp
  24. endef
  25. define Package/libaudiofile/description
  26. The audiofile library allows the processing of audio data to and from audio
  27. files of many common formats (currently AIFF, AIFF-C, WAVE, NeXT/Sun, BICS,
  28. FLAC, ALAC, and raw data).
  29. endef
  30. CONFIGURE_ARGS+= \
  31. --enable-shared \
  32. --enable-static \
  33. --disable-examples \
  34. --with-build-cc="$(HOSTCC)" \
  35. TARGET_CFLAGS+= $(FPIC)
  36. define Build/InstallDev
  37. $(INSTALL_DIR) $(1)/usr/include
  38. $(CP) \
  39. $(PKG_INSTALL_DIR)/usr/include/{af_vfs,audiofile,aupvlist}.h \
  40. $(1)/usr/include/
  41. $(INSTALL_DIR) $(1)/usr/lib
  42. $(CP) \
  43. $(PKG_INSTALL_DIR)/usr/lib/libaudiofile.{la,a,so*} \
  44. $(1)/usr/lib/
  45. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  46. $(CP) \
  47. $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/audiofile.pc \
  48. $(1)/usr/lib/pkgconfig/
  49. endef
  50. define Package/libaudiofile/install
  51. $(INSTALL_DIR) $(1)/usr/lib
  52. $(CP) \
  53. $(PKG_INSTALL_DIR)/usr/lib/libaudiofile.so.* \
  54. $(1)/usr/lib/
  55. endef
  56. $(eval $(call BuildPackage,libaudiofile))