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.

73 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_CPE_ID:=cpe:/a:audiofile:audiofile
  14. PKG_FIXUP:=autoreconf
  15. PKG_INSTALL=1
  16. include $(INCLUDE_DIR)/uclibc++.mk
  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:=$(CXX_DEPENDS) +libflac
  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-docs \
  34. --disable-coverage \
  35. --disable-examples
  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))