Makefile 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. # $OpenBSD: Makefile,v 1.4 2017/03/28 12:43:37 awolk Exp $
  2. COMMENT = convert images to cross stitch patterns
  3. GH_ACCOUNT = kleintom
  4. GH_PROJECT = cstitch
  5. GH_TAGNAME = 0.9.8
  6. DISTFILES= ${DISTNAME}.tar.gz ${DISTNAME}-icons{icons}.zip:0
  7. MASTER_SITES0 = http://sourceforge.net/projects/cstitch/files/Cstitch/Icons/
  8. MODULES = devel/qmake lang/python x11/qt5
  9. MODPY_RUNDEP = No
  10. CATEGORIES = graphics
  11. HOMEPAGE = http://cstitch.sourceforge.net/
  12. MAINTAINER = Adam Wolk <awolk@openbsd.org>
  13. # GPLv3
  14. PERMIT_PACKAGE_CDROM = Yes
  15. WANTLIB += GL Qt5Core Qt5Gui Qt5PrintSupport Qt5Widgets Qt5Xml
  16. WANTLIB += c m pthread
  17. RUN_DEPENDS = devel/desktop-file-utils x11/gtk+3,-guic
  18. WRKDIST = ${WRKDIR}/Cstitch-${GH_TAGNAME}
  19. EXTRACT_CASES += *icons.zip) \
  20. ${UNZIP} -qo ${FULLDISTDIR}/$$archive -d \
  21. ${WRKDIST}/icons/;;
  22. pre-configure:
  23. cd ${WRKDIST} && \
  24. ${MODPY_BIN} doc/createDocs.py && \
  25. ${MODQT_QMAKE} -project && \
  26. ${MODPY_BIN} progen.py
  27. do-install:
  28. ${INSTALL_PROGRAM} ${WRKBUILD}/Cstitch-${GH_TAGNAME} \
  29. ${PREFIX}/bin/cstitch
  30. ${INSTALL_DATA_DIR} \
  31. ${PREFIX}/share/icons/hicolor/scalable/apps
  32. ${INSTALL_DATA} ${WRKSRC}/icons/cstitch.svg \
  33. ${PREFIX}/share/icons/hicolor/scalable/apps/
  34. ${INSTALL_DATA_DIR} ${PREFIX}/share/applications
  35. ${INSTALL_DATA} ${WRKSRC}/cstitch.desktop \
  36. ${PREFIX}/share/applications/
  37. ${INSTALL_DATA_DIR} ${PREFIX}/share/cstitch/locale/
  38. ${INSTALL_DATA} ${WRKSRC}/translations/*.qm \
  39. ${PREFIX}/share/cstitch/locale/
  40. .include <bsd.port.mk>