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.

64 lines
1.5 KiB

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