summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2014-10-13 22:15:26 +0000
committerdelphij <delphij@FreeBSD.org>2014-10-13 22:15:26 +0000
commit8fe24125cae4872a14af74f7b45a36cde942802f (patch)
treef0635cb382f1015a3c921ec091c816d96e106308 /lib
parent8080dffdad9dec1cf66f32162bbcd725370c4276 (diff)
downloadFreeBSD-src-8fe24125cae4872a14af74f7b45a36cde942802f.zip
FreeBSD-src-8fe24125cae4872a14af74f7b45a36cde942802f.tar.gz
Promote libevent to lib/ level and fold ftp-proxy into its parent Makefile.
This allows us to use libevent for other application in the future. For now libevent is still INTERNALLIB and no shared library is installed. MFC after: 1 month
Diffstat (limited to 'lib')
-rw-r--r--lib/Makefile5
-rw-r--r--lib/libevent/Makefile31
2 files changed, 36 insertions, 0 deletions
diff --git a/lib/Makefile b/lib/Makefile
index a5ab970..c558f11 100644
--- a/lib/Makefile
+++ b/lib/Makefile
@@ -44,6 +44,7 @@ SUBDIR= ${SUBDIR_ORDERED} \
libdevstat \
libdwarf \
libedit \
+ ${_libevent} \
libexecinfo \
libexpat \
libfetch \
@@ -226,6 +227,10 @@ _libnetgraph= libnetgraph
_libypclnt= libypclnt
.endif
+.if ${MK_PF} != "no"
+_libevent= libevent
+.endif
+
.if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64"
_libsmb= libsmb
_libvgl= libvgl
diff --git a/lib/libevent/Makefile b/lib/libevent/Makefile
new file mode 100644
index 0000000..d8b1e20
--- /dev/null
+++ b/lib/libevent/Makefile
@@ -0,0 +1,31 @@
+# $FreeBSD$
+
+.PATH: ${.CURDIR}/../../contrib/pf/libevent
+
+.include <src.opts.mk>
+
+LIB= event
+SHLIB_MAJOR= 1
+PRIVATELIB=
+INTERNALLIB=
+
+SRCS= buffer.c evbuffer.c event.c kqueue.c log.c poll.c select.c signal.c
+HDRS= event.h
+
+CFLAGS+= -I${.CURDIR} \
+ -DHAVE_CLOCK_GETTIME \
+ -DHAVE_FCNTL_H \
+ -DHAVE_POLL \
+ -DHAVE_SELECT \
+ -DHAVE_SETFD \
+ -DHAVE_STDARG_H \
+ -DHAVE_SYS_IOCTL_H \
+ -DHAVE_SYS_TIME_H \
+ -DHAVE_UNISTD_H \
+ -DHAVE_VASPRINTF \
+ -DHAVE_WORKING_KQUEUE \
+ -DVERSION='"1.3b"'
+
+WARNS?= 2
+
+.include <bsd.lib.mk>
OpenPOWER on IntegriCloud