mirror of
https://git.freebsd.org/ports.git
synced 2025-05-05 07:57:38 -04:00
39 lines
1.1 KiB
Makefile
39 lines
1.1 KiB
Makefile
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>
|