2007-11-29 08:09:29 +00:00
|
|
|
#
|
2010-02-19 00:14:01 +00:00
|
|
|
# Copyright (C) 2007-2010 OpenWrt.org
|
2007-11-29 08:09:29 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=libaio
|
2009-10-05 11:42:29 +00:00
|
|
|
PKG_VERSION:=0.3.107
|
2010-02-19 00:14:01 +00:00
|
|
|
PKG_RELEASE:=2
|
2007-11-29 08:09:29 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).orig.tar.gz
|
|
|
|
PKG_SOURCE_URL:=http://ftp.debian.org/debian/pool/main/liba/libaio/
|
2009-10-05 11:42:29 +00:00
|
|
|
PKG_MD5SUM:=db32c19c61ca937bcb1ba48da9180682
|
2007-11-29 08:09:29 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/libaio
|
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
2010-10-05 23:56:19 +00:00
|
|
|
DEPENDS:=@!LINUX_2_4
|
2007-11-29 08:09:29 +00:00
|
|
|
TITLE:=Linux kernel AIO interface access library
|
2009-06-13 17:01:55 +00:00
|
|
|
URL:=http://lse.sourceforge.net/io/aio.html
|
2007-11-29 08:09:29 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Configure
|
|
|
|
endef
|
|
|
|
|
2010-02-18 13:10:21 +00:00
|
|
|
LIBAIO_CFLAGS:=-nostdlib -nostartfiles -I. $(TARGET_CFLAGS) $(TARGET_CPPFLAGS) $(FPIC)
|
2007-11-29 08:09:29 +00:00
|
|
|
|
2008-08-06 22:43:15 +00:00
|
|
|
TARGET_CFLAGS += $(FPIC)
|
|
|
|
|
2007-11-29 08:09:29 +00:00
|
|
|
define Build/Compile
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
|
|
|
ARCH="$(ARCH)" \
|
|
|
|
CC="$(TARGET_CROSS)gcc" \
|
|
|
|
LD="$(TARGET_CROSS)ld" \
|
|
|
|
CFLAGS="$(LIBAIO_CFLAGS)" \
|
|
|
|
all
|
2009-10-05 11:42:29 +00:00
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
|
|
|
prefix="$(PKG_INSTALL_DIR)/usr" \
|
|
|
|
install
|
2007-11-29 08:09:29 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/InstallDev
|
2009-10-05 11:42:29 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/include
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/libaio.h $(1)/usr/include/
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libaio.{a,so*} $(1)/usr/lib/
|
2007-11-29 08:09:29 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libaio/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2009-10-05 11:42:29 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libaio.so.* $(1)/usr/lib/
|
2007-11-29 08:09:29 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,libaio))
|