aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia/iso2mkv/Makefile
blob: 1870b7980957e68b0d178f14a4a84f8d5bb72659 (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
38
39
40
41
42
43
44
45
46
47
48
49
# Created by: Alexander Botero-Lowry <alexbl@FreeBSD.org>
# $FreeBSD$

PORTNAME=   iso2mkv
DISTVERSION=    2011-05-02
PORTREVISION=   2
CATEGORIES= multimedia
MASTER_SITES=   http://5ko.free.fr/dl/
DISTNAME=   ${PORTNAME}

MAINTAINER= ports@FreeBSD.org
COMMENT=    Script to convert DVD image, device, or VIDEO_TS to mkv

LICENSE=    MIT

RUN_DEPENDS=    lame:audio/lame \
        normalize:audio/normalize \
        oggenc:audio/vorbis-tools \
        mencoder:multimedia/mencoder \
        mkvmerge:multimedia/mkvtoolnix \
        dvdxchap:multimedia/ogmtools \
        bash:shells/bash

WRKSRC=     ${WRKDIR}/${PORTNAME}

USES=       tar:bzip2
NO_BUILD=   yes
NO_ARCH=    yes

OPTIONS_DEFINE= DOCS EXAMPLES

post-patch:
    @${REINPLACE_CMD} -e \
        's|^#!/bin/bash|#!${LOCALBASE}/bin/bash| ; \
         s|normalize-audio|normalize| ; \
         s|stat -c %s|stat -f %z|' ${WRKSRC}/iso2mkv

do-install:
    ${INSTALL_SCRIPT} ${WRKSRC}/iso2mkv ${STAGEDIR}${PREFIX}/bin

do-install-DOCS-on:
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
    @${INSTALL_MAN} ${WRKSRC}/README.utf8.txt ${STAGEDIR}${DOCSDIR}

do-install-EXAMPLES-on:
    @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
    ${INSTALL_DATA} ${WRKSRC}/iso2mkv.conf ${STAGEDIR}${EXAMPLESDIR}

.include <bsd.port.mk>