aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia/y4mscaler/Makefile
blob: f4c61552ad0c131350003af5789d174f1f0c1bfd (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
# Created by: michael johnson <ahze@ahze.net>
# $FreeBSD$

PORTNAME=   y4mscaler
PORTVERSION=    9.0
PORTREVISION=   9
CATEGORIES= multimedia
MASTER_SITES=   http://www.mir.com/DMG/Software/
DISTNAME=   ${PORTNAME}-${PORTVERSION}-src

MAINTAINER= multimedia@FreeBSD.org
COMMENT=    Y4mscaler scales, crops, and shifts Y'CbCr video

BROKEN=     Conflicts with mjpegtools on /usr/local/bin/y4mscaler

LIB_DEPENDS=    liblavjpeg.so:${PORTSDIR}/multimedia/mjpegtools

USES=       gmake tar:tgz

WRKSRC=     ${WRKDIR}/${PORTNAME}-${PORTVERSION}
DOCS=       COPYING ChangeLog INSTALL README TODO

OPTIONS_DEFINE= DOCS

post-patch:
    @${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' \
        ${WRKSRC}/Makefile
    @${REINPLACE_CMD} -e 's|COPT = -O2|#|' \
        ${WRKSRC}/Makefile
    @${REINPLACE_CMD} -e 's|CXXFLAGS =|CXXFLAGS = ${CXXFLAGS} |' \
        ${WRKSRC}/Makefile

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/y4mscaler ${STAGEDIR}${PREFIX}/bin/y4mscaler
    ${INSTALL_MAN} ${WRKSRC}/y4mscaler.1 ${STAGEDIR}${MANPREFIX}/man/man1/
    ${MKDIR} ${STAGEDIR}${DOCSDIR}
    cd ${WRKSRC}; ${INSTALL_DATA} ${DOCS} ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>