summaryrefslogtreecommitdiff
path: root/sysutils/signon-plugin-oauth2/Makefile
blob: 9f5ed241e90e8a2505779668334768d34b3178b4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
PORTNAME=	signon-plugin-oauth2
DISTVERSION=	0.25
PORTREVISION=	2
CATEGORIES=	sysutils kde
DISTNAME=	archive
DIST_SUBDIR=	KDE/${GL_ACCOUNT}
PKGNAMESUFFIX=	-${FLAVOR}

MAINTAINER=	kde@FreeBSD.org
COMMENT=	Signon OAuth 1.0 and 2.0 plugin for accounts-sso
WWW=		https://gitlab.com/accounts-sso/signon-plugin-oauth2

FLAVORS=	qt5 qt6
FLAVOR?=	qt5

LIB_DEPENDS=	libsignon-qt${FLAVOR:S/qt//}.so:sysutils/signond@${FLAVOR}

USES=		compiler:c++11-lang pkgconfig python qmake qt:${FLAVOR:S/qt//}
_USE_QT_qt5=	core network testlib \
		buildtools:build qmake:build
_USE_QT_qt6=	base
USE_QT=		${_USE_QT_${FLAVOR}}
USE_LDCONFIG=	${PREFIX}/lib/signon

QMAKE_ENV=	PREFIX=${PREFIX}

# gitlab variables
USE_GITLAB=	yes
GL_ACCOUNT=	nicolasfella
GL_TAGNAME=	fab698862466994a8fdc9aa335c87b4f05430ce6

# Fix for  Qt5-5.13:
# oauth2plugin.cpp:133:9: error: 'addQueryItem' is deprecated [-Werror,-Wdeprecated-declarations]
#  url.addQueryItem(CLIENT_ID, d->m_oauth2Data.ClientId());
#      ^
post-patch:
	${REINPLACE_CMD} '/-Werror/d' ${PATCH_WRKSRC}/common-project-config.pri

.include <bsd.port.mk>