Makefile 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. #
  2. # Copyright (C) 2006-2014 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:=libao
  9. PKG_VERSION:=1.2.0
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=http://downloads.xiph.org/releases/ao/
  13. PKG_MD5SUM:=9f5dd20d7e95fd0dd72df5353829f097
  14. PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net>
  15. PKG_LICENSE:=GPL-2.0
  16. PKG_LICENSE_FILES:=COPYING
  17. PKG_FIXUP:=autoreconf
  18. PKG_INSTALL:=1
  19. include $(INCLUDE_DIR)/package.mk
  20. define Package/libao
  21. SECTION:=libs
  22. DEPENDS:=+alsa-lib
  23. CATEGORY:=Libraries
  24. TITLE:=A cross platform audio library
  25. URL:=http://www.xiph.org/ao/
  26. endef
  27. define Package/libao/description
  28. Libao is a cross-platform audio library that allows programs to
  29. output audio using a simple API on a wide variety of platforms.
  30. endef
  31. CONFIGURE_ARGS += \
  32. --enable-shared \
  33. --enable-static \
  34. --disable-esd \
  35. --disable-arts \
  36. --disable-nas \
  37. --disable-pulse
  38. TARGET_CFLAGS += $(FPIC)
  39. define Build/InstallDev
  40. $(INSTALL_DIR) $(1)/usr/include
  41. $(CP) $(PKG_INSTALL_DIR)/usr/include/ao $(1)/usr/include/
  42. $(INSTALL_DIR) $(1)/usr/lib
  43. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libao.{a,so*} $(1)/usr/lib/
  44. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  45. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/ao.pc $(1)/usr/lib/pkgconfig/
  46. endef
  47. define Package/libao/install
  48. $(INSTALL_DIR) $(1)/usr/lib
  49. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libao.so.* $(1)/usr/lib/
  50. $(INSTALL_DIR) $(1)/usr/lib/ao/plugins-4
  51. $(CP) $(PKG_INSTALL_DIR)/usr/lib/ao/plugins-4/lib*.so $(1)/usr/lib/ao/plugins-4/
  52. endef
  53. $(eval $(call BuildPackage,libao))