freebsd-ports/multimedia/vdr-plugin-markad/Makefile
Piotr Kubaj 9b5d60c360 multimedia/vdr-plugin-markad: fix build on GCC architectures
Linking to libx265 requires newer GCC:
//usr/local/lib/libx265.so.179: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_assign(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)@GLIBCXX_3.4.21'
//usr/local/lib/libx265.so.179: undefined reference to `std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::reserve(unsigned long)@GLIBCXX_3.4.21'
2020-02-12 09:19:29 +00:00

54 lines
1.4 KiB
Makefile

# Created by: Juergen Lock <nox@FreeBSD.org>
# $FreeBSD$
PORTNAME= vdr-plugin-markad
PORTVERSION= 0.1.4
PORTREVISION= 10
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
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libavcodec.so:multimedia/ffmpeg
RESTRICTED= Installs station logos
USES= compiler:c++11-lang pkgconfig tar:tgz
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}"
PORTDOCS= README HISTORY
PORTDATA= logos
OPTIONS_DEFINE= DOCS NLS
.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
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
(cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR})
.include <bsd.port.mk>