aboutsummaryrefslogtreecommitdiff
path: root/sysutils
diff options
context:
space:
mode:
authorMartin Matuska <mm@FreeBSD.org>2012-12-27 23:43:26 +0000
committerMartin Matuska <mm@FreeBSD.org>2012-12-27 23:43:26 +0000
commite7ab5aefe25cdf252c4a81ac3be4c4ab4d459391 (patch)
treeb1b8838e680f310a23bb8970e876450b3f71fdb5 /sysutils
parent89250cab7f048e0bc5e1894108f84a69cf2069f2 (diff)
downloadports-e7ab5aefe25cdf252c4a81ac3be4c4ab4d459391.tar.gz
ports-e7ab5aefe25cdf252c4a81ac3be4c4ab4d459391.zip
Notes
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/tmux/Makefile10
1 files changed, 7 insertions, 3 deletions
diff --git a/sysutils/tmux/Makefile b/sysutils/tmux/Makefile
index bd16dc71bb04..2c268527b643 100644
--- a/sysutils/tmux/Makefile
+++ b/sysutils/tmux/Makefile
@@ -33,18 +33,22 @@ BACKSPACE_DESC= Build with tty/keys patch
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MLIBEVENT2}
-LIB_DEPENDS= event-2.0:${PORTSDIR}/devel/libevent2
CONFIGURE_ENV+= LIBEVENT_CFLAGS="-I${LOCALBASE}/include/event2/compat" \
LIBEVENT_LIBS="-L${LOCALBASE}/lib/event2 -levent"
. if ${PORT_OPTIONS:MLIBEVENT_STATIC}
+BUILD_DEPENDS+= ${LOCALBASE}/lib/event2/libevent.a:${PORTSDIR}/devel/libevent2
LESTATIC= ${LOCALBASE}/lib/event2/libevent.a
+. else
+LIB_DEPENDS= event-2.0:${PORTSDIR}/devel/libevent2
. endif
.else
-LIB_DEPENDS= event-1.4:${PORTSDIR}/devel/libevent
CONFIGURE_ENV+= LIBEVENT_CFLAGS="-I${LOCALBASE}/include" \
LIBEVENT_LIBS="-L${LOCALBASE}/lib -levent"
-. if defined(WITH_LIBEVENT_STATIC)
+. if ${PORT_OPTIONS:MLIBEVENT_STATIC}
+BUILD_DEPENDS+= ${LOCALBASE}/lib/libevent.a:${PORTSDIR}/devel/libevent
LESTATIC= ${LOCALBASE}/lib/libevent.a
+. else
+LIB_DEPENDS= event-1.4:${PORTSDIR}/devel/libevent
. endif
.endif