2013-09-20 20:57:48 +00:00
|
|
|
# Created by: Alexander Botero-Lowry <alexbl@FreeBSD.org>
|
2007-01-01 02:27:54 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= iso2mkv
|
2014-06-08 22:23:06 +00:00
|
|
|
DISTVERSION= 2011-05-02
|
2014-09-10 20:50:31 +00:00
|
|
|
PORTREVISION= 1
|
2007-01-01 02:27:54 +00:00
|
|
|
CATEGORIES= multimedia
|
|
|
|
MASTER_SITES= http://5ko.free.fr/dl/
|
2014-06-08 22:23:06 +00:00
|
|
|
DISTNAME= ${PORTNAME}
|
2007-01-01 02:27:54 +00:00
|
|
|
|
2009-08-02 08:02:03 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2012-08-06 12:48:34 +00:00
|
|
|
COMMENT= Script to convert DVD image, device, or VIDEO_TS to mkv
|
2007-01-01 02:27:54 +00:00
|
|
|
|
2014-06-08 22:23:06 +00:00
|
|
|
LICENSE= MIT
|
|
|
|
|
2012-08-06 12:48:34 +00:00
|
|
|
RUN_DEPENDS= lame:${PORTSDIR}/audio/lame \
|
|
|
|
normalize:${PORTSDIR}/audio/normalize \
|
2007-01-01 02:27:54 +00:00
|
|
|
oggenc:${PORTSDIR}/audio/vorbis-tools \
|
2012-08-06 12:48:34 +00:00
|
|
|
mencoder:${PORTSDIR}/multimedia/mencoder \
|
|
|
|
mkvmerge:${PORTSDIR}/multimedia/mkvtoolnix \
|
2014-06-08 22:23:06 +00:00
|
|
|
dvdxchap:${PORTSDIR}/multimedia/ogmtools \
|
2012-08-06 12:48:34 +00:00
|
|
|
bash:${PORTSDIR}/shells/bash
|
2007-01-01 02:27:54 +00:00
|
|
|
|
2012-08-06 12:48:34 +00:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
2014-06-08 22:23:06 +00:00
|
|
|
|
2007-01-01 02:27:54 +00:00
|
|
|
NO_BUILD= yes
|
|
|
|
|
2014-06-08 22:23:06 +00:00
|
|
|
USES= tar:bzip2
|
|
|
|
|
|
|
|
OPTIONS_DEFINE= DOCS EXAMPLES
|
2012-08-06 12:48:34 +00:00
|
|
|
|
2014-06-08 22:23:06 +00:00
|
|
|
.include <bsd.port.options.mk>
|
2007-01-01 02:27:54 +00:00
|
|
|
|
|
|
|
post-patch:
|
2012-08-06 12:48:34 +00:00
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
's|^#!/bin/bash|#!${LOCALBASE}/bin/bash| ; \
|
|
|
|
s|normalize-audio|normalize| ; \
|
|
|
|
s|stat -c %s|stat -f %z|' ${WRKSRC}/iso2mkv
|
2014-06-08 22:23:06 +00:00
|
|
|
|
2007-01-01 02:27:54 +00:00
|
|
|
do-install:
|
2014-06-08 22:23:06 +00:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/iso2mkv ${STAGEDIR}${PREFIX}/bin
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
@${INSTALL_MAN} ${WRKSRC}/README.utf8.txt ${STAGEDIR}${DOCSDIR}
|
|
|
|
.if ${PORT_OPTIONS:MEXAMPLES}
|
|
|
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/iso2mkv.conf ${STAGEDIR}${EXAMPLESDIR}
|
|
|
|
@${ECHO} "Users should copy ${EXAMPLESDIR}/iso2mkv.conf to ~/.mplayer/iso2mkv.conf"
|
2012-08-06 12:48:34 +00:00
|
|
|
.endif
|
2007-01-01 02:27:54 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|