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