aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia/iso2mkv/Makefile
blob: 22a0cef37ca22cd68ad7c691d0ec7051f26e11e4 (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
50
51
# New ports collection makefile for:    iso2mkv
# Date created:         31 Dec 2006
# Whom:             Alexander Botero-Lowry <alexbl@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   iso2mkv
DISTVERSION=    2007-04-25
PORTREVISION=   1
CATEGORIES= multimedia
MASTER_SITES=   http://5ko.free.fr/dl/

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

RUN_DEPENDS=    lame:${PORTSDIR}/audio/lame \
        normalize:${PORTSDIR}/audio/normalize \
        oggenc:${PORTSDIR}/audio/vorbis-tools \
        mencoder:${PORTSDIR}/multimedia/mencoder \
        mkvmerge:${PORTSDIR}/multimedia/mkvtoolnix \
        bash:${PORTSDIR}/shells/bash

WRKSRC=     ${WRKDIR}/${PORTNAME}
NO_BUILD=   yes

USE_BZIP2=  yes

PLIST_FILES=    bin/iso2mkv
PORTDOCS=   README.utf8.txt
PORTEXAMPLES=   iso2mkv.conf

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 ${PREFIX}/bin
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} ${DOCSDIR}/
.endif
    @${CAT} ${WRKSRC}/README.utf8.txt
.if !defined(NOPORTEXAMPLES)
    @${MKDIR} ${EXAMPLESDIR}
    ${INSTALL_DATA} ${WRKSRC}/${PORTEXAMPLES} ${EXAMPLESDIR}/
    @${ECHO} "${EXAMPLESDIR}/${PORTEXAMPLES} should be copied to   ~/.mplayer/iso2mkv.conf"
.endif

.include <bsd.port.mk>