ports/160593: [PATCH]devel/libevent2: respect USE/WITH_OPENSSL_PORT
bf
bf at FreeBSD.org
Fri Sep 9 18:10:04 UTC 2011
>Number: 160593
>Category: ports
>Synopsis: [PATCH]devel/libevent2: respect USE/WITH_OPENSSL_PORT
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Fri Sep 09 18:10:03 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator: bf
>Release:
>Organization:
-
>Environment:
>Description:
Currently, devel/libevent2 is using the base system openssl, even if security/openssl is installed, or USE/WITH_OPENSSL_PORT is set. This can cause problems for dependent software. Adjust CPPFLAGS and LDFLAGS to respect this knob.
>How-To-Repeat:
>Fix:
Patch attached with submission follows:
Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/devel/libevent2/Makefile,v
retrieving revision 1.7
diff -u -r1.7 Makefile
--- Makefile 25 Aug 2011 06:00:01 -0000 1.7
+++ Makefile 9 Sep 2011 17:11:40 -0000
@@ -7,6 +7,7 @@
PORTNAME= libevent2
DISTVERSION= 2.0.13
+PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= http://monkey.org/~provos/
DISTNAME= ${PORTNAME:S/2//}-${DISTVERSION}-stable
@@ -19,6 +20,7 @@
USE_GNOME= lthack
GNU_CONFIGURE= yes
+CONFIGURE_ENV= LDFLAGS="${LDFLAGS}"
USE_LDCONFIG= ${PREFIX}/lib/event2
OPTIONS= OPENSSL "Enable OpenSSL support" on \
@@ -33,6 +35,8 @@
PLIST_SUB+= OPENSSL="@comment "
.else
USE_OPENSSL= yes
+CPPFLAGS+= -I${OPENSSLINC}
+LDFLAGS+= -L${OPENSSLLIB}
PLIST_SUB+= OPENSSL=""
.endif
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list