aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia/p5-Subtitles/Makefile
blob: 8077cc5bd2d670fd14986078a38f17181fd9fa36 (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
35
36
37
# New ports collection makefile for:    p5-Subtitles
# Date created:     2005-12-28
# Whom:         osa
#
# $FreeBSD$
#

PORTNAME=   Subtitles
PORTVERSION=    0.08
CATEGORIES= multimedia perl5
MASTER_SITES=   ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= Prima/KARASIK
PKGNAMEPREFIX=  p5-

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

USE_REINPLACE=  yes
PERL_CONFIGURE= yes

MAN1=   subs.1
MAN3=   Subtitles.3

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

PLIST_SUB+= SUBPLAY=""
MAN1+=      subplay.1

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

.include <bsd.port.mk>