Makefile 951 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. # $OpenBSD: Makefile,v 1.5 2017/04/10 11:46:33 sthen Exp $
  2. COMMENT = OAuth support library for Qt-based applications
  3. V = 1.0.1
  4. DISTNAME = qoauth-${V}-src
  5. PKGNAME = ${DISTNAME:C/-src//}
  6. CATEGORIES = security devel
  7. HOMEPAGE = https://github.com/ayoy/qoauth
  8. SHARED_LIBS = qoauth 0.0
  9. # LGPLv2.1+
  10. PERMIT_PACKAGE_CDROM = Yes
  11. WANTLIB = lib/qt4/QtNetwork m pthread qca2 ${LIBCXX}
  12. MASTER_SITES = http://files.ayoy.net/qoauth/$V/
  13. EXTRACT_SUFX = .tar.bz2
  14. MODULES = devel/qmake x11/qt4
  15. SEPARATE_BUILD = No
  16. MODQMAKE_ARGS = PREFIX=${PREFIX}
  17. LIB_DEPENDS = security/qca2
  18. MAKE_FLAGS = LIBqoauth_VERSION=${LIBqoauth_VERSION}
  19. DESTDIRNAME = INSTALL_ROOT
  20. # XXX wants to interact with external servers, too
  21. TEST_IS_INTERACTIVE = X11
  22. TEST_NAMES = ft_interface ut_interface
  23. do-test:
  24. .for _t in ${TEST_NAMES}
  25. cd ${WRKBUILD}/tests/${_t} && \
  26. LD_PRELOAD=${WRKBUILD}/lib/libqoauth.so.${LIBqoauth_VERSION} \
  27. ./${_t}
  28. .endfor
  29. .include <bsd.port.mk>