- Update patch of command/decoder.cpp to allow vdr-plugin-markad to build successfully once multimedia/ffmpeg is updated to 3.0.x. Note that multimedia/ffmpeg is currently still on the 2.8.x branch, however this patch is backwards compatible with ffmpeg 2.8.x. The additional changes to this file were based on upstream bug report #1898 [1], and also the requirement to replace s/avcodec_alloc_frame/av_frame_alloc/g. - Regenerate patches with makepatch (pet portlint), and remove PATCH_STRIP=-p1 from Makefile. [1] https://projects.vdr-developer.org/issues/1898 PR: 209386 Reported by: antoine (PR207547) Reviewed by: mat (mentor) Approved by: adamw (mentor) Differential Revision: https://reviews.freebsd.org/D6283
46 lines
1.3 KiB
Makefile
46 lines
1.3 KiB
Makefile
# Created by: Juergen Lock <nox@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= vdr-plugin-markad
|
|
PORTVERSION= 0.1.4
|
|
CATEGORIES= multimedia
|
|
MASTER_SITES= http://projects.vdr-developer.org/attachments/download/1041/
|
|
DISTNAME= ${PORTNAME:S/-plugin-/-/}-${DISTVERSIONPREFIX}${DISTVERSION}${DISTVERSIONSUFFIX}
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Video Disk Recorder - MarkAd plugin
|
|
|
|
LIB_DEPENDS+= libavcodec.so:multimedia/ffmpeg
|
|
|
|
USES= execinfo pkgconfig tar:tgz
|
|
HAVE_CONFIGURE= yes
|
|
PORTDOCS= COPYING README HISTORY
|
|
PORTDATA= logos
|
|
WRKSRC= ${WRKDIR}/${PLUGIN}-${DISTVERSION}
|
|
VDR_PLUGIN_MAKEFILES= ${WRKSRC}/command/Makefile ${WRKSRC}/plugin/Makefile
|
|
DEFINES+= -DDATADIR=\\\"${DATADIR}\\\" -DPREFIX=\\\"${PREFIX}\\\"
|
|
MAKE_ARGS+= DATADIR=${DATADIR} FREEBSD=1
|
|
MAKE_ENV+= DEFINES="${DEFINES}"
|
|
|
|
RESTRICTED= Installs station logos
|
|
|
|
.include "${.CURDIR}/../vdr/Makefile.plugins"
|
|
|
|
# for libexecinfo: (so that __builtin_frame_address() finds the top
|
|
# of the stack)
|
|
.if ${ARCH} == "amd64"
|
|
CFLAGS+= -fno-omit-frame-pointer
|
|
CPPFLAGS+= -fno-omit-frame-pointer
|
|
.endif
|
|
|
|
post-patch: post-patch-plugin
|
|
@${LN} -s ../lib ../locale ${WRKSRC}
|
|
|
|
pre-install:
|
|
${MKDIR} ${STAGEDIR}${PREFIX}/lib/vdr
|
|
|
|
post-install: post-install-pluginlocales
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
(cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR})
|
|
|
|
.include <bsd.port.mk>
|