diff options
author | mm <mm@FreeBSD.org> | 2012-12-28 07:43:26 +0800 |
---|---|---|
committer | mm <mm@FreeBSD.org> | 2012-12-28 07:43:26 +0800 |
commit | f12808d904a355ed00a5278964568147df580121 (patch) | |
tree | b1b8838e680f310a23bb8970e876450b3f71fdb5 /sysutils/tmux | |
parent | 0e07f585f5387b515ecb583937f6551819e1354a (diff) | |
download | freebsd-ports-gnome-f12808d904a355ed00a5278964568147df580121.tar.gz freebsd-ports-gnome-f12808d904a355ed00a5278964568147df580121.tar.zst freebsd-ports-gnome-f12808d904a355ed00a5278964568147df580121.zip |
Do not depend on libevent if using static libevent
PR: ports/174706
Approved by: maintainer (gahr)
Diffstat (limited to 'sysutils/tmux')
-rw-r--r-- | sysutils/tmux/Makefile | 10 |
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 |