Makefile 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. # $OpenBSD: Makefile,v 1.9 2017/04/10 11:45:22 sthen Exp $
  2. COMMENT = Qt/C++ wrapper for ZIP/UNZIP package
  3. DISTNAME = quazip-0.7.2
  4. CATEGORIES = archivers
  5. # keep those in sync
  6. SHARED_LIBS = quazip 2.0 # 1.0
  7. SHARED_LIBS += quazip5 2.0 # 1.0
  8. HOMEPAGE = http://quazip.sourceforge.net/
  9. # LGPLv2.1
  10. PERMIT_PACKAGE_CDROM = Yes
  11. WANTLIB += m z
  12. MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=quazip/}
  13. MODULES = devel/cmake devel/qmake
  14. # qmake.port.mk is used for tests only
  15. MODQMAKE_PROJECTS = qztest/qztest.pro
  16. FLAVORS = qt5
  17. FLAVOR ?=
  18. .if ${FLAVOR:Mqt5}
  19. FULLPKGNAME = ${PKGNAME:C/-/-qt5-/}
  20. MODULES += x11/qt5
  21. WANTLIB += Qt5Core
  22. CONFIGURE_ARGS = -DBUILD_WITH_QT4=No
  23. CMAKENAME = QuaZip5
  24. .else
  25. MODULES += x11/qt4
  26. WANTLIB += ${LIBCXX}
  27. CONFIGURE_ARGS = -DBUILD_WITH_QT4=Yes
  28. CMAKENAME = QuaZip
  29. .endif
  30. LIBNAME = ${CMAKENAME:L}
  31. SUBST_VARS = CMAKENAME LIBNAME
  32. do-test:
  33. mkdir -p ${WRKBUILD}/qztest
  34. ln -sf ../lib${LIBNAME}.so.${LIBquazip_VERSION} ${WRKBUILD}/quazip/libquazip.so.${LIBquazip_VERSION}
  35. ${MODQMAKE_configure}
  36. ${MODQMAKE_build}
  37. cd ${WRKBUILD}/qztest; \
  38. env LD_LIBRARY_PATH=${WRKBUILD}/quazip ./qztest
  39. .include <bsd.port.mk>