# Created by: Jens K. Loewe <bsd@tuxproject.de>
# $FreeBSD: tags/RELEASE_10_1_0/x11-fm/rodent/Makefile 351936 2014-04-23 13:25:16Z tijl $

PORTNAME=	rodent
PORTVERSION=	4.8.0
PORTREVISION=	3
CATEGORIES=	x11-fm
MASTER_SITES=	SF/xffm/${PORTVERSION}/

MAINTAINER=	rodrigo@FreeBSD.org
COMMENT=	Fast, small and powerful file manager

LICENSE=	GPLv3

BUILD_DEPENDS=	gawk:${PORTSDIR}/japanese/gawk \
		bash:${PORTSDIR}/shells/bash \
		intltoolize:${PORTSDIR}/textproc/intltool
LIB_DEPENDS=	libcairo.so:${PORTSDIR}/graphics/cairo \
		libmagic.so:${PORTSDIR}/sysutils/file

USES=		desktop-file-utils gmake libtool:keepla pkgconfig
USE_GNOME=	glib20 gtk20 librsvg2 libxml2
GNU_CONFIGURE=	yes
CONFIGURE_ARGS+=--docdir=${DOCSDIR}
USE_LDCONFIG=	yes
INSTALLS_ICONS=	yes
INSTALL_TARGET=	install-strip

PORTDOCS=	*

OPTIONS_DEFINE=	NLS
OPTIONS_SUB=	yes

NLS_USES=	gettext
NLS_CONFIGURE_ENABLE=	nls

post-patch:
	${REINPLACE_CMD} -e 's,^\(docdir = \).*,\1${DOCSDIR},' \
		${WRKSRC}/Build/share/Makefile.in

.for a in ia64 powerpc sparc63
BROKEN_${a}=		Does not compile on ia64, powerpc, or sparc64
.endfor

.include <bsd.port.mk>
