freebsd-ports/net/qt5-network/Makefile
Felix Palmen ddae4e92d8 Mk/Uses: always use colon for build/run suffix
Most USES use a colon for build/run(/test) suffixes. Change kde.mk,
qt.mk and pyqt.mk to do the same, and update all ports using that.

Document in CHANGES.

PR:			266034
Exp-run by:		antoine
Approved by:		tcberner (mentor)
Differential Revision:	https://reviews.freebsd.org/D36349
2022-09-11 12:20:14 +02:00

54 lines
1.4 KiB
Makefile

PORTNAME= network
PORTVERSION= ${QT5_VERSION}${QT5_KDE_PATCH}
PORTREVISION= 1
CATEGORIES= net
PKGNAMEPREFIX= qt5-
MAINTAINER= kde@FreeBSD.org
COMMENT= Qt network module
RUN_DEPENDS= ${LOCALBASE}/share/certs/ca-root-nss.crt:security/ca_root_nss
USES= compiler:c++11-lang perl5 qmake:no_env qt-dist:5,base ssl
USE_PERL5= extract
USE_QT= core buildtools:build
HAS_CONFIGURE= yes
CONFIGURE_ARGS= -no-gui -no-xcb
BUILD_WRKSRC= ${WRKSRC}/src/${PORTNAME}
INSTALL_WRKSRC= ${BUILD_WRKSRC}
QT_DEFINES= OPENSSL SSL
QT_CONFIG= openssl
.include <bsd.port.pre.mk>
# LibreSSL does not currently support BIO_ADDR in DTLSv1_listen()
.if ${SSL_DEFAULT:Mlibressl*}
CONFIGURE_ARGS+= -no-feature-dtls
.endif
post-patch:
@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' \
${BUILD_WRKSRC}/ssl/qsslsocket_openssl.cpp
@${REINPLACE_CMD} -e 's|%%OPENSSLLIB%%|${OPENSSLLIB}|g' \
${BUILD_WRKSRC}/ssl/qsslsocket_openssl_symbols.cpp
post-configure:
.for d in src/network src/plugins/bearer/generic
${MKDIR} ${WRKSRC}/${d}
cd ${WRKSRC}/${d} && ${SETENV} ${QMAKE_ENV} ${_QMAKE} ${QMAKE_ARGS} ${WRKSRC}/${d}
.endfor
post-build:
@cd ${WRKSRC}/src/plugins/bearer/generic && \
${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} \
${_MAKE_JOBS} ${MAKE_ARGS} ${ALL_TARGET}
post-install:
@cd ${WRKSRC}/src/plugins/bearer/generic && \
${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} \
${MAKE_ARGS} ${INSTALL_TARGET}
.include <bsd.port.post.mk>