From 93d0a119a698aa76d582123be9d97c4fedadc6bd Mon Sep 17 00:00:00 2001 From: Po-Chuan Hsieh Date: Mon, 30 Jan 2023 20:27:43 +0800 Subject: [PATCH] multimedia/libmediainfo: Change back to make - Use all-in-one tarball - Enable CURL option by default - Update WWW and clean up pkg-descr - Bump PORTREVISION for dependency and package change --- multimedia/libmediainfo/Makefile | 35 ++++++++++++++----------------- multimedia/libmediainfo/distinfo | 6 +++--- multimedia/libmediainfo/pkg-descr | 2 -- multimedia/libmediainfo/pkg-plist | 9 ++------ 4 files changed, 21 insertions(+), 31 deletions(-) diff --git a/multimedia/libmediainfo/Makefile b/multimedia/libmediainfo/Makefile index 558fa90bf887..d22b8f5ac548 100644 --- a/multimedia/libmediainfo/Makefile +++ b/multimedia/libmediainfo/Makefile @@ -1,39 +1,36 @@ PORTNAME= libmediainfo -DISTVERSION= 22.12 +PORTVERSION= 22.12 +PORTREVISION= 1 CATEGORIES= multimedia -MASTER_SITES= https://mediaarea.net/download/source/${PORTNAME}/${DISTVERSION}/ \ +MASTER_SITES= https://mediaarea.net/download/binary/mediainfo/${PORTVERSION}/ \ LOCAL/sunpoet -DISTNAME= ${PORTNAME}_${DISTVERSION} +DISTNAME= MediaInfo_CLI_${PORTVERSION}_GNU_FromSource MAINTAINER= sunpoet@FreeBSD.org COMMENT= MediaInfo library -WWW= https://mediaarea.net/en/MediaInfo +WWW= https://mediaarea.net/en/MediaInfo \ + https://github.com/MediaArea/MediaInfoLib LICENSE= BSD2CLAUSE -LICENSE_FILE= ${WRKSRC}/../../License.html +LICENSE_FILE= ${WRKSRC}/../../../License.html LIB_DEPENDS= libtinyxml2.so:textproc/tinyxml2 \ libzen.so:multimedia/libzen -USES= cmake compiler:c++11-lang dos2unix localbase:ldflags pathfix \ - pkgconfig tar:xz +USES= compiler:c++11-lang dos2unix libtool localbase pathfix pkgconfig tar:xz + +CONFIGURE_ARGS= --enable-shared --enable-static --disable-dll +GNU_CONFIGURE= yes +INSTALL_TARGET= install-strip +PATHFIX_MAKEFILEIN+= configure USE_LDCONFIG= yes -DOS2UNIX_GLOB= *.c *.cmake.in *.cpp *.h *.pc.in *.txt -DOS2UNIX_WRKSRC= ${WRKDIR} -CXXFLAGS+= -D_POSIX_PRIORITY_SCHEDULING - -WRKSRC= ${WRKDIR}/MediaInfoLib/Project/CMake -PLIST_SUB= DISTVERSION=${DISTVERSION:S|.||g} - -CMAKE_ON= BUILD_SHARED_LIBS +WRKSRC= ${WRKDIR}/MediaInfo_CLI_GNU_FromSource/MediaInfoLib/Project/GNU/Library OPTIONS_DEFINE= CURL +OPTIONS_DEFAULT=CURL -CURL_CMAKE_OFF= -DCMAKE_DISABLE_FIND_PACKAGE_CURL:BOOL=True +CURL_CONFIGURE_ON= --with-libcurl=${LOCALBASE} CURL_LIB_DEPENDS= libcurl.so:ftp/curl -post-patch: - @${REINPLACE_CMD} -e '/^Libs_Static/d' ${PATCH_WRKSRC}/libmediainfo.pc.in - .include diff --git a/multimedia/libmediainfo/distinfo b/multimedia/libmediainfo/distinfo index 7f9e186b64ea..4c7db7e82382 100644 --- a/multimedia/libmediainfo/distinfo +++ b/multimedia/libmediainfo/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1672601994 -SHA256 (libmediainfo_22.12.tar.xz) = 0fc6d32f06d6ce5e144074d2e57e0db8dfa4e38e752d3123ada27ccaf89634bc -SIZE (libmediainfo_22.12.tar.xz) = 1893340 +TIMESTAMP = 1674589520 +SHA256 (MediaInfo_CLI_22.12_GNU_FromSource.tar.xz) = e67ce7419ec6af9fb54ffbe3164a42ae1cd874a7e559bfff017868cef1106947 +SIZE (MediaInfo_CLI_22.12_GNU_FromSource.tar.xz) = 3352944 diff --git a/multimedia/libmediainfo/pkg-descr b/multimedia/libmediainfo/pkg-descr index 5cb4c16336d9..efdc90b6a90b 100644 --- a/multimedia/libmediainfo/pkg-descr +++ b/multimedia/libmediainfo/pkg-descr @@ -2,5 +2,3 @@ MediaInfo is a convenient unified display of the most relevant technical and tag data for video and audio files. Read http://mediaarea.net/en/MediaInfo/Support/Formats for supported formats. - -See also: https://github.com/MediaArea/MediaInfoLib diff --git a/multimedia/libmediainfo/pkg-plist b/multimedia/libmediainfo/pkg-plist index 2aa1b99b2181..df45a20c7f0e 100644 --- a/multimedia/libmediainfo/pkg-plist +++ b/multimedia/libmediainfo/pkg-plist @@ -2,13 +2,8 @@ include/MediaInfo/MediaInfo.h include/MediaInfo/MediaInfoList.h include/MediaInfo/MediaInfo_Const.h include/MediaInfo/MediaInfo_Events.h -include/MediaInfoDLL/MediaInfoDLL.h -include/MediaInfoDLL/MediaInfoDLL_Static.h -lib/cmake/mediainfolib/MediaInfoLibConfig.cmake -lib/cmake/mediainfolib/MediaInfoLibConfigVersion.cmake -lib/cmake/mediainfolib/MediaInfoLibTargets-%%CMAKE_BUILD_TYPE%%.cmake -lib/cmake/mediainfolib/MediaInfoLibTargets.cmake +lib/libmediainfo.a lib/libmediainfo.so lib/libmediainfo.so.0 -lib/libmediainfo.so.0.%%DISTVERSION%%.0 +lib/libmediainfo.so.0.0.0 libdata/pkgconfig/libmediainfo.pc