svn commit: r421697 - in head/devel/bunny: . files

John Marino marino at FreeBSD.org
Sat Sep 10 14:39:56 UTC 2016


Author: marino
Date: Sat Sep 10 14:39:54 2016
New Revision: 421697
URL: https://svnweb.freebsd.org/changeset/ports/421697

Log:
  devel/bunny: Add cflags for SSL support, honor LDFLAGS
  
  I could have converted the LDFLAGS change into another sed instruction,
  but I choose to replace post-patch target with an actual patch for ease
  of comprehension.
  
  Approved by:	SSSL blanket

Added:
  head/devel/bunny/files/
  head/devel/bunny/files/patch-Makefile   (contents, props changed)
Modified:
  head/devel/bunny/Makefile

Modified: head/devel/bunny/Makefile
==============================================================================
--- head/devel/bunny/Makefile	Sat Sep 10 14:36:06 2016	(r421696)
+++ head/devel/bunny/Makefile	Sat Sep 10 14:39:54 2016	(r421697)
@@ -15,6 +15,8 @@ LICENSE=	APACHE20
 LICENSE_FILE=	${WRKSRC}/COPYING
 
 USES=		ssl tar:tgz
+LDFLAGS+=	-L${OPENSSLLIB}
+CFLAGS+=	-I${OPENSSLINC}
 
 WRKSRC=		${WRKDIR}/${PORTNAME}
 
@@ -27,9 +29,6 @@ ONLY_FOR_ARCHS_REASON=	Fails to compile:
 
 OPTIONS_DEFINE=DOCS
 
-post-patch:
-	@${REINPLACE_CMD} -e '/^CFLAGS/d' ${WRKSRC}/${MAKEFILE}
-
 do-install:
 .for f in ${PLIST_FILES}
 	${INSTALL_PROGRAM} ${WRKSRC}/${f:C/bin\///} ${STAGEDIR}${PREFIX}/bin

Added: head/devel/bunny/files/patch-Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/bunny/files/patch-Makefile	Sat Sep 10 14:39:54 2016	(r421697)
@@ -0,0 +1,12 @@
+--- Makefile.orig	2007-11-06 11:04:07 UTC
++++ Makefile
+@@ -19,8 +19,7 @@
+ #
+ 
+ PROGNAME = bunny-gcc bunny-trace bunny-exec bunny-flow bunny-main
+-CFLAGS	 = -Wall -O3 -funroll-loops -fno-strict-aliasing -ffast-math -Wno-pointer-sign
+-EX_LIBS  = -lcrypto -lm
++EX_LIBS  = $(LDFLAGS) -lcrypto -lm
+ 
+ # CFLAGS  = -Wall -g -ggdb -g3 -Wno-pointer-sign
+ # CFLAGS += -DDEBUG_TRACE=1


More information about the svn-ports-head mailing list