openbsd-ports/security/qoauth/Makefile
zhuk 5c9fabaf1e Import QOAuth, KDE 4 prerequisite.
QOAuth is an attempt to support interaction with OAuth-powered network
services in a Qt way, i.e. simply, clearly and efficiently.

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

44 lines
995 B
Makefile

# $OpenBSD: Makefile,v 1.1.1.1 2013/04/01 11:53:55 zhuk Exp $
SHARED_ONLY = Yes
COMMENT = OAuth support library for Qt-based applications
V = 1.0.1
DISTNAME = qoauth-${V}-src
PKGNAME = ${DISTNAME:C/-src//}
CATEGORIES = security devel
HOMEPAGE = https://github.com/ayoy/qoauth
SHARED_LIBS = qoauth 0.0
# LGPLv2.1+
PERMIT_PACKAGE_CDROM = Yes
WANTLIB = lib/qt4/QtNetwork m pthread qca2 stdc++
MASTER_SITES = http://files.ayoy.net/qoauth/$V/
EXTRACT_SUFX = .tar.bz2
MODULES = x11/qt4
LIB_DEPENDS = security/qca2
MAKE_FLAGS = LIBqoauth_VERSION=${LIBqoauth_VERSION}
DESTDIRNAME = INSTALL_ROOT
# XXX wants to interact with external servers, too
TEST_IS_INTERACTIVE = X11
TEST_NAMES = ft_interface ut_interface
do-configure:
cd ${WRKDIST} && ${LOCALBASE}/bin/qmake4 \
PREFIX=${PREFIX} \
qoauth.pro
do-test:
.for _t in ${TEST_NAMES}
cd ${WRKBUILD}/tests/${_t} && \
LD_PRELOAD=${WRKBUILD}/lib/libqoauth.so.${LIBqoauth_VERSION} \
./${_t}
.endfor
.include <bsd.port.mk>