After the nice suggestion from @diizzy and @mat, this port will use the release assets instead. LICENSE_FILE has been added and remove the picojson.h install. Approved by: 0mp (mentor) Approved by: diizzy Differential Revision: https://reviews.freebsd.org/D50656
28 lines
766 B
Makefile
28 lines
766 B
Makefile
PORTNAME= jwt-cpp
|
|
DISTVERSIONPREFIX= v
|
|
DISTVERSION= 0.7.1
|
|
PORTREVISION= 2
|
|
CATEGORIES= devel
|
|
MASTER_SITES= https://github.com/Thalhammer/jwt-cpp/releases/download/${DISTVERSIONFULL}/
|
|
|
|
MAINTAINER= kiwi@FreeBSD.org
|
|
COMMENT= Header only library for creating and validating JSON web tokens in C++
|
|
WWW= https://thalhammer.github.io/jwt-cpp/
|
|
|
|
LICENSE= MIT
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/include/picojson.h:devel/picojson
|
|
RUN_DEPENDS= ${LOCALBASE}/include/picojson.h:devel/picojson
|
|
|
|
USES= cmake pkgconfig:both
|
|
|
|
CMAKE_ARGS= -DJWT_CMAKE_FILES_INSTALL_DIR:STRING="lib/cmake/${PORTNAME}"
|
|
CMAKE_ON= DISABLE_JWP_CPP_PICOJSON \
|
|
JWT_DISABLE_PICOJSON \
|
|
JWT_EXTERNAL_PICOJSON
|
|
CMAKE_OFF= JWT_BUILD_EXAMPLES
|
|
|
|
NO_WRKSUBDIR= yes
|
|
.include <bsd.port.mk>
|