Makefile 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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.xz
  12. PKG_SOURCE_URL:=@GNOME/$(PKG_NAME)/0.3
  13. PKG_MD5SUM:=ea2449ad3f201ec590d811db9da6d02ffc5e87a677d06b92ab15363d8cb59782
  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))