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.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:=5
  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)/uclibc++.mk
  16. include $(INCLUDE_DIR)/package.mk
  17. define Package/libaudiofile
  18. SECTION:=libs
  19. CATEGORY:=Libraries
  20. TITLE:=Audio File library
  21. URL:=http://audiofile.68k.org/
  22. DEPENDS:=$(CXX_DEPENDS) +libflac
  23. endef
  24. define Package/libaudiofile/description
  25. The audiofile library allows the processing of audio data to and from audio
  26. files of many common formats (currently AIFF, AIFF-C, WAVE, NeXT/Sun, BICS,
  27. FLAC, ALAC, and raw data).
  28. endef
  29. CONFIGURE_ARGS+= \
  30. --enable-shared \
  31. --enable-static \
  32. --disable-docs \
  33. --disable-coverage \
  34. --disable-examples
  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))