openbsd-ports/security/kqoauth/Makefile
zhuk ff2bcd660e Import kQOAuth, optional KIPI plugins dependency that's too similar
to QOAuth.

kQOAuth is a library written in C++ for Qt that implements the OAuth
1.0 authentication specification RFC 5849 and is based on QOAuth
library.  However, QOAuth's approach is improved in some ways.

kQOAuth main features:
  * Easy integrated solution for retrieving user authentication and
    access token.
  * No external dependency to QCA.
  * Convenient signals that can be used for easy OAuth authorization
    process handling.
  * Access to request objects that will wrap request signing and
    network access, but still gives possibility for detailed control
    of the authentication process for easier integration to existing
    application logic.

okay landry@
2013-04-01 11:55:32 +00:00

44 lines
974 B
Makefile

# $OpenBSD: Makefile,v 1.1.1.1 2013/04/01 11:55:32 zhuk Exp $
SHARED_ONLY = Yes
COMMENT = OAuth support library for Qt-based applications
V = 0.97
DISTNAME = ${V}
PKGNAME = kqoauth-${V}
CATEGORIES = security devel
HOMEPAGE = https://github.com/kypeli/kQOAuth
SHARED_LIBS = kqoauth 0.0
# LGPLv2.1+
PERMIT_PACKAGE_CDROM = Yes
WANTLIB = ICE SM X11 Xext Xi Xinerama Xrender fontconfig freetype
WANTLIB += m pthread stdc++
WANTLIB += lib/qt4/QtGui lib/qt4/QtNetwork
MASTER_SITES = ${HOMEPAGE}/archive/
DIST_SUBDIR = kqoauth
WRKDIST = ${WRKDIR}/kQOAuth-${V}
MODULES = x11/qt4
MAKE_FLAGS = LIBkqoauth_VERSION=${LIBkqoauth_VERSION}
DESTDIRNAME = INSTALL_ROOT
TEST_NAMES = ft_kqoauth ut_kqoauth
do-configure:
cd ${WRKDIST} && ${LOCALBASE}/bin/qmake4 \
PREFIX=${PREFIX} \
kqoauth.pro
do-test:
.for _t in ${TEST_NAMES}
cd ${WRKBUILD}/tests/${_t} && \
LD_PRELOAD=${WRKBUILD}/lib/libkqoauth.so.${LIBkqoauth_VERSION} \
./${_t}
.endfor
.include <bsd.port.mk>