mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-07 06:40:06 +00:00
d927653584
PR: 261056 Reviewed by: svysh.fbsd@gmail.com (maintainer) Approved by: svysh.fbsd@gmail.com (maintainer) MFH: 2022Q1 Security: CVE-2021-46141 CVE-2021-46142
48 lines
1.4 KiB
Makefile
48 lines
1.4 KiB
Makefile
# Created by: Ed Schouten <ed@FreeBSD.org>
|
|
|
|
PORTNAME= uriparser
|
|
DISTVERSION= 0.9.6
|
|
CATEGORIES= net
|
|
MASTER_SITES= https://github.com/${PORTNAME}/${PORTNAME}/releases/download/${PORTNAME}-${PORTVERSION}/
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
|
|
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
|
|
|
|
MAINTAINER= svysh.fbsd@gmail.com
|
|
COMMENT= URI parsing library
|
|
|
|
LICENSE= BSD3CLAUSE
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
BUILD_DEPENDS= bash:shells/bash
|
|
|
|
USES= cmake:noninja cpe pathfix tar:xz
|
|
CPE_VENDOR= uriparser_project
|
|
USE_LDCONFIG= yes
|
|
|
|
CMAKE_OFF= URIPARSER_BUILD_DOCS # will fetch prebuilds from the upstream, if DOCS is selected
|
|
|
|
TEST_TARGET= test
|
|
|
|
PLIST_SUB= DISTVERSION=${DISTVERSION}
|
|
PORTDOCS= *
|
|
|
|
OPTIONS_DEFINE= DOCS TEST
|
|
DOCS_DISTFILES= ${_DISTDOCSFILE} \
|
|
${DISTNAME}.qch
|
|
DOCS_EXTRACT_ONLY= ${_DISTDOCSFILE}
|
|
TEST_BUILD_DEPENDS= googletest>=1.10.0:devel/googletest
|
|
TEST_CMAKE_BOOL= URIPARSER_BUILD_TESTS
|
|
|
|
_DISTDOCSFILE= ${_DISTDOCSNAME}.zip
|
|
_DISTDOCSNAME= ${DISTNAME}-doc
|
|
|
|
post-install-DOCS-on:
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}/qch
|
|
cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}
|
|
cd ${WRKSRC}/../${_DISTDOCSNAME} && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_MAN} ${DISTDIR}/${DISTNAME}.qch ${STAGEDIR}${DOCSDIR}/qch
|
|
( ${ECHO} "QCH file is a QT Compressed Help file, generated by doxygen, cf:"; \
|
|
${ECHO} "https://doc.qt.io/qt-5/assistant-details.html"; ) > ${STAGEDIR}${DOCSDIR}/qch/readme-qch
|
|
|
|
.include <bsd.port.mk>
|