Makefile 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. # $OpenBSD: Makefile,v 1.9 2017/04/10 11:46:21 sthen Exp $
  2. COMMENT-main = library for encoding data in several barcode variants
  3. COMMENT-x11 = graphical interface for the zint barcode generator
  4. V = 2.4.3
  5. DISTNAME = zint-${V}
  6. PKGNAME-main = ${DISTNAME}
  7. PKGNAME-x11 = zint-gui-${V}
  8. REVISION-main = 2
  9. REVISION-x11 = 3
  10. SHARED_LIBS += QZint 0.0 # 2.4
  11. SHARED_LIBS += zint 0.0 # 2.4
  12. CATEGORIES = graphics
  13. MAINTAINER = Kirill Bychkov <kirby@openbsd.org>
  14. # GPLv3+
  15. PERMIT_PACKAGE_CDROM = Yes
  16. cWANTLIB = c m png z
  17. WANTLIB-main = ${cWANTLIB}
  18. WANTLIB-x11 = ${cWANTLIB} QtCore QtGui QtXml ${LIBCXX} zint pthread
  19. MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=zint/}
  20. MODULES = devel/cmake
  21. LIB_DEPENDS-main = graphics/png
  22. MULTI_PACKAGES = -main
  23. PSEUDO_FLAVORS = no_x11
  24. FLAVOR ?=
  25. TEST_DEPENDS = ${BASE_PKGPATH},-main
  26. .if !${FLAVOR:Mno_x11}
  27. MULTI_PACKAGES += -x11
  28. MODULES += x11/qt4
  29. LIB_DEPENDS-x11 += ${BASE_PKGPATH},-main \
  30. ${MODQT4_LIB_DEPENDS}
  31. RUN_DEPENDS-x11 += devel/desktop-file-utils
  32. post-install:
  33. ${INSTALL_DATA_DIR} ${PREFIX}/share/applications/
  34. ${INSTALL_DATA_DIR} ${PREFIX}/share/pixmaps/
  35. ${INSTALL_DATA} ${WRKSRC}/zint-qt.desktop ${PREFIX}/share/applications/
  36. ${INSTALL_DATA} ${WRKSRC}/zint.png ${PREFIX}/share/pixmaps/
  37. .endif
  38. do-test:
  39. cd ${WRKSRC}/frontend/ && /bin/sh ./test.sh
  40. .include <bsd.port.mk>