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.

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