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
This commit is contained in:
Po-Chuan Hsieh 2023-01-30 20:27:43 +08:00
parent 209754855e
commit 93d0a119a6
No known key found for this signature in database
GPG Key ID: 9A4BD10F002DD04B
4 changed files with 21 additions and 31 deletions

View File

@ -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 <bsd.port.mk>

View File

@ -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

View File

@ -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

View File

@ -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