Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Sep 2014 23:31:37 +0000 (UTC)
From:      John Marino <marino@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r369680 - in head/www/mohawk: . files
Message-ID:  <201409302331.s8UNVbo8091142@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: marino
Date: Tue Sep 30 23:31:37 2014
New Revision: 369680
URL: http://svnweb.freebsd.org/changeset/ports/369680
QAT: https://qat.redports.org/buildarchive/r369680/

Log:
  www/mohawk: Unbreak on DragonFly, remove useless LDFLAG
  
  The provided LDFLAG of -L${LOCALBASE}/lib/event2 would have stopped
  working after libevent2.so moved to ${LOCALBASE}/lib had the LDFLAG
  affected anything.  The LDFLAG is set by Makefile.inc, and the
  handling of DragonFly is wrong for ports, although it might still be
  correct for pkgsrc.  Fix that with a patch and remove the LDFLAG
  that doesn't do anything.  No revbump required.

Added:
  head/www/mohawk/files/patch-Makefile.inc   (contents, props changed)
Modified:
  head/www/mohawk/Makefile

Modified: head/www/mohawk/Makefile
==============================================================================
--- head/www/mohawk/Makefile	Tue Sep 30 23:07:10 2014	(r369679)
+++ head/www/mohawk/Makefile	Tue Sep 30 23:31:37 2014	(r369680)
@@ -25,7 +25,6 @@ PORTEXAMPLES=	*
 USE_RC_SUBR=	mohawk
 
 CFLAGS+=	-I${LOCALBASE}/include/event2/compat -I${LOCALBASE}/include
-LDFLAGS+=	-L${LOCALBASE}/lib/event2
 
 OPTIONS_DEFINE=	EXAMPLES
 

Added: head/www/mohawk/files/patch-Makefile.inc
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/mohawk/files/patch-Makefile.inc	Tue Sep 30 23:31:37 2014	(r369680)
@@ -0,0 +1,16 @@
+--- Makefile.inc.orig	2014-09-15 17:40:01 UTC
++++ Makefile.inc
+@@ -16,13 +16,8 @@ OSVERSION!= sysctl -n kern.osreldate
+ YFLAGS+= -i
+ CLEANFILES+=	parse.i
+ .endif
+-.if ${OPSYS} == "DragonFly"
+-LDFLAGS+= -L${PREFIX}/lib/event2
+-LDADD+=   -levent-2.0
+-.else
+ LDFLAGS+= -L${PREFIX}/lib
+ LDADD+=   -levent
+-.endif
+ 
+ .elif ${OPSYS} == "NetBSD"
+ PREFIX?=  /usr/pkg



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