PORTNAME=	caja
DISTVERSION=	1.28.0
PORTREVISION=	5
CATEGORIES=	x11-fm mate
MASTER_SITES=	https://github.com/mate-desktop/${PORTNAME}/releases/download/v${DISTVERSION}/
DIST_SUBDIR=	mate

MAINTAINER=	gnome@FreeBSD.org
COMMENT?=	File manager for the MATE desktop
WWW=		https://mate-desktop.org/

LICENSE=	GPLv2+ LGPL20+
LICENSE_COMB=	multi
LICENSE_FILE_GPLv2+ =	${WRKSRC}/COPYING
LICENSE_FILE_LGPL20+ =	${WRKSRC}/COPYING.LIB

LIB_DEPENDS=	libexif.so:graphics/libexif \
		libexempi.so:textproc/exempi \
		libffmpegthumbnailer.so:multimedia/ffmpegthumbnailer \
		libstartup-notification-1.so:x11/startup-notification \
		libnotify.so:devel/libnotify

USES=		compiler:c11 desktop-file-utils gettext gmake gnome libtool \
		localbase mate pathfix pkgconfig shared-mime-info tar:xz xorg
USE_MATE=	desktop icontheme:run
USE_XORG=	ice sm x11
USE_GNOME=	cairo gtk30 gnomeprefix intltool introspection:build libxml2 \
		gvfs
USE_LDCONFIG=	yes
PORTSCOUT=	site:https://github.com/mate-desktop/caja/releases/ limitw:1,even
GNU_CONFIGURE=	yes
GNU_CONFIGURE_MANPREFIX=${PREFIX}/share
CONFIGURE_ARGS=	--disable-packagekit \
		--disable-update-mimedb
INSTALL_TARGET=	install-strip

GLIB_SCHEMAS=	org.mate.caja.gschema.xml \
		org.mate.media-handling.gschema.xml

post-install:
	@${MKDIR} ${STAGEDIR}${PREFIX}/lib/caja/extensions-2.0

.include <bsd.port.mk>
