# Created by: ptiJo
# $FreeBSD: tags/RELEASE_10_2_0/x11-fm/xfe/Makefile 379123 2015-02-16 22:13:12Z madpilot $

PORTNAME=	xfe
PORTVERSION=	1.40
CATEGORIES=	x11-fm
MASTER_SITES=	SF

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Fast MS-Explorer like file manager for X

LICENSE=	GPLv2

LIB_DEPENDS=	libFOX-1.6.so:${PORTSDIR}/x11-toolkits/fox16

OPTIONS_DEFINE=	NLS

OPTIONS_SUB=	yes
NLS_CONFIGURE_ENABLE=	nls

USES=		desktop-file-utils gettext gmake pathfix
USE_XORG=	xft
USE_GNOME=	intltool
GNU_CONFIGURE=	yes

CFLAGS+=	-I${LOCALBASE}/include
LDFLAGS+=	-L${LOCALBASE}/lib -pthread

post-patch:
.for i in XFileExplorer.cpp help.h xfedefs.h
	@${REINPLACE_CMD} -e \
		's|/usr/local/share/xfe|${DATADIR}|g' ${WRKSRC}/src/${i}
.endfor
	@${REINPLACE_CMD} -e \
		'/<utmp.h>/d' ${WRKSRC}/xvt/ttyinit.c

.include <bsd.port.mk>
