mirror of
https://github.com/yann64/haikuports.git
synced 2026-03-19 01:46:00 +01:00
mediainfo, bump version, split packaging (#11568)
This commit is contained in:
81
media-libs/libmediainfo/libmediainfo-24.12.recipe
Normal file
81
media-libs/libmediainfo/libmediainfo-24.12.recipe
Normal file
@@ -0,0 +1,81 @@
|
||||
SUMMARY="The mediainfo library"
|
||||
DESCRIPTION="MediaInfo(Lib) is a convenient unified display of the most relevant technical and \
|
||||
tag data for video and audio files."
|
||||
HOMEPAGE="https://github.com/MediaArea/MediaInfoLib"
|
||||
COPYRIGHT="2002-2024 MediaArea.net SARL"
|
||||
LICENSE="BSD (2-clause)"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://mediaarea.net/download/source/libmediainfo/$portVersion/libmediainfo_$portVersion.tar.bz2"
|
||||
CHECKSUM_SHA256="66e2d43d44425bc6e9b12ff7c5444873b38cb0bf68f8f6b3e39355c152591a59"
|
||||
SOURCE_DIR="MediaInfoLib"
|
||||
PATCHES="libmediainfo-$portVersion.patchset"
|
||||
|
||||
ARCHITECTURES="all !x86_gcc2"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
libVersion="0.0.0"
|
||||
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
||||
|
||||
PROVIDES="
|
||||
libmediainfo$secondaryArchSuffix = $portVersion
|
||||
lib:libmediainfo$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libcurl$secondaryArchSuffix
|
||||
lib:libtinyxml2$secondaryArchSuffix
|
||||
lib:libz$secondaryArchSuffix
|
||||
lib:libzen$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
libmediainfo${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:libmediainfo$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES_devel="
|
||||
libmediainfo$secondaryArchSuffix == $portVersion base
|
||||
devel:libcurl$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libcurl$secondaryArchSuffix
|
||||
devel:libtinyxml2$secondaryArchSuffix
|
||||
devel:libz$secondaryArchSuffix
|
||||
devel:libzen$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:autoconf
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:ld$secondaryArchSuffix
|
||||
cmd:libtoolize$secondaryArchSuffix
|
||||
cmd:make
|
||||
cmd:pkg_config$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
cd Project/GNU/Library
|
||||
autoreconf -vfi
|
||||
|
||||
runConfigure ./configure \
|
||||
--with-libcurl \
|
||||
--with-libtinyxml2 \
|
||||
--enable-shared
|
||||
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make -C Project/GNU/Library install
|
||||
|
||||
rm -rf $libDir/*.la
|
||||
|
||||
prepareInstalledDevelLib \
|
||||
libmediainfo
|
||||
fixPkgconfig
|
||||
|
||||
packageEntries devel \
|
||||
$developDir
|
||||
}
|
||||
74
media-libs/libmediainfo/patches/libmediainfo-24.12.patchset
Normal file
74
media-libs/libmediainfo/patches/libmediainfo-24.12.patchset
Normal file
@@ -0,0 +1,74 @@
|
||||
From 7c8ebcb0702577bf8acf828d96d2a156419d18d6 Mon Sep 17 00:00:00 2001
|
||||
From: Schrijvers Luc <begasus@gmail.com>
|
||||
Date: Thu, 2 Jan 2025 15:49:13 +0100
|
||||
Subject: Applying old patches
|
||||
|
||||
|
||||
diff --git a/Project/GNU/Library/libmediainfo.pc.in b/Project/GNU/Library/libmediainfo.pc.in
|
||||
index 33c496a..ee688ea 100644
|
||||
--- a/Project/GNU/Library/libmediainfo.pc.in
|
||||
+++ b/Project/GNU/Library/libmediainfo.pc.in
|
||||
@@ -3,7 +3,7 @@ exec_prefix=@exec_prefix@
|
||||
libdir=@libdir@
|
||||
includedir=@includedir@
|
||||
Unicode=@MediaInfoLib_Unicode@
|
||||
-Libs_Static=${libdir}/lib@MediaInfoLib_LibName@.a ${libdir}/libzen.a -lpthread -lz@Graphviz_Lib@@Curl_Lib@
|
||||
+Libs_Static=${libdir}/lib@MediaInfoLib_LibName@.a ${libdir}/libzen.a -lz@Graphviz_Lib@@Curl_Lib@
|
||||
la_name=lib@MediaInfoLib_LibName@.la
|
||||
|
||||
Name: libmediainfo
|
||||
diff --git a/Source/MediaInfo/MediaInfo_Events.h b/Source/MediaInfo/MediaInfo_Events.h
|
||||
index 663c2c0..56cad5d 100644
|
||||
--- a/Source/MediaInfo/MediaInfo_Events.h
|
||||
+++ b/Source/MediaInfo/MediaInfo_Events.h
|
||||
@@ -67,7 +67,7 @@
|
||||
|| defined(__unix) || defined(__unix__) \
|
||||
|| defined(____SVR4____) || defined(__LINUX__) || defined(__sgi) \
|
||||
|| defined(__hpux) || defined(sun) || defined(__SUN__) || defined(_AIX) \
|
||||
- || defined(__EMX__) || defined(__VMS) || defined(__BEOS__)
|
||||
+ || defined(__EMX__) || defined(__VMS) || defined(__BEOS__) || defined(__HAIKU__)
|
||||
#ifndef UNIX
|
||||
#define UNIX
|
||||
#endif
|
||||
diff --git a/Source/MediaInfoDLL/MediaInfoDLL.h b/Source/MediaInfoDLL/MediaInfoDLL.h
|
||||
index 692869a..c75e665 100644
|
||||
--- a/Source/MediaInfoDLL/MediaInfoDLL.h
|
||||
+++ b/Source/MediaInfoDLL/MediaInfoDLL.h
|
||||
@@ -67,7 +67,7 @@
|
||||
|| defined(__unix) || defined(__unix__) \
|
||||
|| defined(____SVR4____) || defined(__LINUX__) || defined(__sgi) \
|
||||
|| defined(__hpux) || defined(sun) || defined(__SUN__) || defined(_AIX) \
|
||||
- || defined(__EMX__) || defined(__VMS) || defined(__BEOS__)
|
||||
+ || defined(__EMX__) || defined(__VMS) || defined(__BEOS__) || defined(__HAIKU__)
|
||||
#ifndef UNIX
|
||||
#define UNIX
|
||||
#endif
|
||||
diff --git a/Source/MediaInfoDLL/MediaInfoDLL_Static.h b/Source/MediaInfoDLL/MediaInfoDLL_Static.h
|
||||
index 3c41e2d..a2a051f 100644
|
||||
--- a/Source/MediaInfoDLL/MediaInfoDLL_Static.h
|
||||
+++ b/Source/MediaInfoDLL/MediaInfoDLL_Static.h
|
||||
@@ -67,7 +67,7 @@
|
||||
|| defined(__unix) || defined(__unix__) \
|
||||
|| defined(____SVR4____) || defined(__LINUX__) || defined(__sgi) \
|
||||
|| defined(__hpux) || defined(sun) || defined(__SUN__) || defined(_AIX) \
|
||||
- || defined(__EMX__) || defined(__VMS) || defined(__BEOS__)
|
||||
+ || defined(__EMX__) || defined(__VMS) || defined(__BEOS__) || defined(__HAIKU__)
|
||||
#ifndef UNIX
|
||||
#define UNIX
|
||||
#endif
|
||||
diff --git a/Source/ThirdParty/aes-gladman/brg_endian.h b/Source/ThirdParty/aes-gladman/brg_endian.h
|
||||
index 9f3b545..fc54b7b 100644
|
||||
--- a/Source/ThirdParty/aes-gladman/brg_endian.h
|
||||
+++ b/Source/ThirdParty/aes-gladman/brg_endian.h
|
||||
@@ -35,7 +35,7 @@ Issue Date: 20/12/2007
|
||||
#elif defined( __linux__ ) || defined( __GNUC__ ) || defined( __GNU_LIBRARY__ )
|
||||
# if !defined( __MINGW32__ ) && !defined( _AIX )
|
||||
# include <endian.h>
|
||||
-# if !defined( __BEOS__ )
|
||||
+# if !defined( __BEOS__ ) && !defined(__HAIKU__)
|
||||
# include <byteswap.h>
|
||||
# endif
|
||||
# endif
|
||||
--
|
||||
2.45.2
|
||||
|
||||
71
media-libs/libzen/libzen-0.4.41.recipe
Normal file
71
media-libs/libzen/libzen-0.4.41.recipe
Normal file
@@ -0,0 +1,71 @@
|
||||
SUMMARY="Shared library for libmediainfo and mediainfo"
|
||||
DESCRIPTION="Small C++ derivate classes to have an easier life."
|
||||
HOMEPAGE="https://github.com/MediaArea/ZenLib "
|
||||
COPYRIGHT="2002-2020 MediaArea.net SARL."
|
||||
LICENSE="Zlib"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://mediaarea.net/download/source/libzen/$portVersion/libzen_$portVersion.tar.bz2"
|
||||
CHECKSUM_SHA256="eb237d7d3dca6dc6ba068719420a27de0934a783ccaeb2867562b35af3901e2d"
|
||||
SOURCE_DIR="ZenLib"
|
||||
PATCHES="libzen-$portVersion.patchset"
|
||||
|
||||
ARCHITECTURES="all !x86_gcc2"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
libVersion="0.0.0"
|
||||
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
||||
|
||||
PROVIDES="
|
||||
libzen$secondaryArchSuffix = $portVersion
|
||||
lib:libzen$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libz$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
libzen${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:libzen$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES_devel="
|
||||
libzen$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libz$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:autoconf
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:ld$secondaryArchSuffix
|
||||
cmd:libtoolize$secondaryArchSuffix
|
||||
cmd:make
|
||||
cmd:pkg_config$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
cd Project/GNU/Library
|
||||
autoreconf -vfi
|
||||
|
||||
runConfigure ./configure \
|
||||
--enable-shared
|
||||
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make -C Project/GNU/Library install
|
||||
|
||||
rm -rf $libDir/*.la
|
||||
|
||||
prepareInstalledDevelLib \
|
||||
libzen
|
||||
fixPkgconfig
|
||||
|
||||
packageEntries devel \
|
||||
$developDir
|
||||
}
|
||||
65
media-libs/libzen/patches/libzen-0.4.41.patchset
Normal file
65
media-libs/libzen/patches/libzen-0.4.41.patchset
Normal file
@@ -0,0 +1,65 @@
|
||||
From 761a401896e1ea6b56c88e36a031e2391ac697e1 Mon Sep 17 00:00:00 2001
|
||||
From: Schrijvers Luc <begasus@gmail.com>
|
||||
Date: Thu, 2 Jan 2025 15:49:13 +0100
|
||||
Subject: Applying old patches
|
||||
|
||||
|
||||
diff --git a/Project/GNU/Library/configure.ac b/Project/GNU/Library/configure.ac
|
||||
index 6c4b4ff..65d52d4 100644
|
||||
--- a/Project/GNU/Library/configure.ac
|
||||
+++ b/Project/GNU/Library/configure.ac
|
||||
@@ -144,10 +144,10 @@ dnl -------------------------------------------------------------------------
|
||||
dnl Common
|
||||
dnl
|
||||
if test "$enable_shared" = "yes"; then
|
||||
- ZenLib_LIBS="-L$(pwd)/.libs -lzen -lpthread $ZenLib_LIBS"
|
||||
+ ZenLib_LIBS="-L$(pwd)/.libs -lzen $ZenLib_LIBS"
|
||||
fi
|
||||
if test "$enable_static" = "yes"; then
|
||||
- ZenLib_LIBS_Static="$(pwd)/.libs/libzen.a -lpthread $ZenLib_LIBS_Static"
|
||||
+ ZenLib_LIBS_Static="$(pwd)/.libs/libzen.a $ZenLib_LIBS_Static"
|
||||
fi
|
||||
|
||||
dnl #########################################################################
|
||||
@@ -259,7 +259,7 @@ fi
|
||||
dnl -------------------------------------------------------------------------
|
||||
dnl External libs
|
||||
dnl
|
||||
-LDFLAGS="$LDFLAGS -lpthread"
|
||||
+LDFLAGS="$LDFLAGS"
|
||||
|
||||
dnl -------------------------------------------------------------------------
|
||||
dnl Check if thread safe variants of time functions are available
|
||||
diff --git a/Project/GNU/Library/libzen.pc.in b/Project/GNU/Library/libzen.pc.in
|
||||
index f7bb814..3e9dfa7 100644
|
||||
--- a/Project/GNU/Library/libzen.pc.in
|
||||
+++ b/Project/GNU/Library/libzen.pc.in
|
||||
@@ -4,10 +4,10 @@ libdir=@libdir@
|
||||
includedir=@includedir@
|
||||
Unicode=@ZenLib_Unicode@
|
||||
WstringMissing=@ZenLib_wstring_missing@
|
||||
-Libs_Static=@libdir@/libzen.a -lpthread
|
||||
+Libs_Static=@libdir@/libzen.a
|
||||
|
||||
Name: libzen
|
||||
Version: @PACKAGE_VERSION@
|
||||
Description: ZenLib
|
||||
-Libs: -L${libdir} -lzen -lpthread
|
||||
+Libs: -L${libdir} -lzen
|
||||
Cflags: -I${includedir} @ZenLib_CXXFLAGS@
|
||||
diff --git a/Source/ZenLib/Conf.h b/Source/ZenLib/Conf.h
|
||||
index 18264cf..0a7426b 100644
|
||||
--- a/Source/ZenLib/Conf.h
|
||||
+++ b/Source/ZenLib/Conf.h
|
||||
@@ -71,7 +71,7 @@
|
||||
|| defined(__unix) || defined(__unix__) \
|
||||
|| defined(____SVR4____) || defined(__LINUX__) || defined(__sgi) \
|
||||
|| defined(__hpux) || defined(sun) || defined(__SUN__) || defined(_AIX) \
|
||||
- || defined(__EMX__) || defined(__VMS) || defined(__BEOS__)
|
||||
+ || defined(__EMX__) || defined(__VMS) || defined(__BEOS__) || defined(__HAIKU__)
|
||||
#ifndef UNIX
|
||||
#define UNIX
|
||||
#endif
|
||||
--
|
||||
2.45.2
|
||||
|
||||
@@ -1,108 +0,0 @@
|
||||
SUMMARY="A tool to display technical information of audio and video files"
|
||||
DESCRIPTION="MediaInfo is a convenient unified display of the most relevant \
|
||||
technical and tag data for video and audio files.
|
||||
|
||||
MediaInfo analyticals include:
|
||||
|
||||
- Container: MPEG-4, QuickTime, Matroska, AVI, MPEG-PS (including unprotected \
|
||||
DVD), MPEG-TS (including unprotected Blu-ray), MXF, GXF, LXF, WMV, FLV, Real...
|
||||
- Tags: Id3v1, Id3v2, Vorbis comments, APE tags...
|
||||
- Video: MPEG-1/2 Video, H.263, MPEG-4 Visual (including DivX, XviD), \
|
||||
H.264/AVC, Dirac...
|
||||
- Audio: MPEG Audio (including MP3), AC3, DTS, AAC, Dolby E, AES3, FLAC...
|
||||
- Subtitles: CEA-608, CEA-708, DTVCC, SCTE-20, SCTE-128, ATSC/53, CDP, DVB \
|
||||
Subtitle, Teletext, SRT, SSA, ASS, SAMI..."
|
||||
HOMEPAGE="https://mediaarea.net/en/MediaInfo"
|
||||
COPYRIGHT="2002-2021 MediaArea.net SARL"
|
||||
LICENSE="GNU LGPL v2.1
|
||||
BSD (2-clause)"
|
||||
REVISION="2"
|
||||
SOURCE_URI="https://mediaarea.net/download/binary/mediainfo/$portVersion/MediaInfo_CLI_${portVersion}_GNU_FromSource.tar.bz2"
|
||||
CHECKSUM_SHA256="75adafad4f1bd3259354a50ae491de6929649c14c71998cf5a2ed176d298b011"
|
||||
SOURCE_DIR="MediaInfo_CLI_GNU_FromSource"
|
||||
PATCHES="mediainfo-$portVersion.patchset"
|
||||
|
||||
ARCHITECTURES="all !x86_gcc2"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
commandSuffix=$secondaryArchSuffix
|
||||
commandBinDir=$binDir
|
||||
if [ "$targetArchitecture" = x86_gcc2 ]; then
|
||||
commandSuffix=
|
||||
commandBinDir=$prefix/bin
|
||||
fi
|
||||
|
||||
libVersion="0.0.0"
|
||||
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
||||
|
||||
PROVIDES="
|
||||
mediainfo$secondaryArchSuffix = $portVersion
|
||||
cmd:mediainfo$commandSuffix = $portVersion
|
||||
lib:libmediainfo$secondaryArchSuffix = $libVersionCompat
|
||||
lib:libzen$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libcurl$secondaryArchSuffix
|
||||
lib:libtinyxml2$secondaryArchSuffix
|
||||
lib:libz$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
mediainfo${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:libmediainfo$secondaryArchSuffix = $libVersionCompat
|
||||
devel:libzen$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES_devel="
|
||||
mediainfo$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libcurl$secondaryArchSuffix
|
||||
devel:libtinyxml2$secondaryArchSuffix
|
||||
devel:libz$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:autoconf
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:ld$secondaryArchSuffix
|
||||
cmd:libtoolize$secondaryArchSuffix
|
||||
cmd:make
|
||||
cmd:pkg_config$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
cd ZenLib/Project/GNU/Library
|
||||
autoreconf -vfi
|
||||
cd $sourceDir
|
||||
CFLAGS="-D_BSD_SOURCE" CXXFLAGS="-D_BSD_SOURCE" \
|
||||
LDFLAGS="-ltinyxml2" ./CLI_Compile.sh \
|
||||
--with-libcurl \
|
||||
--with-libtinyxml2 \
|
||||
--enable-shared \
|
||||
--prefix=$prefix \
|
||||
--libdir=$libDir \
|
||||
--includedir=$includeDir \
|
||||
--bindir=$commandBinDir
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
cd $sourceDir/MediaInfoLib/Project/GNU/Library
|
||||
make install
|
||||
cd $sourceDir/MediaInfo/Project/GNU/CLI
|
||||
make install
|
||||
cd $sourceDir/ZenLib/Project/GNU/Library
|
||||
make install
|
||||
|
||||
rm -rf $libDir/*.la
|
||||
|
||||
prepareInstalledDevelLibs libmediainfo libzen
|
||||
|
||||
fixPkgconfig
|
||||
|
||||
packageEntries devel \
|
||||
$developDir
|
||||
}
|
||||
@@ -1,156 +0,0 @@
|
||||
From 1281e33cffdf71de55ff430bbb88b7d773aa0e6f Mon Sep 17 00:00:00 2001
|
||||
From: Gerasim Troeglazov <3dEyes@gmail.com>
|
||||
Date: Mon, 28 Jun 2021 19:41:02 +1000
|
||||
Subject: Applying old patches
|
||||
|
||||
|
||||
diff --git a/MediaInfoLib/Project/GNU/Library/libmediainfo.pc.in b/MediaInfoLib/Project/GNU/Library/libmediainfo.pc.in
|
||||
index e9c36e1..7eaa69a 100644
|
||||
--- a/MediaInfoLib/Project/GNU/Library/libmediainfo.pc.in
|
||||
+++ b/MediaInfoLib/Project/GNU/Library/libmediainfo.pc.in
|
||||
@@ -3,7 +3,7 @@ exec_prefix=@exec_prefix@
|
||||
libdir=@libdir@
|
||||
includedir=@includedir@
|
||||
Unicode=@MediaInfoLib_Unicode@
|
||||
-Libs_Static=${libdir}/lib@MediaInfoLib_LibName@.a ${libdir}/libzen.a -lpthread -lz@Curl_Lib@
|
||||
+Libs_Static=${libdir}/lib@MediaInfoLib_LibName@.a ${libdir}/libzen.a -lz@Curl_Lib@
|
||||
la_name=lib@MediaInfoLib_LibName@.la
|
||||
|
||||
Name: libmediainfo
|
||||
diff --git a/MediaInfoLib/Source/MediaInfo/MediaInfo_Events.h b/MediaInfoLib/Source/MediaInfo/MediaInfo_Events.h
|
||||
index 933f76e..6564a75 100644
|
||||
--- a/MediaInfoLib/Source/MediaInfo/MediaInfo_Events.h
|
||||
+++ b/MediaInfoLib/Source/MediaInfo/MediaInfo_Events.h
|
||||
@@ -67,7 +67,7 @@
|
||||
|| defined(__unix) || defined(__unix__) \
|
||||
|| defined(____SVR4____) || defined(__LINUX__) || defined(__sgi) \
|
||||
|| defined(__hpux) || defined(sun) || defined(__SUN__) || defined(_AIX) \
|
||||
- || defined(__EMX__) || defined(__VMS) || defined(__BEOS__)
|
||||
+ || defined(__EMX__) || defined(__VMS) || defined(__BEOS__) || defined(__HAIKU__)
|
||||
#ifndef UNIX
|
||||
#define UNIX
|
||||
#endif
|
||||
diff --git a/MediaInfoLib/Source/MediaInfoDLL/MediaInfoDLL.h b/MediaInfoLib/Source/MediaInfoDLL/MediaInfoDLL.h
|
||||
index ec26345..230a4c3 100644
|
||||
--- a/MediaInfoLib/Source/MediaInfoDLL/MediaInfoDLL.h
|
||||
+++ b/MediaInfoLib/Source/MediaInfoDLL/MediaInfoDLL.h
|
||||
@@ -67,7 +67,7 @@
|
||||
|| defined(__unix) || defined(__unix__) \
|
||||
|| defined(____SVR4____) || defined(__LINUX__) || defined(__sgi) \
|
||||
|| defined(__hpux) || defined(sun) || defined(__SUN__) || defined(_AIX) \
|
||||
- || defined(__EMX__) || defined(__VMS) || defined(__BEOS__)
|
||||
+ || defined(__EMX__) || defined(__VMS) || defined(__BEOS__) || defined(__HAIKU__)
|
||||
#ifndef UNIX
|
||||
#define UNIX
|
||||
#endif
|
||||
diff --git a/MediaInfoLib/Source/MediaInfoDLL/MediaInfoDLL_Static.h b/MediaInfoLib/Source/MediaInfoDLL/MediaInfoDLL_Static.h
|
||||
index 3c41e2d..a2a051f 100644
|
||||
--- a/MediaInfoLib/Source/MediaInfoDLL/MediaInfoDLL_Static.h
|
||||
+++ b/MediaInfoLib/Source/MediaInfoDLL/MediaInfoDLL_Static.h
|
||||
@@ -67,7 +67,7 @@
|
||||
|| defined(__unix) || defined(__unix__) \
|
||||
|| defined(____SVR4____) || defined(__LINUX__) || defined(__sgi) \
|
||||
|| defined(__hpux) || defined(sun) || defined(__SUN__) || defined(_AIX) \
|
||||
- || defined(__EMX__) || defined(__VMS) || defined(__BEOS__)
|
||||
+ || defined(__EMX__) || defined(__VMS) || defined(__BEOS__) || defined(__HAIKU__)
|
||||
#ifndef UNIX
|
||||
#define UNIX
|
||||
#endif
|
||||
diff --git a/MediaInfoLib/Source/ThirdParty/aes-gladman/brg_endian.h b/MediaInfoLib/Source/ThirdParty/aes-gladman/brg_endian.h
|
||||
index 4c34f2b..3b878c9 100644
|
||||
--- a/MediaInfoLib/Source/ThirdParty/aes-gladman/brg_endian.h
|
||||
+++ b/MediaInfoLib/Source/ThirdParty/aes-gladman/brg_endian.h
|
||||
@@ -35,7 +35,7 @@ Issue Date: 20/12/2007
|
||||
#elif defined( __linux__ ) || defined( __GNUC__ ) || defined( __GNU_LIBRARY__ )
|
||||
# if !defined( __MINGW32__ ) && !defined( _AIX )
|
||||
# include <endian.h>
|
||||
-# if !defined( __BEOS__ )
|
||||
+# if !defined( __BEOS__ ) && !defined(__HAIKU__)
|
||||
# include <byteswap.h>
|
||||
# endif
|
||||
# endif
|
||||
diff --git a/ZenLib/Project/GNU/Library/configure b/ZenLib/Project/GNU/Library/configure
|
||||
index d6e8bb8..cc3694c 100755
|
||||
--- a/ZenLib/Project/GNU/Library/configure
|
||||
+++ b/ZenLib/Project/GNU/Library/configure
|
||||
@@ -15591,10 +15591,10 @@ fi
|
||||
|
||||
|
||||
if test "$enable_shared" = "yes"; then
|
||||
- ZenLib_LIBS="-L$(pwd)/.libs -lzen -lpthread $ZenLib_LIBS"
|
||||
+ ZenLib_LIBS="-L$(pwd)/.libs -lzen $ZenLib_LIBS"
|
||||
fi
|
||||
if test "$enable_static" = "yes"; then
|
||||
- ZenLib_LIBS_Static="$(pwd)/.libs/libzen.a -lpthread $ZenLib_LIBS_Static"
|
||||
+ ZenLib_LIBS_Static="$(pwd)/.libs/libzen.a $ZenLib_LIBS_Static"
|
||||
fi
|
||||
|
||||
|
||||
@@ -15709,7 +15709,7 @@ if test "$GXX" = yes ; then
|
||||
fi
|
||||
fi
|
||||
|
||||
-LDFLAGS="$LDFLAGS -lpthread"
|
||||
+LDFLAGS="$LDFLAGS"
|
||||
|
||||
for ac_func in gmtime_r localtime_r
|
||||
do :
|
||||
diff --git a/ZenLib/Project/GNU/Library/configure.ac b/ZenLib/Project/GNU/Library/configure.ac
|
||||
index 500101b..a13f0b6 100644
|
||||
--- a/ZenLib/Project/GNU/Library/configure.ac
|
||||
+++ b/ZenLib/Project/GNU/Library/configure.ac
|
||||
@@ -144,10 +144,10 @@ dnl -------------------------------------------------------------------------
|
||||
dnl Common
|
||||
dnl
|
||||
if test "$enable_shared" = "yes"; then
|
||||
- ZenLib_LIBS="-L$(pwd)/.libs -lzen -lpthread $ZenLib_LIBS"
|
||||
+ ZenLib_LIBS="-L$(pwd)/.libs -lzen $ZenLib_LIBS"
|
||||
fi
|
||||
if test "$enable_static" = "yes"; then
|
||||
- ZenLib_LIBS_Static="$(pwd)/.libs/libzen.a -lpthread $ZenLib_LIBS_Static"
|
||||
+ ZenLib_LIBS_Static="$(pwd)/.libs/libzen.a $ZenLib_LIBS_Static"
|
||||
fi
|
||||
|
||||
dnl #########################################################################
|
||||
@@ -252,7 +252,7 @@ fi
|
||||
dnl -------------------------------------------------------------------------
|
||||
dnl External libs
|
||||
dnl
|
||||
-LDFLAGS="$LDFLAGS -lpthread"
|
||||
+LDFLAGS="$LDFLAGS"
|
||||
|
||||
dnl -------------------------------------------------------------------------
|
||||
dnl Check if thread safe variants of time functions are available
|
||||
diff --git a/ZenLib/Project/GNU/Library/libzen.pc.in b/ZenLib/Project/GNU/Library/libzen.pc.in
|
||||
index f7bb814..3e9dfa7 100644
|
||||
--- a/ZenLib/Project/GNU/Library/libzen.pc.in
|
||||
+++ b/ZenLib/Project/GNU/Library/libzen.pc.in
|
||||
@@ -4,10 +4,10 @@ libdir=@libdir@
|
||||
includedir=@includedir@
|
||||
Unicode=@ZenLib_Unicode@
|
||||
WstringMissing=@ZenLib_wstring_missing@
|
||||
-Libs_Static=@libdir@/libzen.a -lpthread
|
||||
+Libs_Static=@libdir@/libzen.a
|
||||
|
||||
Name: libzen
|
||||
Version: @PACKAGE_VERSION@
|
||||
Description: ZenLib
|
||||
-Libs: -L${libdir} -lzen -lpthread
|
||||
+Libs: -L${libdir} -lzen
|
||||
Cflags: -I${includedir} @ZenLib_CXXFLAGS@
|
||||
diff --git a/ZenLib/Source/ZenLib/Conf.h b/ZenLib/Source/ZenLib/Conf.h
|
||||
index 18264cf..0a7426b 100644
|
||||
--- a/ZenLib/Source/ZenLib/Conf.h
|
||||
+++ b/ZenLib/Source/ZenLib/Conf.h
|
||||
@@ -71,7 +71,7 @@
|
||||
|| defined(__unix) || defined(__unix__) \
|
||||
|| defined(____SVR4____) || defined(__LINUX__) || defined(__sgi) \
|
||||
|| defined(__hpux) || defined(sun) || defined(__SUN__) || defined(_AIX) \
|
||||
- || defined(__EMX__) || defined(__VMS) || defined(__BEOS__)
|
||||
+ || defined(__EMX__) || defined(__VMS) || defined(__BEOS__) || defined(__HAIKU__)
|
||||
#ifndef UNIX
|
||||
#define UNIX
|
||||
#endif
|
||||
--
|
||||
2.30.2
|
||||
|
||||
73
media-video/mediainfo/mediainfo-24.12.recipe
Normal file
73
media-video/mediainfo/mediainfo-24.12.recipe
Normal file
@@ -0,0 +1,73 @@
|
||||
SUMMARY="A tool to display technical information of audio and video files"
|
||||
DESCRIPTION="MediaInfo is a convenient unified display of the most relevant \
|
||||
technical and tag data for video and audio files.
|
||||
|
||||
MediaInfo analyticals include:
|
||||
|
||||
- Container: MPEG-4, QuickTime, Matroska, AVI, MPEG-PS (including unprotected \
|
||||
DVD), MPEG-TS (including unprotected Blu-ray), MXF, GXF, LXF, WMV, FLV, Real...
|
||||
- Tags: Id3v1, Id3v2, Vorbis comments, APE tags...
|
||||
- Video: MPEG-1/2 Video, H.263, MPEG-4 Visual (including DivX, XviD), \
|
||||
H.264/AVC, Dirac...
|
||||
- Audio: MPEG Audio (including MP3), AC3, DTS, AAC, Dolby E, AES3, FLAC...
|
||||
- Subtitles: CEA-608, CEA-708, DTVCC, SCTE-20, SCTE-128, ATSC/53, CDP, DVB \
|
||||
Subtitle, Teletext, SRT, SSA, ASS, SAMI..."
|
||||
HOMEPAGE="https://mediaarea.net/en/MediaInfo"
|
||||
COPYRIGHT="2002-202 MediaArea.net SARL"
|
||||
LICENSE="BSD (2-clause)"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://mediaarea.net/download/source/mediainfo/$portVersion/mediainfo_$portVersion.tar.bz2"
|
||||
CHECKSUM_SHA256="ca5b32d1ae8e7221274b183f1c79f12098c69f258e52551218dc33a3c81fd2ec"
|
||||
SOURCE_DIR="MediaInfo"
|
||||
|
||||
ARCHITECTURES="all !x86_gcc2"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
commandSuffix=$secondaryArchSuffix
|
||||
commandBinDir=$binDir
|
||||
if [ "$targetArchitecture" = x86_gcc2 ]; then
|
||||
commandSuffix=
|
||||
commandBinDir=$prefix/bin
|
||||
fi
|
||||
|
||||
PROVIDES="
|
||||
mediainfo$secondaryArchSuffix = $portVersion
|
||||
cmd:mediainfo$commandSuffix = $portVersion
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libmediainfo$secondaryArchSuffix
|
||||
lib:libz$secondaryArchSuffix
|
||||
lib:libzen$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libmediainfo$secondaryArchSuffix
|
||||
devel:libz$secondaryArchSuffix
|
||||
devel:libzen$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:autoconf
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:ld$secondaryArchSuffix
|
||||
cmd:libtoolize$secondaryArchSuffix
|
||||
cmd:make
|
||||
cmd:pkg_config$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
cd Project/GNU/CLI
|
||||
autoreconf -vfi
|
||||
|
||||
runConfigure --omit-dirs binDir ./configure \
|
||||
--bindir=$commandBinDir
|
||||
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make -C Project/GNU/CLI install
|
||||
}
|
||||
Reference in New Issue
Block a user