1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-21 04:06:46 +00:00
freebsd-ports/multimedia/libcec/Makefile
Gerald Pfeifer e59c88cece Bump PORTREVISION for ports depending on the canonical version of GCC
(via Mk/bsd.default-versions.mk and lang/gcc) which has moved from
GCC 5.4 to GCC 6.4 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, c++11-lib, c++11-lang,
   c++14-lang, c++0x, c11, or gcc-c++11-lib.

PR:		219275
2017-09-10 20:55:38 +00:00

69 lines
1.8 KiB
Makefile

# Created by: Manuel Creach <manuel.creach@icloud.com>
# $FreeBSD$
PORTNAME= libcec
PORTVERSION= 4.0.2
PORTREVISION= 1
DISTVERSIONPREFIX= ${PORTNAME}-
CATEGORIES= multimedia
MAINTAINER= mikael.urankar@gmail.com
COMMENT= Library to control Pulse-Eight's HDMI-CEC adapter
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libp8-platform.so:devel/p8-platform
BROKEN_powerpc64= fails to compile: cecloader.h: converting to 'bool' from 'std::nullptr_t' requires direct-initialization
USE_GITHUB= yes
GH_ACCOUNT= Pulse-Eight
USES= alias cmake compiler:c++11-lib pkgconfig shebangfix
SHEBANG_FILES= src/pyCecClient/pyCecClient.py
USE_LDCONFIG= yes
CMAKE_ARGS= -DCMAKE_REQUIRED_INCLUDES:PATH="${LOCALBASE}/include" \
-DCMAKE_REQUIRED_FLAGS:STRING="-L${LOCALBASE}/lib"
PLIST_SUB= PORTVERSION="${PORTVERSION}" \
PORTVERSION_MAJOR="${PORTVERSION:C/([0-9]).*/\1/1}"
OPTIONS_DEFINE= PYTHON X11
OPTIONS_DEFAULT= PYTHON X11
OPTIONS_DEFINE_armv6= RPI
OPTIONS_DEFAULT_armv6= RPI
OPTIONS_EXCLUDE_armv6= X11
OPTIONS_SUB= yes
PYTHON_DESC= build python wrapper
PYTHON_BUILD_DEPENDS+= swig3.0:devel/swig30
RPI_DESC= build libcec support for raspberrypi
RPI_CMAKE_ON= -DRPI_INCLUDE_DIR=${LOCALBASE}/include -DRPI_LIB_DIR=${LOCALBASE}/lib
RPI_LIB_DEPENDS= libbcm_host.so:misc/raspberrypi-userland
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MPYTHON}
USES+= python:build
.else
CMAKE_ARGS+= -DSKIP_PYTHON_WRAPPER:BOOL=true
.endif
.if ${PORT_OPTIONS:MX11}
USE_XORG= x11 xproto xrandr
.endif
post-patch:
@${REINPLACE_CMD} 's|$${GIT_REVISION}|${PORTVERSION}|g' \
${WRKSRC}/src/libcec/cmake/SetBuildInfo.cmake
@${REINPLACE_CMD} -e '/SOVERSION/ s|\.0||' \
-e 's|$${CMAKE_INSTALL_LIBDIR}/pkgconfig|libdata/pkgconfig|' \
${WRKSRC}/src/libcec/CMakeLists.txt
.if ! ${PORT_OPTIONS:MPYTHON}
@${REINPLACE_CMD} '/pyCecClient/d' \
${WRKSRC}/CMakeLists.txt
.endif
.include <bsd.port.mk>