Changeset View
Changeset View
Standalone View
Standalone View
security/libssh2/Makefile
Show All 37 Lines | |||||
USE_OPENSSL= yes | USE_OPENSSL= yes | ||||
.endif | .endif | ||||
.include <bsd.port.pre.mk> | .include <bsd.port.pre.mk> | ||||
post-patch: | post-patch: | ||||
@${REINPLACE_CMD} -e '/Libs:/s/@LDFLAGS@//' -e '/Libs:/s/@LIBS@//' \ | @${REINPLACE_CMD} -e '/Libs:/s/@LDFLAGS@//' -e '/Libs:/s/@LIBS@//' \ | ||||
${WRKSRC}/libssh2.pc.in | ${WRKSRC}/libssh2.pc.in | ||||
.if defined(WITH_OPENSSL_BASE) | .if ${SSL_DEFAULT} == base | ||||
@${REINPLACE_CMD} -e 's/LIBSREQUIRED=libssl,libcrypto/LIBS="$$LIBS -lssl -lcrypto"/' \ | @${REINPLACE_CMD} -e 's/LIBSREQUIRED=libssl,libcrypto/LIBS="$$LIBS -lssl -lcrypto"/' \ | ||||
${WRKSRC}/configure | ${WRKSRC}/configure | ||||
.endif | .endif | ||||
post-build: | post-build: | ||||
@${REINPLACE_CMD} -E -e '/Requires.private:/{s/[[:<:]]zlib[[:>:]]//;s/,,/,/;s/ ,/ /;s/,$$//;}' \ | @${REINPLACE_CMD} -E -e '/Requires.private:/{s/[[:<:]]zlib[[:>:]]//;s/,,/,/;s/ ,/ /;s/,$$//;}' \ | ||||
${WRKSRC}/libssh2.pc | ${WRKSRC}/libssh2.pc | ||||
# allow maintainer to generate MAN3 manpages list (make extract is required before) | # allow maintainer to generate MAN3 manpages list (make extract is required before) | ||||
x-generate-man3: extract | x-generate-man3: extract | ||||
@(cd ${WRKSRC}/docs && ${LS} -1F *.3 | ${SORT} | ${CUT} -d '/' -f4 \ | @(cd ${WRKSRC}/docs && ${LS} -1F *.3 | ${SORT} | ${CUT} -d '/' -f4 \ | ||||
| ${GREP} -v template) | | ${GREP} -v template) | ||||
.include <bsd.port.post.mk> | .include <bsd.port.post.mk> |