commit 3092aa0329c3532faa8b519137d1239782556baf
parent a34cf1e8123c2a644976ceeb0c75fc7af327b6c7
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Sun, 27 Apr 2014 15:18:37 +0200
add libevent
Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
Diffstat:
4 files changed, 22 insertions(+), 0 deletions(-)
diff --git a/libevent/depsinc.mk b/libevent/depsinc.mk
@@ -0,0 +1,4 @@
+<$libevent_DEPDIR/v.mk
+
+DEPS_CFLAGS = $DEPS_CFLAGS -I$libevent_DEPDIR/libevent-$v/include
+DEPS_LDFLAGS = $DEPS_LDFLAGS -L$libevent_DEPDIR/libevent-$v/.libs
diff --git a/libevent/libevent.mk b/libevent/libevent.mk
@@ -0,0 +1,11 @@
+TARG = libevent
+
+<$mkbuild/mk.common
+
+libevent:QV:
+ CC="$CC" ./configure --prefix="$prefix" --mandir="$ROOT/share/man" \
+ --disable-shared \
+ --enable-static
+ make -j$nprocs
+ # copy some header files to include dir for depsinc
+ cp evdns.h event.h evhttp.h evrpc.h evutil.h include/
diff --git a/libevent/mkfile b/libevent/mkfile
@@ -0,0 +1,6 @@
+<$mkbuild/mk.3rdparty
+
+<v.mk
+src = libevent-$v
+url = http://dl.2f30.org/morpheus-pkgs/$arch/0.0/libevent-$v.tar.gz
+mkfile = ../libevent.mk
diff --git a/libevent/v.mk b/libevent/v.mk
@@ -0,0 +1 @@
+v = "2.0.21-stable"