From 03f95e3a8638aeac9362cb736b5c203bfad5ebfb Mon Sep 17 00:00:00 2001 From: Torsten Zuehlsdorff Date: Mon, 23 Dec 2019 22:30:59 +0000 Subject: [PATCH] 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 --- ftp/php74-ftp/Makefile | 1 + lang/php74/Makefile.ext | 7 +++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ftp/php74-ftp/Makefile b/ftp/php74-ftp/Makefile index 9df9e8648c2f..e4c77eec6f51 100644 --- a/ftp/php74-ftp/Makefile +++ b/ftp/php74-ftp/Makefile @@ -1,5 +1,6 @@ # $FreeBSD$ +PORTREVISION= 1 CATEGORIES= ftp MASTERDIR= ${.CURDIR}/../../lang/php74 diff --git a/lang/php74/Makefile.ext b/lang/php74/Makefile.ext index 225bb6a3288d..dc47b4ae5df2 100644 --- a/lang/php74/Makefile.ext +++ b/lang/php74/Makefile.ext @@ -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