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.

62 lines
1.4 KiB

  1. #
  2. # Copyright (C) 2007-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:=libaio
  9. PKG_VERSION:=0.3.109
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).orig.tar.gz
  12. PKG_SOURCE_URL:=http://ftp.debian.org/debian/pool/main/liba/libaio/
  13. PKG_MD5SUM:=435a5b16ca6198eaf01155263d855756
  14. PKG_MAINTAINER:=Steven Barth <cyrus@openwrt.org>
  15. PKG_USE_MIPS16:=0
  16. include $(INCLUDE_DIR)/package.mk
  17. define Package/libaio
  18. SECTION:=libs
  19. CATEGORY:=Libraries
  20. TITLE:=Linux kernel AIO interface access library
  21. URL:=http://lse.sourceforge.net/io/aio.html
  22. endef
  23. define Build/Configure
  24. endef
  25. LIBAIO_CFLAGS:=-nostdlib -nostartfiles -I. $(TARGET_CFLAGS) $(TARGET_CPPFLAGS) $(FPIC)
  26. TARGET_CFLAGS += $(FPIC)
  27. define Build/Compile
  28. $(MAKE) -C $(PKG_BUILD_DIR) \
  29. $(TARGET_CONFIGURE_OPTS) \
  30. ARCH="$(ARCH)" \
  31. CC="$(TARGET_CROSS)gcc" \
  32. LD="$(TARGET_CROSS)ld" \
  33. CFLAGS="$(LIBAIO_CFLAGS)" \
  34. all
  35. $(MAKE) -C $(PKG_BUILD_DIR) \
  36. prefix="$(PKG_INSTALL_DIR)/usr" \
  37. install
  38. endef
  39. define Build/InstallDev
  40. $(INSTALL_DIR) $(1)/usr/include
  41. $(CP) $(PKG_INSTALL_DIR)/usr/include/libaio.h $(1)/usr/include/
  42. $(INSTALL_DIR) $(1)/usr/lib
  43. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libaio.{a,so*} $(1)/usr/lib/
  44. endef
  45. define Package/libaio/install
  46. $(INSTALL_DIR) $(1)/usr/lib
  47. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libaio.so.* $(1)/usr/lib/
  48. endef
  49. $(eval $(call BuildPackage,libaio))