summaryrefslogtreecommitdiff
path: root/sysutils/p5-Sys-Gamin/Makefile
blob: f37f5cb337332687be3f9d1e9311fab57a681eec (plain) (blame)
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
# Created by: Nick Hibma <n_hibma@FreeBSD.org>
# $FreeBSD$

PORTNAME=	Sys-Gamin
PORTVERSION=	0.1
PORTREVISION=	1
CATEGORIES=	sysutils perl5
MASTER_SITES=	CPAN
PKGNAMEPREFIX=	p5-

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Perl interface to Gamin (File Access Monitor implementation)

USES=		perl5
USE_PERL5=	configure
USE_FAM=	yes
MAN1=	gamin-monitor.1
MAN3=	Sys::Gamin.3

pre-configure:
	# Pass in include in LOCALBASE
	${PERL} -pi -e 'm/LIBS =>/ && print "  INC => \"-I${LOCALBASE}/include\",\n"' ${WRKSRC}/Makefile.PL
	# Rename a tool with a generic name (monitor)
	${PERL} -pi -e 's/qw.monitor./qw(gamin-monitor)/' ${WRKSRC}/Makefile.PL
	${PERL} -pi -e 's/^monitor$$/gamin-monitor/' ${WRKSRC}/MANIFEST
	${MV} ${WRKSRC}/monitor ${WRKSRC}/gamin-monitor

.include <bsd.port.mk>