aboutsummaryrefslogtreecommitdiffstats
path: root/x11/p5-X11-IdleTime/Makefile
blob: 4f2f9eb2dfc5ac5fb4bc543c1fb24f223610783e (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
31
32
33
34
# New ports collection makefile for:    p5-X11-IdleTime
# Date created:     9 July 2003
# Whom:         Sean Farley <sean-freebsd@farley.org>
#
# $FreeBSD$
#

PORTNAME=   X11-IdleTime
PORTVERSION=    0.5
CATEGORIES= x11 perl5
MASTER_SITES=   ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= X11
PKGNAMEPREFIX=  p5-

MAINTAINER= perl@FreeBSD.org
COMMENT=    Perl module that reports number of seconds that X11 has been idle

BUILD_DEPENDS=  ${SITE_PERL}/Inline.pm:${PORTSDIR}/devel/p5-Inline \
            ${SITE_PERL}/${PERL_ARCH}/version.pm:${PORTSDIR}/devel/p5-version
RUN_DEPENDS=    ${BUILD_DEPENDS}

USE_XLIB=   yes
PERL_CONFIGURE= 5.8.0+

MANPREFIX=  ${SITE_PERL}
MAN3=       X11::IdleTime.3

post-patch:
.for i in IdleTime.pm
    @${REINPLACE_CMD} -e 's|/usr/X11R6|${X11BASE}|g' ${WRKSRC}/${i}
    @${PERL} -pi -e "s,[\d\.]+,${PORTVERSION:C/0./0.0/}, if m{VERSION}" ${WRKSRC}/${i}
.endfor

.include <bsd.port.mk>