aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia/p5-Subtitles/Makefile
blob: f015bcb92680f29d477438add87ddad43e9695b5 (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
# Created by: osa
# $FreeBSD$

PORTNAME=   Subtitles
PORTVERSION=    1.04
CATEGORIES= multimedia perl5
MASTER_SITES=   CPAN/Prima/KARASIK
PKGNAMEPREFIX=  p5-

MAINTAINER= osa@FreeBSD.org
COMMENT=    Perl5 backend for fix subtitles timing

USES=       perl5
USE_PERL5=  configure

.include <bsd.port.pre.mk>

.if defined(WITH_SUBTITLES_SUBPLAY)
RUN_DEPENDS=    p5-Prima>=0:${PORTSDIR}/x11-toolkits/p5-Prima \
        p5-Time-HiRes>=0:${PORTSDIR}/devel/p5-Time-HiRes

PLIST_SUB+= SUBPLAY=""
MAN1+=      subplay.1
.else
PLIST_SUB+= SUBPLAY="@comment "

post-patch:
    @${REINPLACE_CMD} -e "s|\('subs'\), 'subplay'|\1|" ${WRKSRC}/Makefile.PL
.endif

.include <bsd.port.post.mk>