summaryrefslogtreecommitdiff
path: root/packages/libaio/libaio-oracle_0.3.0.bb
blob: e3aa23d78becd6cf0c9c870d862a96597a26cf4e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# libaio-oracle .bb build file
# Copyright (C) 2005-2006, Advanced Micro Devices, Inc.  All Rights Reserved
# Released under the MIT license (see /COPYING)

DESCRIPTION="This is a library for accessing the new AIO system calls (asynchronous i/o) for the Linux kernel."
HOMEPAGE="http://oss.oracle.com/projects/libaio-oracle"
MAINTAINER = "Raymond Danks <raymondd@ia.amd.com>"
LICENSE="GPL"

SRC_URI="http://oss.oracle.com/projects/libaio-oracle/dist/files/${PN}-${PV}.tar.gz"

DEPENDS="libaio"
RDEPENDS="libaio"

inherit autotools

FILES_${PN}="/usr"

#We don't have a raw.h with uClibc, so copy in the one from glibc
SRC_URI_append_linux-uclibc=" file://raw.h"

do_configure_prepend_linux-uclibc () {
	install -D -m 0644 ${WORKDIR}/raw.h ${S}/sys/raw.h
}

do_stage() {

	rm -rf ${STAGE_TEMP}
	mkdir -p ${STAGE_TEMP}
	oe_runmake DESTDIR="${STAGE_TEMP}" install
	install -m 0644 ${STAGE_TEMP}/usr/include/libaio-oracle/libaio-oracle.h ${STAGING_INCDIR}
	rm -f ${STAGE_TEMP}/usr/lib/*.la
	oe_libinstall -a -so -C ${STAGE_TEMP}/usr/lib libaio-oracle ${STAGING_LIBDIR}
}