mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-23 04:23:08 +00:00
- Use new OPTIONS features
- Remove useless (with staging support) maintainer target - Fix pkgconfig file PR: 185891 Submitted by: amdmi3 Approved by: maintainer timeout
This commit is contained in:
parent
54d51cdf47
commit
f2c6d67047
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=347380
@ -3,7 +3,7 @@
|
||||
|
||||
PORTNAME= libssh2
|
||||
PORTVERSION= 1.4.3
|
||||
PORTREVISION= 1
|
||||
PORTREVISION= 2
|
||||
PORTEPOCH= 2
|
||||
CATEGORIES= security devel
|
||||
MASTER_SITES= http://www.libssh2.org/download/ \
|
||||
@ -22,37 +22,22 @@ USE_LDCONFIG= yes
|
||||
OPTIONS_DEFINE= GCRYPT TRACE ZLIB
|
||||
OPTIONS_DEFAULT= ZLIB
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
TRACE_DESC= Enable debug packet traces
|
||||
|
||||
TRACE_CONFIGURE_ENABLE= debug
|
||||
GCRYPT_LIB_DEPENDS= libgcrypt.so:${PORTSDIR}/security/libgcrypt
|
||||
GCRYPT_CONFIGURE_ON= --with-libgcrypt -with-libgcrypt-prefix=${LOCALBASE} --without-openssl
|
||||
GCRYPT_CFLAGS= -I${LOCALBASE}/include
|
||||
GCRYPT_LDFLAGS= -L${LOCALBASE}/lib
|
||||
ZLIB_CONFIGURE_WITH= libz
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${PORT_OPTIONS:MTRACE}
|
||||
CONFIGURE_ARGS+= --enable-debug
|
||||
.else
|
||||
CONFIGURE_ARGS+= --disable-debug
|
||||
.endif
|
||||
|
||||
.if ${PORT_OPTIONS:MGCRYPT}
|
||||
LIB_DEPENDS+= gcrypt:${PORTSDIR}/security/libgcrypt
|
||||
CONFIGURE_ARGS+= --with-libgcrypt -with-libgcrypt-prefix=${LOCALBASE} --without-openssl
|
||||
CFLAGS+= -I${LOCALBASE}/include
|
||||
LDFLAGS+= -L${LOCALBASE}/lib
|
||||
.endif
|
||||
|
||||
.if ${PORT_OPTIONS:MZLIB}
|
||||
CONFIGURE_ARGS+= --with-libz
|
||||
.else
|
||||
CONFIGURE_ARGS+= --without-libz
|
||||
.endif
|
||||
|
||||
# allow maintainer to generate MAN3 manpages list (make extract is required before)
|
||||
x-generate-man3: extract
|
||||
@(cd ${WRKSRC}/docs && ${LS} -1F *.3 | ${SORT} | ${CUT} -d '/' -f4 \
|
||||
| ${GREP} -v template)
|
||||
|
||||
post-patch:
|
||||
.if defined(WITH_OPENSSL_BASE)
|
||||
@${REINPLACE_CMD} -e '/LIBSREQUIRED=/ s|libssl,libcrypto||' \
|
||||
${WRKSRC}/configure.ac ${WRKSRC}/configure
|
||||
.endif
|
||||
@${REINPLACE_CMD} -e 's|(libdir)/pkgconfig|(prefix)/libdata/pkgconfig|' \
|
||||
${WRKSRC}/Makefile.in
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user