aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/p5-Sys-Gamin/Makefile
blob: 56735744df932e42de29c7635c0e6d6ec99a90eb (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
29
30
# Created by: Nick Hibma <n_hibma@FreeBSD.org>
# $FreeBSD$

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

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

USES=       fam perl5
USE_PERL5=  configure

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

post-install:
    ${CHMOD} u+w ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/Sys/Gamin/Gamin.so
    ${STRIP_CMD} ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/Sys/Gamin/Gamin.so
    ${CHMOD} u-w ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/Sys/Gamin/Gamin.so

.include <bsd.port.mk>