aboutsummaryrefslogtreecommitdiff
path: root/devel/libeio
diff options
context:
space:
mode:
authorSergey A. Osokin <osa@FreeBSD.org>2013-05-28 14:06:14 +0000
committerSergey A. Osokin <osa@FreeBSD.org>2013-05-28 14:06:14 +0000
commit5e85c193635bf983a7c3786533014f1b09c23fed (patch)
treee2681bb469ede101544bfef5eab602f2985eaec1 /devel/libeio
parent225ad5075763aa1bad28f07e213b8d81fbc2c60d (diff)
downloadports-5e85c193635bf983a7c3786533014f1b09c23fed.tar.gz
ports-5e85c193635bf983a7c3786533014f1b09c23fed.zip
Notes
Diffstat (limited to 'devel/libeio')
-rw-r--r--devel/libeio/Makefile26
-rw-r--r--devel/libeio/distinfo2
-rw-r--r--devel/libeio/files/Makefile10
-rw-r--r--devel/libeio/files/patch-configure.ac13
-rw-r--r--devel/libeio/files/patch-libeio.m416
-rw-r--r--devel/libeio/pkg-descr11
6 files changed, 78 insertions, 0 deletions
diff --git a/devel/libeio/Makefile b/devel/libeio/Makefile
new file mode 100644
index 000000000000..48e753e657a6
--- /dev/null
+++ b/devel/libeio/Makefile
@@ -0,0 +1,26 @@
+# 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>
diff --git a/devel/libeio/distinfo b/devel/libeio/distinfo
new file mode 100644
index 000000000000..d5995ef84bdf
--- /dev/null
+++ b/devel/libeio/distinfo
@@ -0,0 +1,2 @@
+SHA256 (libeio-4.18.0.tar.gz) = 74cd558b71456852c5f343b0a727e67c1e10d78b86aa90daa1a7900475ee1581
+SIZE (libeio-4.18.0.tar.gz) = 94802
diff --git a/devel/libeio/files/Makefile b/devel/libeio/files/Makefile
new file mode 100644
index 000000000000..e109b8b5e096
--- /dev/null
+++ b/devel/libeio/files/Makefile
@@ -0,0 +1,10 @@
+# $FreeBSD$
+
+LIB = libeio
+SRCS= eio.c
+INCS=
+
+LIBDIR= ${PREFIX}/lib
+INCLUDEDIR= ${PREFIX}/include
+
+.include <bsd.lib.mk>
diff --git a/devel/libeio/files/patch-configure.ac b/devel/libeio/files/patch-configure.ac
new file mode 100644
index 000000000000..64648bf3ce84
--- /dev/null
+++ b/devel/libeio/files/patch-configure.ac
@@ -0,0 +1,13 @@
+--- 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])
diff --git a/devel/libeio/files/patch-libeio.m4 b/devel/libeio/files/patch-libeio.m4
new file mode 100644
index 000000000000..649a4b6744bc
--- /dev/null
+++ b/devel/libeio/files/patch-libeio.m4
@@ -0,0 +1,16 @@
+--- 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>
diff --git a/devel/libeio/pkg-descr b/devel/libeio/pkg-descr
new file mode 100644
index 000000000000..ebd62377e8b6
--- /dev/null
+++ b/devel/libeio/pkg-descr
@@ -0,0 +1,11 @@
+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