# Created by: Martin Tournoij <carpetsmoker@xs4all.nl>
# $FreeBSD: branches/RELENG_9_2_0/x11-fm/pcmanfm/Makefile 323616 2013-07-24 20:06:46Z pawel $

PORTNAME=	pcmanfm
PORTVERSION=	1.1.1
CATEGORIES=	x11-fm
MASTER_SITES=	SF/${PORTNAME}/PCManFM%20%2B%20Libfm%20%28tarball%20release%29/PCManFM/

MAINTAINER=	nemysis@gmx.ch
COMMENT=	PCMan File Manager

LICENSE=	GPLv2

LIB_DEPENDS=	startup-notification-1:${PORTSDIR}/x11/startup-notification \
		fm-gtk.4:${PORTSDIR}/x11/libfm

USE_GNOME=	gtk20
USE_AUTOTOOLS=	libtool
USE_GMAKE=	yes
USE_FAM=	yes
CPPFLAGS+=	-I${LOCALBASE}/include
LDFLAGS+=	-L${LOCALBASE}/lib

MAN1=		pcmanfm.1

OPTIONS_DEFINE=	NLS
OPTIONS_SUB=	yes

NLS_USES=	gettext

.include <bsd.port.options.mk>

post-patch:
.if ! ${PORT_OPTIONS:MNLS}
	@${REINPLACE_CMD} -e 's|src po|src|' \
		${WRKSRC}/Makefile.in
.endif

.include <bsd.port.mk>
