Nenhuma descrição

Makefile 1.7KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. #
  2. # Copyright (C) 2006-2010 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.2.7
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:= \
  13. http://github.com/downloads/mpruett/audiofile/ \
  14. http://www.68k.org/~michael/audiofile/
  15. PKG_MD5SUM:=a39be317a7b1971b408805dc5e371862
  16. PKG_FIXUP:=autoreconf
  17. PKG_INSTALL=1
  18. include $(INCLUDE_DIR)/package.mk
  19. define Package/libaudiofile
  20. SECTION:=libs
  21. CATEGORY:=Libraries
  22. TITLE:=Audio File library
  23. URL:=http://www.68k.org/~michael/audiofile/
  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. and raw data).
  29. endef
  30. CONFIGURE_ARGS+= \
  31. --enable-shared \
  32. --enable-static \
  33. --with-build-cc="$(HOSTCC)" \
  34. TARGET_CFLAGS+= $(FPIC) -std=c99
  35. define Build/InstallDev
  36. $(INSTALL_DIR) $(2)/bin
  37. $(CP) \
  38. $(PKG_INSTALL_DIR)/usr/bin/audiofile-config \
  39. $(2)/bin/
  40. $(SED) \
  41. 's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' \
  42. $(2)/bin/audiofile-config
  43. $(INSTALL_DIR) $(1)/usr/include
  44. $(CP) \
  45. $(PKG_INSTALL_DIR)/usr/include/{af_vfs,audiofile,aupvlist}.h \
  46. $(1)/usr/include/
  47. $(INSTALL_DIR) $(1)/usr/lib
  48. $(CP) \
  49. $(PKG_INSTALL_DIR)/usr/lib/libaudiofile.{la,a,so*} \
  50. $(1)/usr/lib/
  51. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  52. $(CP) \
  53. $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/audiofile.pc \
  54. $(1)/usr/lib/pkgconfig/
  55. endef
  56. define Package/libaudiofile/install
  57. $(INSTALL_DIR) $(1)/usr/lib
  58. $(CP) \
  59. $(PKG_INSTALL_DIR)/usr/lib/libaudiofile.so.* \
  60. $(1)/usr/lib/
  61. endef
  62. $(eval $(call BuildPackage,libaudiofile))