Makefile 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. # $OpenBSD: Makefile,v 1.11 2017/04/10 11:46:21 sthen Exp $
  2. COMMENT= fast and simple image viewer
  3. DISTNAME= viewnior-1.6
  4. CATEGORIES= graphics x11
  5. HOMEPAGE= http://siyanpanayotov.com/project/viewnior/
  6. # GPLv3
  7. PERMIT_PACKAGE_CDROM= Yes
  8. WANTLIB += X11 Xcomposite Xcursor Xdamage Xext Xfixes Xi Xinerama
  9. WANTLIB += Xrandr Xrender atk-1.0 c cairo exiv2 expat ffi fontconfig
  10. WANTLIB += freetype gdk-x11-2.0 gdk_pixbuf-2.0 gio-2.0 glib-2.0
  11. WANTLIB += gmodule-2.0 gobject-2.0 graphite2 gthread-2.0 gtk-x11-2.0
  12. WANTLIB += harfbuzz m pango-1.0 pangocairo-1.0 pangoft2-1.0 pcre
  13. WANTLIB += pixman-1 png pthread pthread-stubs ${LIBCXX} xcb xcb-render
  14. WANTLIB += xcb-shm z
  15. MASTER_SITES= https://github.com/xsisqox/Viewnior/archive/
  16. MODULES= devel/gettext \
  17. textproc/intltool
  18. LIB_DEPENDS= graphics/exiv2 \
  19. x11/gtk+2
  20. RUN_DEPENDS= devel/desktop-file-utils \
  21. x11/gtk+3,-guic
  22. USE_GMAKE= yes
  23. WRKDIST= ${WRKDIR}/Viewnior-${DISTNAME}
  24. # detect images using mimetype
  25. BUILD_DEPENDS += misc/shared-mime-info
  26. RUN_DEPENDS += misc/shared-mime-info
  27. AUTOCONF_VERSION= 2.69
  28. AUTOMAKE_VERSION= 1.15
  29. BUILD_DEPENDS += ${MODGNU_AUTOCONF_DEPENDS} \
  30. ${MODGNU_AUTOMAKE_DEPENDS} \
  31. devel/libtool
  32. CONFIGURE_STYLE= gnu
  33. CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
  34. LDFLAGS="-L${LOCALBASE}/lib"
  35. pre-configure:
  36. cd ${WRKSRC} && \
  37. AUTOCONF_VERSION=${AUTOCONF_VERSION} \
  38. AUTOMAKE_VERSION=${AUTOMAKE_VERSION} \
  39. autoreconf -fi
  40. .include <bsd.port.mk>