'; }
Bug 174706 - [PATCH] sysutils/tmux: do not depend on libevent if static
Summary: [PATCH] sysutils/tmux: do not depend on libevent if static
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Pietro Cerutti
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-25 20:00 UTC by Martin Matuska
Modified: 2013-01-08 11:29 UTC (History)
1 user (show)

See Also:


Attachments
tmux-1.7_1.patch (1.04 KB, patch)
2012-12-25 20:00 UTC, Martin Matuska
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Matuska freebsd_committerfreebsd_triage 2012-12-25 20:00:00 UTC
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)
Comment 1 Edwin Groothuis freebsd_committerfreebsd_triage 2012-12-25 20:00:08 UTC
Responsible Changed
From-To: freebsd-ports-bugs->gahr

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Pietro Cerutti freebsd_committerfreebsd_triage 2012-12-27 20:45:59 UTC
Thanks Martin, go ahead!

-- 
Pietro Cerutti
The FreeBSD Project
gahr@FreeBSD.org

PGP Public Key:
http://gahr.ch/pgp
Comment 3 dfilter service freebsd_committerfreebsd_triage 2012-12-27 23:43:38 UTC
Author: mm
Date: Thu Dec 27 23:43:26 2012
New Revision: 309561
URL: http://svnweb.freebsd.org/changeset/ports/309561

Log:
  Do not depend on libevent if using static libevent
  
  PR:		ports/174706
  Approved by:	maintainer (gahr)

Modified:
  head/sysutils/tmux/Makefile

Modified: head/sysutils/tmux/Makefile
==============================================================================
--- head/sysutils/tmux/Makefile	Thu Dec 27 23:37:53 2012	(r309560)
+++ head/sysutils/tmux/Makefile	Thu Dec 27 23:43:26 2012	(r309561)
@@ -33,18 +33,22 @@ BACKSPACE_DESC=	Build with tty/keys patc
 .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
 
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 4 Pietro Cerutti freebsd_committerfreebsd_triage 2013-01-08 11:29:39 UTC
State Changed
From-To: open->closed

A fix was committed.