multimedia/mediainfo: switch to external libzen and libmediainfo

Also update to 21.03.

ok sthen@
This commit is contained in:
naddy 2021-04-29 20:19:54 +00:00
parent 40193861f3
commit 825c8fae37
8 changed files with 35 additions and 104 deletions

View File

@ -1,54 +1,37 @@
# $OpenBSD: Makefile,v 1.24 2020/10/30 20:55:01 naddy Exp $
# $OpenBSD: Makefile,v 1.25 2021/04/29 20:19:54 naddy Exp $
COMMENT= display technical and tag data for video and audio files
COMMENT= utility for reading information from audio/video files
VERSION= 20.09
VERSION= 21.03
PKGNAME= mediainfo-${VERSION}
CATEGORIES= multimedia
HOMEPAGE= https://mediaarea.net/en/MediaInfo
MAINTAINER= Christian Weisgerber <naddy@openbsd.org>
# BSD-style
# BSD
PERMIT_PACKAGE= Yes
WANTLIB= c m pthread ${COMPILER_LIBCXX} z
WANTLIB= ${COMPILER_LIBCXX} c m mediainfo pthread z zen
COMPILER = base-clang ports-gcc
MASTER_SITES= https://mediaarea.net/download/source/mediainfo/${VERSION}/
DISTFILES= mediainfo_${VERSION}.tar.xz
MASTER_SITES= https://mediaarea.net/download/binary/mediainfo/${VERSION}/
DISTFILES= MediaInfo_CLI_${VERSION}_GNU_FromSource.tar.xz
COMPILER= base-clang ports-gcc
WRKDIST= ${WRKDIR}/MediaInfo_CLI_GNU_FromSource
LIB_DEPENDS= devel/libzen \
multimedia/libmediainfo
CONFIGURE_STYLE=gnu
CONFIGURE_ENV= SUBDIRS="${SUBDIRS}"
MAKE_ENV= SUBDIRS="${SUBDIRS}"
LIBTOOL_FLAGS= --tag=disable-shared
MODGNU_CONFIG_GUESS_DIRS=${SUBDIRS}
ZENLIBDIR= ${WRKSRC}/ZenLib/Project/GNU/Library
MEDIAINFOLIBDIR=${WRKSRC}/MediaInfoLib/Project/GNU/Library
MEDIAINFODIR= ${WRKSRC}/MediaInfo/Project/GNU/CLI
SUBDIRS= ${ZENLIBDIR} ${MEDIAINFOLIBDIR} ${MEDIAINFODIR}
CONFIGURE_STYLE=autoreconf
DEBUG_PACKAGES= ${BUILD_PACKAGES}
# MediaInfoLib tests fetch files from the Internet
NO_TEST= Yes
AUTOCONF_VERSION=2.69
AUTOMAKE_VERSION=1.13
AUTOCONF_DIR= ${WRKBUILD}
# fix line endings for files that are patched
#pre-patch:
# @sed -i "s/$$(printf \\r)\$$//" \
# ${WRKSRC}/MediaInfoLib/Source/MediaInfo/MediaInfo_Internal.cpp
pre-configure:
@cp ${FILESDIR}/configure ${FILESDIR}/Makefile ${WRKSRC}
@chmod a+x ${WRKSRC}/configure
do-install:
@cd ${MEDIAINFODIR} && ${LIBTOOL} ${LIBTOOL_FLAGS} --mode=install \
${INSTALL_PROGRAM} mediainfo ${PREFIX}/bin
WRKDIST= ${WRKDIR}/MediaInfo
WRKBUILD= ${WRKSRC}/Project/GNU/CLI
.include <bsd.port.mk>

View File

@ -1,2 +1,2 @@
SHA256 (MediaInfo_CLI_20.09_GNU_FromSource.tar.xz) = C9oHLJGxZGtVWmeC2zLEaJHjQNAgT8BxbTXBnRv2oNo=
SIZE (MediaInfo_CLI_20.09_GNU_FromSource.tar.xz) = 3215776
SHA256 (mediainfo_21.03.tar.xz) = 3lDKCyxge4mZ08nlQtJ8lwMKWfMYWbYSM1MVvmhQAh4=
SIZE (mediainfo_21.03.tar.xz) = 1987340

View File

@ -1,6 +0,0 @@
# $OpenBSD: Makefile,v 1.2 2019/01/01 21:12:24 naddy Exp $
all install:
@for d in ${SUBDIRS}; do \
${MAKE} -C $$d $@ || exit; \
done

View File

@ -1,6 +0,0 @@
# $OpenBSD: configure,v 1.1.1.1 2014/06/13 20:48:58 naddy Exp $
for d in $SUBDIRS; do
(cd $d && ./configure "$@") || exit
PATH=$d:$PATH # for lib*-config
done

View File

@ -1,14 +0,0 @@
$OpenBSD: patch-MediaInfoLib_Project_GNU_Library_configure,v 1.7 2018/10/02 21:06:29 naddy Exp $
Index: MediaInfoLib/Project/GNU/Library/configure
--- MediaInfoLib/Project/GNU/Library/configure.orig
+++ MediaInfoLib/Project/GNU/Library/configure
@@ -18851,9 +18851,6 @@ if test "$GXX" = yes ; then
if test "$enable_debug" = "yes"; then
CFLAGS="$CFLAGS -O0 -g -Wall -Wundef"
CXXFLAGS="$CXXFLAGS -O0 -g -Wall -W -Wundef -Wcast-qual -Wno-ctor-dtor-privacy"
- else
- CFLAGS="$CFLAGS -O2"
- CXXFLAGS="$CXXFLAGS -O2"
fi
if test "$enable_gprof" = "yes"; then
CFLAGS="$CFLAGS -pg -g"

View File

@ -1,7 +1,9 @@
$OpenBSD: patch-MediaInfo_Project_GNU_CLI_configure,v 1.5 2016/01/11 16:22:12 naddy Exp $
--- MediaInfo/Project/GNU/CLI/configure.orig Wed Dec 30 17:07:57 2015
+++ MediaInfo/Project/GNU/CLI/configure Mon Jan 11 16:55:32 2016
@@ -15171,9 +15171,6 @@ if test "$GXX" = yes ; then
$OpenBSD: patch-Project_GNU_CLI_configure_ac,v 1.1 2021/04/29 20:19:54 naddy Exp $
Index: Project/GNU/CLI/configure.ac
--- Project/GNU/CLI/configure.ac.orig
+++ Project/GNU/CLI/configure.ac
@@ -136,9 +136,6 @@ if test "$GXX" = yes ; then
if test "$enable_debug" = "yes"; then
CFLAGS="$CFLAGS -O0 -g -Wall -Wundef"
CXXFLAGS="$CXXFLAGS -O0 -g -Wall -W -Wundef -Wcast-qual -Wno-ctor-dtor-privacy"

View File

@ -1,36 +0,0 @@
$OpenBSD: patch-ZenLib_Project_GNU_Library_configure,v 1.8 2018/10/02 21:06:29 naddy Exp $
Index: ZenLib/Project/GNU/Library/configure
--- ZenLib/Project/GNU/Library/configure.orig
+++ ZenLib/Project/GNU/Library/configure
@@ -15538,10 +15538,10 @@ fi
if test "$enable_shared" = "yes"; then
- ZenLib_LIBS="-L$(pwd)/.libs -lzen -lpthread -lstdc++ $ZenLib_LIBS"
+ ZenLib_LIBS="-L$(pwd)/.libs -lzen -lpthread $ZenLib_LIBS"
fi
if test "$enable_static" = "yes"; then
- ZenLib_LIBS_Static="$(pwd)/.libs/libzen.a -lpthread -lstdc++ $ZenLib_LIBS_Static"
+ ZenLib_LIBS_Static="$(pwd)/.libs/libzen.a -lpthread $ZenLib_LIBS_Static"
fi
@@ -15646,9 +15646,6 @@ if test "$GXX" = yes ; then
if test "$enable_debug" = "yes"; then
CFLAGS="$CFLAGS -O0 -g -Wall -Wundef"
CXXFLAGS="$CXXFLAGS -O0 -g -Wall -W -Wundef -Wcast-qual -Wno-ctor-dtor-privacy"
- else
- CFLAGS="$CFLAGS -O2"
- CXXFLAGS="$CXXFLAGS -O2"
fi
if test "$enable_gprof" = "yes"; then
CFLAGS="$CFLAGS -pg -g"
@@ -15656,7 +15653,7 @@ if test "$GXX" = yes ; then
fi
fi
-LDFLAGS="$LDFLAGS -lpthread -lstdc++"
+LDFLAGS="$LDFLAGS -lpthread"

View File

@ -1,2 +1,10 @@
MediaInfo is a convenient unified display of the most relevant technical
and tag data for video and audio files.
MediaInfo is a utility used for retrieving technical information and other
metadata about audio or video files.
A non-exhaustive list of the information MediaInfo can retrieve from media
files include:
- General: title, author, director, album, track number, date, duration...
- Video: codec, aspect, fps, bitrate...
- Audio: codec, sample rate, channels, language, bitrate...
- Text: language of subtitle
- Chapters: number of chapters, list of chapters