diff options
Diffstat (limited to 'multimedia/libcec/Makefile')
-rw-r--r-- | multimedia/libcec/Makefile | 46 |
1 files changed, 37 insertions, 9 deletions
diff --git a/multimedia/libcec/Makefile b/multimedia/libcec/Makefile index bb956efd4b83..6fe992106602 100644 --- a/multimedia/libcec/Makefile +++ b/multimedia/libcec/Makefile @@ -2,9 +2,8 @@ # $FreeBSD$ PORTNAME= libcec -PORTVERSION= 2.2.0 +PORTVERSION= 3.1.0 DISTVERSIONPREFIX= ${PORTNAME}- -DISTVERSIONSUFFIX= -repack CATEGORIES= multimedia MAINTAINER= manuel.creach@icloud.com @@ -13,20 +12,49 @@ COMMENT= Library to control Pulse-Eight's HDMI-CEC adapter LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/COPYING +LIB_DEPENDS= libp8-platform.so:devel/p8-platform + USE_GITHUB= yes GH_ACCOUNT= Pulse-Eight -GNU_CONFIGURE= yes -USES= alias autoreconf pathfix pkgconfig libtool -PATHFIX_MAKEFILEIN=Makefile.am -USE_XORG= x11 xproto xrandr +USES= alias cmake compiler:c++11-lib pkgconfig USE_LDCONFIG= yes -INSTALL_TARGET= install-strip +CMAKE_ARGS= -DCMAKE_REQUIRED_INCLUDES:PATH="${LOCALBASE}/include" \ + -DCMAKE_REQUIRED_FLAGS:STRING="-L${LOCALBASE}/lib" + +OPTIONS_DEFINE= PYTHON X11 +OPTIONS_DEFAULT= PYTHON X11 +OPTIONS_DEFINE_armv6= RPI +OPTIONS_DEFAULT_armv6= +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 ${ARCH} == armv6 -CONFIGURE_ARGS= --disable-rpi +.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_NOARCH}/pkgconfig|libdata/pkgconfig|' \ + ${WRKSRC}/src/libcec/CMakeLists.txt +.if ! ${PORT_OPTIONS:MPYTHON} + @${REINPLACE_CMD} '/pyCecClient/d' \ + ${WRKSRC}/CMakeLists.txt .endif .include <bsd.port.mk> |