summaryrefslogtreecommitdiff
path: root/multimedia/iso2mkv/Makefile
blob: d156b645dd5a4fecfc00df1ee413bec65e75d005 (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
# Created by: Alexander Botero-Lowry <alexbl@FreeBSD.org>

PORTNAME=	iso2mkv
DISTVERSION=	2011-05-02
PORTREVISION=	3
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

USES=		shebangfix tar:bzip2
SHEBANG_FILES=	iso2mkv
NO_ARCH=	yes
NO_BUILD=	yes
WRKSRC=		${WRKDIR}/${PORTNAME}

OPTIONS_DEFINE=	DOCS EXAMPLES

post-patch:
	@${REINPLACE_CMD} -e \
		'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_DATA} ${WRKSRC}/README.utf8.txt ${STAGEDIR}${DOCSDIR}

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

.include <bsd.port.mk>