freebsd-ports/multimedia/ffms2/Makefile
Jan Beich 0c612c4aa3 multimedia/ffmpeg: update to 3.2.2
Changes:	https://git.ffmpeg.org/gitweb/ffmpeg.git/blob/n3.2.2:/Changelog
PR:		207547
Submitted by:	riggs, ebirth@b0ss.net (libressl fix)
Exp-run by:	antoine (3 tries)
2016-12-11 15:22:47 +00:00

40 lines
1,012 B
Makefile

# $FreeBSD$
PORTNAME= ffms2
DISTVERSION= 2.23
PORTREVISION= 1
CATEGORIES= multimedia
MAINTAINER= jbeich@FreeBSD.org
COMMENT= FFmpeg-based source library and VapourSynth plugin
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/COPYING
BUILD_DEPENDS= ${LOCALBASE}/include/vapoursynth/VSHelper.h:multimedia/vapoursynth
LIB_DEPENDS= libavcodec.so:multimedia/ffmpeg
USE_GITHUB= yes
GH_ACCOUNT= FFMS
USES= compiler:c++11-lib gmake libtool pathfix pkgconfig
EXCLUDE= VSHelper.h VSScript.h VapourSynth.h
EXTRACT_AFTER_ARGS=${EXCLUDE:S,^,--exclude ,}
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --enable-static
CPPFLAGS+= -D_GLIBCXX_USE_C99 # XXX ports/193528
CPPFLAGS+= `pkg-config vapoursynth --cflags`
INSTALL_TARGET= install-strip
USE_LDCONFIG= yes
DATADIR= ${PREFIX}/lib/vapoursynth
post-patch:
@${REINPLACE_CMD} -e '/^dist_doc_DATA/s,=,& \
doc/${PORTNAME}-vapoursynth.md,' \
${WRKSRC}/Makefile.in
post-install:
${MKDIR} ${STAGEDIR}${DATADIR}
${LN} -sf ../lib${PORTNAME}.so ${STAGEDIR}${DATADIR}/
.include <bsd.port.mk>