Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Dec 2012 20:42:57 +0100 (CET)
From:      Martin Matuska <mm@FreeBSD.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        gahr@FreeBSD.org
Subject:   ports/174706: [PATCH] sysutils/tmux: do not depend on libevent if static
Message-ID:  <20121225194257.959E6261F@neo.vx.sk>
Resent-Message-ID: <201212252000.qBPK00X3001174@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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@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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20121225194257.959E6261F>