freebsd-ports/multimedia/bombono/Makefile
Jan Beich 7b02419c11 multimedia/bombono: unbreak build with ffmpeg 3.x
src/mgui/ffviewer.cpp:642:22: error: 'SWS_CPU_CAPS_MMX' was not declared in this scope
         sws_flags |= SWS_CPU_CAPS_MMX|SWS_CPU_CAPS_MMX2;
                      ^
src/mgui/ffviewer.cpp:642:39: error: 'SWS_CPU_CAPS_MMX2' was not declared in this scope
         sws_flags |= SWS_CPU_CAPS_MMX|SWS_CPU_CAPS_MMX2;
                                       ^
src/mgui/ffviewer.cpp:650:9: error: 'PixelFormat' was not declared in this scope
         PixelFormat dst_pf = PIX_FMT_BGR24; // PIX_FMT_RGB24;
         ^
src/mgui/ffviewer.cpp:650:21: error: expected ';' before 'dst_pf'
         PixelFormat dst_pf = PIX_FMT_BGR24; // PIX_FMT_RGB24;
                     ^
src/mgui/ffviewer.cpp:652:13: error: 'dst_pf' was not declared in this scope
             dst_pf, sws_flags, 0, 0, 0);
             ^
src/mgui/ffviewer.cpp:657:45: error: 'avcodec_get_frame_defaults' was not declared in this scope
         avcodec_get_frame_defaults(&rgbFrame); // не помешает
                                             ^

PR:		207547
Obtained from:	upstream
2016-11-04 10:45:19 +00:00

52 lines
1.4 KiB
Makefile

# Created by: Stas Timokhin <stast@bsdportal.ru>
# $FreeBSD$
PORTNAME= bombono
PORTVERSION= 1.2.2
PORTREVISION= 8
CATEGORIES= multimedia
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-dvd/${PORTVERSION:R}
DISTNAME= ${PORTNAME}-dvd-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= DVD authoring program
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/COPYING
BUILD_DEPENDS= gm:graphics/GraphicsMagick
LIB_DEPENDS= libxml++-2.6.so:textproc/libxml++26 \
liblavfile.so:multimedia/mjpegtools \
libdvdread.so:multimedia/libdvdread \
libavcodec.so:multimedia/ffmpeg \
libboost_filesystem.so:devel/boost-libs
RUN_DEPENDS= gm:graphics/GraphicsMagick \
enca:converters/enca \
growisofs:sysutils/dvd+rw-tools \
toolame:audio/toolame
USES= desktop-file-utils gettext pkgconfig scons shared-mime-info \
tar:bzip2
USE_GNOME= gtkmm24
INSTALLS_ICONS= yes
CXXFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib -lintl
MAKE_ARGS= DVDREAD_INCLUDE=${LOCALBASE}/include \
DVDREAD_LIBPATH=${LOCALBASE}/lib \
CXXFLAGS="${CXXFLAGS}" LDFLAGS="${LDFLAGS}" \
CC="${CC}" CXX="${CXX}" USE_EXT_BOOST=true
.include <bsd.port.options.mk>
.if ${OPSYS} == FreeBSD && ${OSVERSION} > 1000023
USES+= compiler:gcc-c++11-lib
.endif
post-install:
.for i in bombono-dvd mpeg2demux
${INSTALL_MAN} ${WRKSRC}/docs/man/man1/${i}.1 ${STAGEDIR}${MANPREFIX}/man/man1
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${i}
.endfor
.include <bsd.port.mk>