mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-31 10:46:16 +00:00
multimedia/libcec: update to 4.0.2
- Add USES=shebangfix - Use PLIST_SUB vars in pkg-plist PR: 216978 Submitted by: swills Approved by: Manuel Creach (maintainer timeout, 55 days)
This commit is contained in:
parent
693d393747
commit
51ceec7e2c
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=437675
@ -2,8 +2,7 @@
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= libcec
|
||||
PORTVERSION= 3.1.0
|
||||
PORTREVISION= 1
|
||||
PORTVERSION= 4.0.2
|
||||
DISTVERSIONPREFIX= ${PORTNAME}-
|
||||
CATEGORIES= multimedia
|
||||
|
||||
@ -18,11 +17,15 @@ LIB_DEPENDS= libp8-platform.so:devel/p8-platform
|
||||
USE_GITHUB= yes
|
||||
GH_ACCOUNT= Pulse-Eight
|
||||
|
||||
USES= alias cmake compiler:c++11-lib pkgconfig
|
||||
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
|
||||
@ -51,7 +54,7 @@ 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|' \
|
||||
-e 's|$${CMAKE_INSTALL_LIBDIR}/pkgconfig|libdata/pkgconfig|' \
|
||||
${WRKSRC}/src/libcec/CMakeLists.txt
|
||||
.if ! ${PORT_OPTIONS:MPYTHON}
|
||||
@${REINPLACE_CMD} '/pyCecClient/d' \
|
||||
|
@ -1,2 +1,3 @@
|
||||
SHA256 (Pulse-Eight-libcec-libcec-3.1.0_GH0.tar.gz) = 09109d21a1b03f42c9e341d12600f2e4c41038d640269fa75408e2d36126f921
|
||||
SIZE (Pulse-Eight-libcec-libcec-3.1.0_GH0.tar.gz) = 1097121
|
||||
TIMESTAMP = 1485708686
|
||||
SHA256 (Pulse-Eight-libcec-libcec-4.0.2_GH0.tar.gz) = b8b8dd31f3ebdd5472f03ab7d401600ea0d959b1288b9ca24bf457ef60e2ba27
|
||||
SIZE (Pulse-Eight-libcec-libcec-4.0.2_GH0.tar.gz) = 334995
|
||||
|
@ -1,4 +1,4 @@
|
||||
--- src/libcec/cmake/SetBuildInfo.cmake.orig 2016-01-20 00:52:02 UTC
|
||||
--- src/libcec/cmake/SetBuildInfo.cmake.orig 2017-01-28 22:51:30 UTC
|
||||
+++ src/libcec/cmake/SetBuildInfo.cmake
|
||||
@@ -14,14 +14,7 @@ else()
|
||||
set(LIB_INFO "")
|
||||
@ -6,12 +6,13 @@
|
||||
# add git revision to compile info
|
||||
- find_program(HAVE_GIT_BIN git /bin /usr/bin /usr/local/bin)
|
||||
- if(HAVE_GIT_BIN)
|
||||
- exec_program(${CMAKE_CURRENT_SOURCE_DIR}/../../support/git-rev.sh HEAD OUTPUT_VARIABLE GIT_REVISION)
|
||||
- exec_program(${CMAKE_CURRENT_SOURCE_DIR}/cmake/git-rev.sh HEAD OUTPUT_VARIABLE GIT_REVISION)
|
||||
- message(STATUS "git found: ${GIT_REVISION}")
|
||||
- endif()
|
||||
- if (GIT_REVISION)
|
||||
set(LIB_INFO "git revision: ${GIT_REVISION},")
|
||||
- set(LIB_INFO "git revision: ${GIT_REVISION},")
|
||||
- endif()
|
||||
+ set(LIB_INFO "git revision: 4.0.2,")
|
||||
|
||||
# add compilation date to compile info
|
||||
find_program(HAVE_DATE_BIN date /bin /usr/bin /usr/local/bin)
|
||||
|
@ -1,16 +1,16 @@
|
||||
bin/cec-client
|
||||
bin/cec-client-3.1.0
|
||||
bin/cec-client-%%PORTVERSION%%
|
||||
bin/cecc-client
|
||||
bin/cecc-client-3.1.0
|
||||
%%PYTHON%%bin/pyCecClient.py
|
||||
bin/cecc-client-%%PORTVERSION%%
|
||||
%%PYTHON%%bin/pyCecClient
|
||||
include/libcec/cec.h
|
||||
include/libcec/cecc.h
|
||||
include/libcec/cecloader.h
|
||||
include/libcec/cectypes.h
|
||||
include/libcec/version.h
|
||||
lib/libcec.so
|
||||
lib/libcec.so.3
|
||||
lib/libcec.so.3.1.0
|
||||
%%PYTHON%%%%PYTHON_LIBDIR%%/dist-packages/cec/__init__.py
|
||||
%%PYTHON%%%%PYTHON_LIBDIR%%/dist-packages/cec/_cec.so
|
||||
lib/libcec.so.%%PORTVERSION_MAJOR%%
|
||||
lib/libcec.so.%%PORTVERSION%%
|
||||
%%PYTHON%%%%PYTHON_SITELIBDIR%%/cec/__init__.py
|
||||
%%PYTHON%%%%PYTHON_SITELIBDIR%%/cec/_cec.so
|
||||
libdata/pkgconfig/libcec.pc
|
||||
|
Loading…
Reference in New Issue
Block a user