summaryrefslogtreecommitdiff
path: root/package/libaio
diff options
context:
space:
mode:
authorWaldemar Brodkorb <mail@waldemar-brodkorb.de>2012-08-22 13:11:12 +0200
committerWaldemar Brodkorb <mail@waldemar-brodkorb.de>2012-08-22 13:11:12 +0200
commit7e441f6ea56f6647a0ac599591e271fbe1c5dc23 (patch)
treed98db099628d37b8072b103550dbfb7e4b0ff03e /package/libaio
parentb5ef0800a597e0c87e169139838db5339e8fc6e4 (diff)
add libaio, update cluster-glue
Diffstat (limited to 'package/libaio')
-rw-r--r--package/libaio/Makefile28
-rw-r--r--package/libaio/patches/patch-src_Makefile26
-rw-r--r--package/libaio/patches/patch-src_Makefile.orig12
3 files changed, 66 insertions, 0 deletions
diff --git a/package/libaio/Makefile b/package/libaio/Makefile
new file mode 100644
index 000000000..1dbeeee19
--- /dev/null
+++ b/package/libaio/Makefile
@@ -0,0 +1,28 @@
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:= libaio
+PKG_VERSION:= 0.3.109
+PKG_RELEASE:= 1
+PKG_MD5SUM:= 435a5b16ca6198eaf01155263d855756
+PKG_DESCR:= Asynchronous I/O library
+PKG_SECTION:= libs
+PKG_URL:= http://www.kernel.org
+PKG_SITES:= http://openadk.org/distfiles/
+
+include $(TOPDIR)/mk/package.mk
+
+$(eval $(call PKG_template,LIBAIO,libaio,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
+
+CONFIG_STYLE:= manual
+XAKE_FLAGS+= prefix='${WRKINST}/usr'
+
+
+libaio-install:
+ $(INSTALL_DIR) $(IDIR_LIBAIO)/usr/lib
+ $(CP) $(WRKINST)/usr/lib/libaio*so* \
+ $(IDIR_LIBAIO)/usr/lib
+
+include ${TOPDIR}/mk/pkg-bottom.mk
diff --git a/package/libaio/patches/patch-src_Makefile b/package/libaio/patches/patch-src_Makefile
new file mode 100644
index 000000000..8fb63f7b6
--- /dev/null
+++ b/package/libaio/patches/patch-src_Makefile
@@ -0,0 +1,26 @@
+--- libaio-0.3.109.orig/src/Makefile 2009-10-09 20:17:02.000000000 +0200
++++ libaio-0.3.109/src/Makefile 2012-08-18 12:47:38.000000000 +0200
+@@ -3,7 +3,8 @@ includedir=$(prefix)/include
+ libdir=$(prefix)/lib
+
+ ARCH := $(shell uname -m | sed -e s/i.86/i386/)
+-CFLAGS := -nostdlib -nostartfiles -Wall -I. -g -fomit-frame-pointer -O2 -fPIC
++CFLAGS ?= -nostdlib -nostartfiles -Wall -I. -g -fomit-frame-pointer -O2 -fPIC
++CFLAGS += -nostdlib -nostartfiles -Wall -I. -g -fomit-frame-pointer -O2 -fPIC
+ SO_CFLAGS=-shared $(CFLAGS)
+ L_CFLAGS=$(CFLAGS)
+ LINK_FLAGS=
+@@ -51,9 +52,10 @@ $(libname): $(libaio_sobjs) libaio.map
+ $(CC) $(SO_CFLAGS) -Wl,--version-script=libaio.map -Wl,-soname=$(soname) -o $@ $(libaio_sobjs) $(LINK_FLAGS)
+
+ install: $(all_targets)
+- install -D -m 644 libaio.h $(includedir)/libaio.h
+- install -D -m 644 libaio.a $(libdir)/libaio.a
+- install -D -m 755 $(libname) $(libdir)/$(libname)
++ mkdir -p $(includedir) $(libdir)
++ install -m 644 libaio.h $(includedir)/libaio.h
++ install -m 644 libaio.a $(libdir)/libaio.a
++ install -m 755 $(libname) $(libdir)/$(libname)
+ ln -sf $(libname) $(libdir)/$(soname)
+ ln -sf $(libname) $(libdir)/libaio.so
+
diff --git a/package/libaio/patches/patch-src_Makefile.orig b/package/libaio/patches/patch-src_Makefile.orig
new file mode 100644
index 000000000..8e6a08179
--- /dev/null
+++ b/package/libaio/patches/patch-src_Makefile.orig
@@ -0,0 +1,12 @@
+--- libaio-0.3.109.orig/src/Makefile 2009-10-09 20:17:02.000000000 +0200
++++ libaio-0.3.109/src/Makefile 2012-08-18 12:46:43.000000000 +0200
+@@ -3,7 +3,8 @@ includedir=$(prefix)/include
+ libdir=$(prefix)/lib
+
+ ARCH := $(shell uname -m | sed -e s/i.86/i386/)
+-CFLAGS := -nostdlib -nostartfiles -Wall -I. -g -fomit-frame-pointer -O2 -fPIC
++CFLAGS ?= -nostdlib -nostartfiles -Wall -I. -g -fomit-frame-pointer -O2 -fPIC
++CFLAGS += -nostdlib -nostartfiles -Wall -I. -g -fomit-frame-pointer -O2 -fPIC
+ SO_CFLAGS=-shared $(CFLAGS)
+ L_CFLAGS=$(CFLAGS)
+ LINK_FLAGS=