Commit 07f3566e authored by osa's avatar osa
Browse files

Add libeio - event-based fully asynchronous I/O library for C.

parent fe2cb201
......@@ -971,6 +971,7 @@
SUBDIR += libe
SUBDIR += libedit
SUBDIR += libee
SUBDIR += libeio
SUBDIR += libelf
SUBDIR += libepp-nicbr
SUBDIR += libestr
......
# Created by: Sergey A. Osokin <osa@FreeBSD.org>
# $FreeBSD$
PORTNAME= libeio
PORTVERSION= 4.18.0
CATEGORIES= devel
MAINTAINER= osa@FreeBSD.org
COMMENT= Full-featured asynchronous I/O library for C
USE_GITHUB= yes
GH_ACCOUNT= scunningham
GH_TAGNAME= master
GH_COMMIT= e1a62ab
USE_AUTOTOOLS= libtoolize aclocal autoconf autoheader automake
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
LIBTOOLIZE_ARGS=--copy --force
ACLOCAL_ARGS= -I ${LOCALBASE}/share/aclocal
AUTOMAKE_ARGS= --add-missing
PLIST_FILES= include/eio.h lib/libeio.a lib/libeio.la \
lib/libeio.so lib/libeio.so.1
.include <bsd.port.mk>
SHA256 (libeio-4.18.0.tar.gz) = 74cd558b71456852c5f343b0a727e67c1e10d78b86aa90daa1a7900475ee1581
SIZE (libeio-4.18.0.tar.gz) = 94802
# $FreeBSD$
LIB = libeio
SRCS= eio.c
INCS=
LIBDIR= ${PREFIX}/lib
INCLUDEDIR= ${PREFIX}/include
.include <bsd.lib.mk>
--- configure.ac.orig 2013-05-28 09:05:57.000000000 +0400
+++ configure.ac 2013-05-28 09:06:36.000000000 +0400
@@ -12,8 +12,8 @@
AC_PROG_CC
-if test "x$GCC" = xyes ; then
- CFLAGS="-O3 $CFLAGS"
+if test "x$CC" = xyes ; then
+ CFLAGS="$CFLAGS"
fi
m4_include([libeio.m4])
--- libeio.m4.orig 2013-05-28 09:30:57.000000000 +0400
+++ libeio.m4 2013-05-28 09:31:05.000000000 +0400
@@ -2,13 +2,6 @@
dnl but that header isn't very portable...
AC_CHECK_HEADERS([stdint.h sys/syscall.h sys/prctl.h])
-AC_SEARCH_LIBS(
- pthread_create,
- [pthread pthreads pthreadVC2],
- ,
- [AC_MSG_ERROR(pthread functions not found)]
-)
-
AC_CACHE_CHECK(for utimes, ac_cv_utimes, [AC_LINK_IFELSE([[
#include <sys/types.h>
#include <sys/time.h>
Libeio is a full-featured asynchronous I/O library for C, modelled in
similar style and spirit as libev.
Features include: asynchronous read, write, open, close, stat, unlink,
fdatasync, mknod, readdir etc. (basically the full POSIX API), sendfile
(native on solaris, linux, hp-ux, freebsd, emulated everywehere else),
readahead (emulated where not available). It is fully event-library
agnostic and can easily be integrated into any event-library (or used
standalone, even in polling mode).
WWW: http://software.schmorp.de/pkg/libeio.html
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment