freebsd-ports/multimedia/y4mscaler/Makefile
Edwin Groothuis 71e512b8a8 [patch] multimedia/mjpegtools - update to 1.9rc1
The current mjpegtools (mpeg2enc for example) is dumping core way
	too often to be able to do useful media conversions.

	This version has been running on my system for two weeks now and
	it works much better.

portrevision bump for multimedia/lives multimedia/mjpegtools-yuvfilters
multimedia/y4mscaler since they have LIB_DEPENDS on this port. Other
ports having RUN_DEPENDS on this port are not bumped.

PR:		ports/113878
Submitted by:	Edwin Groothuis <edwin@mavetju.org>
Approved by:	Michael Johnson <ahze@ahze.net>
2007-06-21 01:35:39 +00:00

54 lines
1.3 KiB
Makefile

# New ports collection makefile for: y4mscaler
# Date created: Mon Mar 8 21:36:23 EST 2004
# Whom: michael johnson <ahze@ahze.net>
#
# $FreeBSD$
#
PORTNAME= y4mscaler
PORTVERSION= 9.0
PORTREVISION= 2
CATEGORIES= multimedia
MASTER_SITES= http://www.mir.com/DMG/Software/
DISTNAME= ${PORTNAME}-${PORTVERSION}-src
EXTRACT_SUFX= .tgz
MAINTAINER= multimedia@FreeBSD.org
COMMENT= Y4mscaler scales, crops, and shifts Y'CbCr video
LIB_DEPENDS= lavjpeg-1.9.1:${PORTSDIR}/multimedia/mjpegtools
USE_GMAKE= yes
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
PORTDOCS= COPYING ChangeLog INSTALL README TODO
MAN1= y4mscaler.1
PLIST_FILES= bin/y4mscaler
MAKE_ENV= CXX="${CXX}"
.include <bsd.port.pre.mk>
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
.if ${OSVERSION} < 500000
@${REINPLACE_CMD} -e 's|#define HAVE_STDINT_H 1|#undef HAVE_STDINT_H 1|' \
${WRKSRC}/y4m-config.h
.endif
do-install:
@${INSTALL_PROGRAM} ${WRKSRC}/y4mscaler ${PREFIX}/bin/y4mscaler
@${INSTALL_MAN} ${WRKSRC}/y4mscaler.1 ${MANPREFIX}/man/man1/
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
.for docfile in ${PORTDOCS}
@${INSTALL_DATA} ${WRKSRC}/${docfile} ${DOCSDIR}
.endfor
.endif
.include <bsd.port.post.mk>