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@hostpoint.ch>
This commit is contained in:
Torsten Zuehlsdorff 2019-12-23 22:30:59 +00:00
parent 4f3b22247a
commit 03f95e3a86
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=520745
2 changed files with 6 additions and 2 deletions

View file

@ -1,5 +1,6 @@
# $FreeBSD$ # $FreeBSD$
PORTREVISION= 1
CATEGORIES= ftp CATEGORIES= ftp
MASTERDIR= ${.CURDIR}/../../lang/php74 MASTERDIR= ${.CURDIR}/../../lang/php74

View file

@ -93,8 +93,11 @@ CONFIGURE_ARGS+=--enable-filter \
.endif .endif
.if ${PHP_MODNAME} == "ftp" .if ${PHP_MODNAME} == "ftp"
CONFIGURE_ARGS+=--enable-ftp \ CONFIGURE_ARGS+=--enable-ftp
--with-openssl-dir=${OPENSSLBASE}
CONFIGURE_ENV+= OPENSSL_CFLAGS="-I${OPENSSLINC}" \
OPENSSL_LIBS="-L${OPENSSLLIB} -lssl -lcrypto" \
PHP_OPENSSL=yes
LDFLAGS+= -L${OPENSSLLIB} -lcrypto -lssl LDFLAGS+= -L${OPENSSLLIB} -lcrypto -lssl
USES+= ssl pkgconfig USES+= ssl pkgconfig