mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-23 04:00:05 +02:00
libebml: add recipe for version 1.3.7.
disabled for gcc2. the old version stays available for gcc2.
This commit is contained in:
56
dev-libs/libebml/libebml-1.3.7.recipe
Normal file
56
dev-libs/libebml/libebml-1.3.7.recipe
Normal file
@@ -0,0 +1,56 @@
|
||||
SUMMARY="A C++ library to parse EBML content (read/write)"
|
||||
DESCRIPTION="libebml is a C++ library to parse EBML content (read/write)."
|
||||
HOMEPAGE="https://github.com/Matroska-Org/libebml/"
|
||||
COPYRIGHT="2005-2017 Matroska"
|
||||
LICENSE="GNU LGPL v2.1"
|
||||
REVISION="1"
|
||||
SOURCE_URI="$HOMEPAGE/archive/release-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="b26cf78e9a226bd2a61e032863d8c2fcf3aa96f6e3a7973c93c49303fc31612e"
|
||||
SOURCE_DIR="libebml-release-$portVersion"
|
||||
|
||||
ARCHITECTURES="!x86_gcc2 x86 x86_64"
|
||||
SECONDARY_ARCHITECTURES="!x86_gcc2 x86"
|
||||
|
||||
PROVIDES="
|
||||
libebml$secondaryArchSuffix = $portVersion
|
||||
lib:libebml$secondaryArchSuffix = 4.0.0 compat >= 4
|
||||
"
|
||||
REQUIRES="
|
||||
haiku${secondaryArchSuffix}
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
libebml${secondaryArchSuffix}_devel = $portVersion
|
||||
devel:libebml$secondaryArchSuffix = 4.0.0 compat >= 4
|
||||
"
|
||||
REQUIRES_devel="
|
||||
libebml$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:cmake
|
||||
cmd:gcc$secondaryArchSuffix
|
||||
cmd:ld$secondaryArchSuffix
|
||||
cmd:make
|
||||
"
|
||||
|
||||
BUILD()
|
||||
{
|
||||
mkdir -p build && cd build
|
||||
cmake .. $cmakeDirArgs -DBUILD_SHARED_LIBS=TRUE \
|
||||
-DCMAKE_BUILD_TYPE=Release
|
||||
make $jobArgs
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
make -C build install
|
||||
|
||||
prepareInstalledDevelLibs libebml
|
||||
fixPkgconfig
|
||||
|
||||
packageEntries devel $developDir $libDir/cmake
|
||||
}
|
||||
57
dev-libs/libebml/patches/libebml-1.3.7.patchset
Normal file
57
dev-libs/libebml/patches/libebml-1.3.7.patchset
Normal file
@@ -0,0 +1,57 @@
|
||||
From 3de81b57cac7cc32ff09a6ac36019aef7f4ef3ba Mon Sep 17 00:00:00 2001
|
||||
From: Jerome Duval <jerome.duval@gmail.com>
|
||||
Date: Sun, 4 Jan 2015 21:37:55 +0000
|
||||
Subject: gcc2 fix
|
||||
|
||||
|
||||
diff --git a/Makefile.am b/Makefile.am
|
||||
index 9b10ee8..3e11510 100644
|
||||
--- a/Makefile.am
|
||||
+++ b/Makefile.am
|
||||
@@ -3,7 +3,7 @@
|
||||
ACLOCAL_AMFLAGS = -I m4
|
||||
|
||||
AM_CPPFLAGS = -I${top_srcdir}
|
||||
-AM_CXXFLAGS = -Wall -Wextra -Wno-unknown-pragmas -Wshadow
|
||||
+AM_CXXFLAGS = -Wall -Wno-unknown-pragmas -Wshadow
|
||||
if ENABLE_DEBUG
|
||||
AM_CPPFLAGS += -DDEBUG
|
||||
AM_CXXFLAGS += -g
|
||||
--
|
||||
2.2.2
|
||||
|
||||
|
||||
From 93f6ed27f8c796cf087efda2c0ec0a25eab0acbd Mon Sep 17 00:00:00 2001
|
||||
From: Adrien Destugues <pulkomandy@gmail.com>
|
||||
Date: Sat, 25 Apr 2015 16:58:40 +0200
|
||||
Subject: Restore patch for type definitions.
|
||||
|
||||
* This was removed when updating from 1.0.0. The lib builds without it,
|
||||
but then all clients will fail to compile. Please do not remove this
|
||||
patch again.
|
||||
|
||||
diff --git a/ebml/c/libebml_t.h b/ebml/c/libebml_t.h
|
||||
index 71fe115..8e73ff9 100644
|
||||
--- a/ebml/c/libebml_t.h
|
||||
+++ b/ebml/c/libebml_t.h
|
||||
@@ -72,7 +72,7 @@ extern "C" {
|
||||
typedef uint16_t uint16;
|
||||
typedef uint8_t uint8;
|
||||
# endif // __GNUC__
|
||||
-#elif defined(__BEOS__)
|
||||
+#elif defined(__BEOS__) || defined(__HAIKU__)
|
||||
#include <SupportDefs.h>
|
||||
#elif defined(DJGPP) /* SL : DJGPP doesn't support POSIX types ???? */
|
||||
typedef signed long long int64;
|
||||
@@ -98,7 +98,7 @@ extern "C" {
|
||||
typedef uint32_t uint32;
|
||||
typedef uint16_t uint16;
|
||||
typedef uint8_t uint8;
|
||||
-#elif defined(__BEOS__)
|
||||
+#elif defined(__BEOS__) || defined(__HAIKU__)
|
||||
# include <support/SupportDefs.h>
|
||||
#else // anything else (Linux, BSD, ...)
|
||||
# include <inttypes.h>
|
||||
--
|
||||
2.2.2
|
||||
|
||||
Reference in New Issue
Block a user