svn commit: r520745 - in head: ftp/php74-ftp lang/php74
Torsten Zuehlsdorff
tz at FreeBSD.org
Mon Dec 23 22:31:00 UTC 2019
Author: tz
Date: Mon Dec 23 22:30:59 2019
New Revision: 520745
URL: https://svnweb.freebsd.org/changeset/ports/520745
Log:
ftp/php74-ftp: Fix Undefined symbol "SSL_library_init"
The ftp module always compiles against the base openssl,
causes the error on FreeBSD 11.3. All other ports based
on OpenSSL import the needed openssl from ports, if its
not in base. Therefore we adjust the behaviour of the
ftp module to match for example the imap module.
PR: 241591
Submitted by: Pascal Christen <pascal.christen at hostpoint.ch>
Modified:
head/ftp/php74-ftp/Makefile
head/lang/php74/Makefile.ext
Modified: head/ftp/php74-ftp/Makefile
==============================================================================
--- head/ftp/php74-ftp/Makefile Mon Dec 23 22:27:46 2019 (r520744)
+++ head/ftp/php74-ftp/Makefile Mon Dec 23 22:30:59 2019 (r520745)
@@ -1,5 +1,6 @@
# $FreeBSD$
+PORTREVISION= 1
CATEGORIES= ftp
MASTERDIR= ${.CURDIR}/../../lang/php74
Modified: head/lang/php74/Makefile.ext
==============================================================================
--- head/lang/php74/Makefile.ext Mon Dec 23 22:27:46 2019 (r520744)
+++ head/lang/php74/Makefile.ext Mon Dec 23 22:30:59 2019 (r520745)
@@ -93,8 +93,11 @@ CONFIGURE_ARGS+=--enable-filter \
.endif
.if ${PHP_MODNAME} == "ftp"
-CONFIGURE_ARGS+=--enable-ftp \
- --with-openssl-dir=${OPENSSLBASE}
+CONFIGURE_ARGS+=--enable-ftp
+
+CONFIGURE_ENV+= OPENSSL_CFLAGS="-I${OPENSSLINC}" \
+ OPENSSL_LIBS="-L${OPENSSLLIB} -lssl -lcrypto" \
+ PHP_OPENSSL=yes
LDFLAGS+= -L${OPENSSLLIB} -lcrypto -lssl
USES+= ssl pkgconfig
More information about the svn-ports-all
mailing list