summaryrefslogtreecommitdiffstats
path: root/x11-fm/mtoolsfm/Makefile
blob: 3231083bbafc382a58531bad33ea26becfff1a37 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Created by: Michael Vasilenko <acid@stu.cn.ua>
# $FreeBSD$

PORTNAME=	mtoolsfm
PORTVERSION=	1.9.5
PORTREVISION=	2
CATEGORIES=	x11-fm
MASTER_SITES=	SF
DISTNAME=	MToolsFM-${PORTVERSION}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	A graphical frontend to mtools

RUN_DEPENDS=	mtools:${PORTSDIR}/emulators/mtools

USES=        pathfix
USE_GNOME=	gtk12
USE_GETTEXT=	yes
GNU_CONFIGURE=	yes
CPPFLAGS+=	-I${LOCALBASE}/include
LDFLAGS+=	-L${LOCALBASE}/lib
CONFIGURE_ARGS=	--with-conffile="${PREFIX}/etc/mtoolsfm.conf"

MAN1=		mtoolsfm.1

post-patch:
	@${REINPLACE_CMD} -e 's|MToolsFM|mtoolsfm|g' ${WRKSRC}/configure
	@${FIND} ${WRKSRC} -name 'Makefile.in' | ${XARGS} ${REINPLACE_CMD} -e \
		's|MToolsFM|mtoolsfm|g'
	@cd ${WRKSRC} && ${SED} -e \
		's|MToolsFM|mtoolsfm|g ; \
		 s| /etc| ${PREFIX}/etc|g ; \
		 s|/usr/X11R6/bin|${PREFIX}/bin|g ; \
		 s|/usr/bin|${LOCALBASE}/bin|g ; \
		 s|^/etc|${PREFIX}/etc|g' < MToolsFM.1 > mtoolsfm.1

.include <bsd.port.mk>
OpenPOWER on IntegriCloud