Makefile 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. # $OpenBSD: Makefile,v 1.24 2017/05/27 09:51:12 zhuk Exp $
  2. COMMENT= generate and manipulate maps of your thoughts
  3. DISTNAME= vym-2.5.0
  4. CATEGORIES= productivity x11
  5. REVISION= 1
  6. HOMEPAGE= http://www.insilmaril.de/vym/
  7. # modified GPLv2
  8. PERMIT_PACKAGE_CDROM= Yes
  9. MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=vym/}
  10. EXTRACT_SUFX= .tar.bz2
  11. WANTLIB += GL Qt5Core Qt5DBus Qt5Gui Qt5Network Qt5PrintSupport
  12. WANTLIB += Qt5Svg Qt5Widgets Qt5Xml c m pthread
  13. MODULES= devel/gettext \
  14. devel/qmake \
  15. x11/qt5
  16. RUN_DEPENDS= archivers/zip \
  17. archivers/unzip \
  18. textproc/libxslt
  19. LIB_DEPENDS= x11/qt5/qtsvg
  20. PORTHOME= ${WRKDIR}
  21. NO_TEST= Yes
  22. SHARE_DIRS= flags flags/freemind icons scripts styles
  23. pre-configure:
  24. @echo "QMAKE_CXXFLAGS_RELEASE=${CXXFLAGS}" \
  25. >> ${WRKSRC}/vym.pro
  26. ${SUBST_CMD} ${WRKSRC}/mainwindow.cpp ${WRKSRC}/main.cpp
  27. do-install:
  28. ${INSTALL_PROGRAM} ${WRKBUILD}/vym ${PREFIX}/bin
  29. ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/vym/
  30. ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/vym/
  31. ${INSTALL_DATA} ${WRKSRC}/doc/*.pdf ${PREFIX}/share/doc/vym/
  32. ${INSTALL_DATA} ${WRKSRC}/demos/* ${PREFIX}/share/examples/vym/
  33. .for i in ${SHARE_DIRS}
  34. ${INSTALL_DATA_DIR} ${PREFIX}/share/vym/${i}
  35. find ${WRKSRC}/${i}/ -type f -exec \
  36. ${INSTALL_DATA} {} ${PREFIX}/share/vym/${i} \;
  37. .endfor
  38. ${INSTALL_DATA} ${WRKSRC}/doc/vym.1.gz ${PREFIX}/man/man1
  39. gunzip ${PREFIX}/man/man1/vym.1.gz
  40. .include <bsd.port.mk>