git: 53f16ee6af9f - main - multimedia/libzen: Update to 0.4.40
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 17 Jan 2023 07:59:16 UTC
The branch main has been updated by diizzy: URL: https://cgit.FreeBSD.org/ports/commit/?id=53f16ee6af9fd18e473de92c2863bc0137f3bb0f commit 53f16ee6af9fd18e473de92c2863bc0137f3bb0f Author: Daniel Engberg <diizzy@FreeBSD.org> AuthorDate: 2023-01-17 07:37:54 +0000 Commit: Daniel Engberg <diizzy@FreeBSD.org> CommitDate: 2023-01-17 07:59:06 +0000 multimedia/libzen: Update to 0.4.40 * Use proper upstream version * Switch to separate source archives * Switch to CMake which brings us much closer to other distributions * Sanitize source code Reference: https://github.com/MediaArea/ZenLib Changelog: https://github.com/MediaArea/ZenLib/releases/tag/v0.4.40 PR: 268707 Approved by: portmgr (maintainer timeout, 2+ weeks) --- multimedia/libzen/Makefile | 28 ++++++++++++---------------- multimedia/libzen/distinfo | 6 +++--- multimedia/libzen/pkg-plist | 13 +++++-------- 3 files changed, 20 insertions(+), 27 deletions(-) diff --git a/multimedia/libzen/Makefile b/multimedia/libzen/Makefile index 952b912e7efb..397f58a915e1 100644 --- a/multimedia/libzen/Makefile +++ b/multimedia/libzen/Makefile @@ -1,32 +1,28 @@ PORTNAME= libzen -PORTVERSION= 22.09 +DISTVERSION= 0.4.40 +PORTEPOCH= 1 CATEGORIES= multimedia -MASTER_SITES= https://mediaarea.net/download/binary/mediainfo/${PORTVERSION}/ \ +MASTER_SITES= https://mediaarea.net/download/source/${PORTNAME}/${DISTVERSION}/ \ LOCAL/sunpoet -DISTNAME= MediaInfo_CLI_${PORTVERSION}_GNU_FromSource +DISTNAME= ${PORTNAME}_${DISTVERSION} MAINTAINER= sunpoet@FreeBSD.org COMMENT= ZenLib used by MediaInfo and its library WWW= https://mediaarea.net/en/MediaInfo LICENSE= ZLIB -LICENSE_FILE= ${WRKSRC}/../../../License.txt +LICENSE_FILE= ${WRKSRC}/../../License.txt -USES= compiler:c++11-lang libtool pathfix tar:xz - -CONFIGURE_ARGS= --enable-shared --enable-static -GNU_CONFIGURE= yes -INSTALL_TARGET= install-strip -USE_CXXSTD= c++11 +USES= cmake compiler:c++11-lang dos2unix pathfix pkgconfig tar:bz2 USE_LDCONFIG= yes +DOS2UNIX_GLOB= *.c *.cmake.in *.cpp *.h *.pc.in *.txt +DOS2UNIX_WRKSRC= ${WRKDIR} -WRKSRC= ${WRKDIR}/MediaInfo_CLI_GNU_FromSource/ZenLib/Project/GNU/Library +WRKSRC= ${WRKDIR}/ZenLib/Project/CMake -post-patch: - @${REINPLACE_CMD} -e '/^ZenLib_LIBS/ s|$$(pwd)[^ ]*|${LOCALBASE}/lib|' ${WRKSRC}/configure - @${REINPLACE_CMD} -e 's| -lstdc++||g' ${WRKSRC}/configure ${WRKSRC}/libzen.pc.in +PLIST_SUB= DISTVERSION=${DISTVERSION} -post-install: - ${INSTALL_DATA} ${WRKSRC}/../../../Source/ZenLib/BitStream_Fast.h ${STAGEDIR}${PREFIX}/include/ZenLib/BitStream_Fast.h +post-patch: + @${REINPLACE_CMD} -e '/^Libs_Static/d' ${PATCH_WRKSRC}/libzen.pc.in .include <bsd.port.mk> diff --git a/multimedia/libzen/distinfo b/multimedia/libzen/distinfo index 096f367b45e0..b7acb712cb1d 100644 --- a/multimedia/libzen/distinfo +++ b/multimedia/libzen/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1665073088 -SHA256 (MediaInfo_CLI_22.09_GNU_FromSource.tar.xz) = 02070e50a9cde50180a31c0529435a0ac4fdc0cc823982395833472c6ef464e9 -SIZE (MediaInfo_CLI_22.09_GNU_FromSource.tar.xz) = 3337624 +TIMESTAMP = 1672600333 +SHA256 (libzen_0.4.40.tar.bz2) = 5543e2c45214b9d9f0ba4f43dee61d0296e1ff9f1427ed6c879ddd1b62b9f69e +SIZE (libzen_0.4.40.tar.bz2) = 137110 diff --git a/multimedia/libzen/pkg-plist b/multimedia/libzen/pkg-plist index 7be66e8fe0ef..5a6ccf2e270c 100644 --- a/multimedia/libzen/pkg-plist +++ b/multimedia/libzen/pkg-plist @@ -13,12 +13,6 @@ include/ZenLib/Format/Http/Http_Cookies.h include/ZenLib/Format/Http/Http_Handler.h include/ZenLib/Format/Http/Http_Request.h include/ZenLib/Format/Http/Http_Utils.h -include/ZenLib/HTTP_Client.h -include/ZenLib/HTTP_Client/HTTPClient.h -include/ZenLib/HTTP_Client/HTTPClientAuth.h -include/ZenLib/HTTP_Client/HTTPClientCommon.h -include/ZenLib/HTTP_Client/HTTPClientString.h -include/ZenLib/HTTP_Client/HTTPClientWrapper.h include/ZenLib/InfoMap.h include/ZenLib/MemoryDebug.h include/ZenLib/OS_Utils.h @@ -33,8 +27,11 @@ include/ZenLib/ZtringListList.h include/ZenLib/ZtringListListF.h include/ZenLib/int128s.h include/ZenLib/int128u.h -lib/libzen.a +lib/cmake/zenlib/ZenLibConfig.cmake +lib/cmake/zenlib/ZenLibConfigVersion.cmake +lib/cmake/zenlib/ZenLibTargets-%%CMAKE_BUILD_TYPE%%.cmake +lib/cmake/zenlib/ZenLibTargets.cmake lib/libzen.so lib/libzen.so.0 -lib/libzen.so.0.0.0 +lib/libzen.so.%%DISTVERSION%% libdata/pkgconfig/libzen.pc