ports/174706: [PATCH] sysutils/tmux: do not depend on libevent if static
Martin Matuska
mm at FreeBSD.org
Tue Dec 25 20:00:00 UTC 2012
>Number: 174706
>Category: ports
>Synopsis: [PATCH] sysutils/tmux: do not depend on libevent if static
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Tue Dec 25 20:00:00 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator: Martin Matuska
>Release: FreeBSD 9.1-PRERELEASE amd64
>Organization:
>Environment:
System: FreeBSD neo.vx.sk 9.1-PRERELEASE FreeBSD 9.1-PRERELEASE #5 r244078M: Mon Dec 10 14:48:55 CET
>Description:
If we use the LIBEVENT_STATIC option, do not add libevent to LIB_DEPENDS
Port maintainer (gahr at FreeBSD.org) is cc'd.
Generated with FreeBSD Port Tools 0.99_6 (mode: change, diff: ports)
>How-To-Repeat:
>Fix:
--- tmux-1.7_1.patch begins here ---
Index: Makefile
===================================================================
--- Makefile (revision 309493)
+++ Makefile (working copy)
@@ -33,18 +33,22 @@
.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
--- tmux-1.7_1.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list