diff options
author | cpm <cpm@FreeBSD.org> | 2017-04-04 06:24:55 +0800 |
---|---|---|
committer | cpm <cpm@FreeBSD.org> | 2017-04-04 06:24:55 +0800 |
commit | 7d32a5a2d6ade22f2c60e67f9183bf30cdbb8f34 (patch) | |
tree | d7a02ab99b2a01341bf931f34ecdf9e777e5b675 /multimedia/libcec/Makefile | |
parent | 5c949c3724dfced7acb1bc0ea36236cae957a888 (diff) | |
download | freebsd-ports-gnome-7d32a5a2d6ade22f2c60e67f9183bf30cdbb8f34.tar.gz freebsd-ports-gnome-7d32a5a2d6ade22f2c60e67f9183bf30cdbb8f34.tar.zst freebsd-ports-gnome-7d32a5a2d6ade22f2c60e67f9183bf30cdbb8f34.zip |
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)
Diffstat (limited to 'multimedia/libcec/Makefile')
-rw-r--r-- | multimedia/libcec/Makefile | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/multimedia/libcec/Makefile b/multimedia/libcec/Makefile index da3b9c9d3c44..59842088ba66 100644 --- a/multimedia/libcec/Makefile +++ b/multimedia/libcec/Makefile @@ -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' \ |