Makefile 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. # $OpenBSD$
  2. COMMENT = simple GTK+ screenshot application
  3. V_HASH = 7b344552db6c12a2388680888a7767991bd3eb79
  4. # first seven chars of git commit hash
  5. V_HASH_SHORT = 7b34455
  6. # <commit year>.<commit month>.<first seven chars from git commit hash>
  7. V = 2018.03.git${V_HASH_SHORT}
  8. PKGNAME = simpleshot-gtk-${V}
  9. DISTNAME = ${V_HASH}
  10. EXTRACT_SUFX = .zip
  11. WRKDIST = ${WRKDIR}/simpleshot-gtk-${V_HASH}
  12. CATEGORIES = graphics
  13. HOMEPAGE = https://github.com/Tomaszal/simpleshot-gtk
  14. MAINTAINER = Adnan Shameem <adnan360@protonmail.com>
  15. # GNU General Public License v3.0
  16. PERMIT_PACKAGE = Yes
  17. MASTER_SITES = https://github.com/Tomaszal/simpleshot-gtk/archive/
  18. BUILD_DEPENDS = devel/pkgconf
  19. LIB_DEPENDS = x11/gtk+3 \
  20. graphics/slop
  21. RUN_DEPENDS = devel/desktop-file-utils
  22. WANTLIB += atk-1.0 c cairo cairo-gobject gdk-3 gdk_pixbuf-2.0
  23. WANTLIB += gio-2.0 glib-2.0 gobject-2.0 gtk-3 harfbuzz intl pango-1.0
  24. WANTLIB += pangocairo-1.0 slopy
  25. USE_GMAKE = Yes
  26. NO_TEST = Yes
  27. do-install:
  28. ${INSTALL_PROGRAM} ${WRKSRC}/simpleshot ${PREFIX}/bin
  29. ${INSTALL_DATA_DIR} ${PREFIX}/share/applications/
  30. ${SUBST_DATA} ${FILESDIR}/simpleshot.desktop \
  31. ${PREFIX}/share/applications/simpleshot.desktop
  32. @chown ${SHAREOWN}:${SHAREGRP} \
  33. ${PREFIX}/share/applications/simpleshot.desktop
  34. ${INSTALL_DATA_DIR} ${PREFIX}/share/glib-2.0/schemas/
  35. ${INSTALL_DATA} ${WRKSRC}/com.tomaszal.simpleshot.gschema.xml \
  36. ${PREFIX}/share/glib-2.0/schemas/
  37. ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/${PKGNAME}
  38. ${INSTALL_DATA} ${WRKSRC}/LICENSE ${PREFIX}/share/doc/${PKGNAME}
  39. .include <bsd.port.mk>