# $Id: Portfile 116541 2014-01-28 05:37:15Z ryandesign@macports.org $

PortSystem 1.0

name			xfe
version			1.37
categories		x11
platforms		darwin freebsd
license			GPL-2+
maintainers		afb
description		X File Explorer (Xfe) is an MS-Explorer like file manager for X.
long_description	\
X File Explorer (Xfe) is a filemanager for X. It is based on the popular \
X Win Commander, which is discontinued. Xfe is desktop independent and \
is written with the C++ Fox Toolkit. It has Windows Commander or \
MS-Explorer look and is very fast and simple. The main features are: \
file associations, mount/umount devices, directory tree for quick cd, \
change file attributes, auto save registry, compressed archives \
view/creation/extraction and much more.

homepage 		http://roland65.free.fr/xfe/
master_sites		sourceforge:project/xfe/xfe/${version}/

checksums		rmd160  de93e388c521adfad3996021b551f54a77729d2c \
			sha256  4dbb2e24b18a63d78afd0219232f05cd7401370750e2db5f8fa70a6fef022abd

depends_build		port:intltool

depends_lib		port:fox port:libpng port:freetype

post-patch {
    reinplace "s|/usr/local/share|${prefix}/share|g" \
        ${worksrcpath}/src/XFileExplorer.cpp \
        ${worksrcpath}/src/xfedefs.h
}

# Fix build with freetype 2.5.1+
configure.args      ac_cv_header_freetype_config_ftheader_h=yes
