freebsd-ports/multimedia/vdr-plugin-upnp/Makefile
Gerald Pfeifer a9f015d155 Bump PORTREVISION for ports depending on the canonical version of GCC
defined via Mk/bsd.default-versions.mk which has moved from GCC 7.4 t
GCC 8.2 under most circumstances.

This includes ports
 - with USE_GCC=yes or USE_GCC=any,
 - with USES=fortran,
 - using Mk/bsd.octave.mk which in turn features USES=fortran, and
 - with USES=compiler specifying openmp, nestedfct, c11, c++0x, c++11-lang,
   c++11-lib, c++14-lang, c++17-lang, or gcc-c++11-lib
plus, as a double check, everything INDEX-11 showed depending on lang/gcc7.

PR:		231590
2018-12-12 01:35:33 +00:00

61 lines
1.9 KiB
Makefile

# Created by: Juergen Lock <nox@FreeBSD.org>
# $FreeBSD$
PORTNAME= vdr-plugin-upnp
PORTVERSION= 0.0.2a2
PORTREVISION= 38
CATEGORIES= multimedia
MASTER_SITES= http://projects.vdr-developer.org/attachments/download/177/
DISTNAME= ${PORTNAME:S/-plugin-/-/}-${DISTVERSIONPREFIX}${DISTVERSION:S/a/-alpha/}${DISTVERSIONSUFFIX}
DIST_SUBDIR= vdr
MAINTAINER= ports@FreeBSD.org
COMMENT= Video Disk Recorder - UPnP/DLNA plugin (alpha!)
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/COPYING
BROKEN_FreeBSD_12= fails to compile: inc/util.h:21:10: 'libavformat/avformat.h' file not found
BROKEN_FreeBSD_13= fails to compile: inc/util.h:21:10: 'libavformat/avformat.h' file not found
LIB_DEPENDS= libavcodec0.so:multimedia/ffmpeg0 \
libboost_system.so:devel/boost-libs \
libupnp.so:devel/upnp \
libsqlite3.so:databases/sqlite3
USES= tar:tgz
PATCH_STRIP= -p1
WRKSRC= ${WRKDIR}/${PLUGIN}-${DISTVERSION:S/a2//}
CXXFLAGS+= -L${LOCALBASE}/lib/ffmpeg0 -lavcodec0 -lavformat0 -fPIC
MAKE_ARGS= LIBS="-I${LOCALBASE}/include/ffmpeg0" CXXFLAGS="${CXXFLAGS}"
PORTDOCS= README HISTORY
OPTIONS_DEFINE= DOCS NLS
.include "${.CURDIR}/../vdr/Makefile.plugins"
post-patch: post-patch-plugin
@${REINPLACE_CMD} \
-e 's,lavcodec,lavcodec0,g' \
-e 's,lavformat,lavformat0,g' \
${WRKSRC}/Makefile
pre-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/vdr
post-install: post-install-pluginlocales
@${MKDIR} ${STAGEDIR}${PREFIX}/etc/vdr/plugins/${PLUGIN}/http/icons
${INSTALL_DATA} ${WRKSRC}/http/icons/* \
${STAGEDIR}${PREFIX}/etc/vdr/plugins/${PLUGIN}/http/icons
@${MKDIR} ${STAGEDIR}${PREFIX}/etc/vdr/plugins/${PLUGIN}/http/xml
${INSTALL_DATA} ${WRKSRC}/http/xml/* \
${STAGEDIR}${PREFIX}/etc/vdr/plugins/${PLUGIN}/http/xml
@${MKDIR} ${STAGEDIR}/var/cache/vdr/${PLUGIN}
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
(cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR})
.include <bsd.port.mk>