Permalink
Comparing changes
Open a pull request
- 1 commit
- 2 files changed
- 0 commit comments
- 1 contributor
Commits on Mar 31, 2019
Unified
Split
Showing
with
119 additions
and 0 deletions.
- +85 −0 media-libs/id3lib/id3lib-3.8.3.recipe
- +34 −0 media-libs/id3lib/patches/id3lib-3.8.3.patchset
| @@ -0,0 +1,85 @@ | ||
| SUMMARY="Id3 library for C/C++" | ||
| DESCRIPTION="id3lib is a software library for reading, writing, \ | ||
| and manipulating ID3v2 tags. Additionally it is possible to get \ | ||
| some basic mp3 header information like bitrate etc." | ||
| HOMEPAGE="https://sourceforge.net/projects/id3lib/" | ||
| COPYRIGHT="2000-2004 Underbit Technologies, Inc." | ||
| LICENSE="GNU LGPL v2.1" | ||
| REVISION="1" | ||
| SOURCE_URI="https://sourceforge.net/projects/id3lib/files/id3lib/$portVersion/id3lib-$portVersion.tar.gz" | ||
| CHECKSUM_SHA256="2749cc3c0cd7280b299518b1ddf5a5bcfe2d1100614519b68702230e26c7d079" | ||
| PATCHES="id3lib-$portVersion.patchset" | ||
|
|
||
| ARCHITECTURES="x86_gcc2 x86 x86_64" | ||
| SECONDARY_ARCHITECTURES="x86_gcc2 x86" | ||
|
|
||
| PROVIDES=" | ||
| id3lib$secondaryArchSuffix = $portVersion | ||
| lib:libid3$secondaryArchSuffix = 3.0.0 compat >= 0 | ||
| " | ||
| REQUIRES=" | ||
| haiku$secondaryArchSuffix | ||
| lib:libiconv$secondaryArchSuffix | ||
| lib:libz$secondaryArchSuffix | ||
| " | ||
|
|
||
| PROVIDES_devel=" | ||
| id3lib${secondaryArchSuffix}_devel = $portVersion | ||
| devel:libid3$secondaryArchSuffix = 3.0.0 compat >= 0 | ||
| " | ||
| REQUIRES_devel=" | ||
| $portName == $portVersion base | ||
| " | ||
|
|
||
| BUILD_REQUIRES=" | ||
| haiku${secondaryArchSuffix}_devel | ||
| devel:libiconv$secondaryArchSuffix | ||
| devel:libz$secondaryArchSuffix | ||
| " | ||
| BUILD_PREREQUIRES=" | ||
| cmd:aclocal | ||
| cmd:autoconf | ||
| cmd:gcc$secondaryArchSuffix | ||
| cmd:libtoolize$secondaryArchSuffix | ||
| cmd:make | ||
| " | ||
|
|
||
| PATCH() | ||
| { | ||
| sed -i "s/iomanip.h/iomanip/" configure.in | ||
| sed -i "s/iomanip.h/iomanip/" configure | ||
| } | ||
|
|
||
| BUILD() | ||
| { | ||
| libtoolize -fci | ||
| aclocal --force --install -I acinclude | ||
| autoconf | ||
| ./configure --prefix=$prefix \ | ||
| --bindir=$binDir \ | ||
| --sbindir=$binDir \ | ||
| --libdir=$libDir \ | ||
| --includedir=$includeDir \ | ||
| --datadir=$dataDir \ | ||
| --mandir=$manDir \ | ||
| --disable-dependency-tracking | ||
| make | ||
| } | ||
|
|
||
| INSTALL() | ||
| { | ||
| make install | ||
|
|
||
| rm $libDir/libid3.la | ||
|
|
||
| prepareInstalledDevelLib libid3 | ||
| fixPkgconfig | ||
|
|
||
| packageEntries devel \ | ||
| $developDir | ||
| } | ||
|
|
||
| TEST() | ||
| { | ||
| make check | ||
| } |
| @@ -0,0 +1,34 @@ | ||
| From ddbf30b1bb2e8c2ef09ca5b8e600cc64fb867cdf Mon Sep 17 00:00:00 2001 | ||
| From: Gerasim Troeglazov <3dEyes@gmail.com> | ||
| Date: Sun, 31 Mar 2019 13:52:28 +1000 | ||
| Subject: Fix build for Haiku | ||
|
|
||
|
|
||
| diff --git a/include/id3/id3lib_strings.h b/include/id3/id3lib_strings.h | ||
| index f326cdf..142e09a 100644 | ||
| --- a/include/id3/id3lib_strings.h | ||
| +++ b/include/id3/id3lib_strings.h | ||
| @@ -30,6 +30,7 @@ | ||
| #define _ID3LIB_STRINGS_H_ | ||
|
|
||
| #include <string> | ||
| +#include <string.h> | ||
|
|
||
| #if (defined(__GNUC__) && (__GNUC__ >= 3) || (defined(_MSC_VER) && _MSC_VER > 1000)) | ||
| namespace std | ||
| diff --git a/include/id3/writers.h b/include/id3/writers.h | ||
| index 1cbb0dc..4bc8f77 100644 | ||
| --- a/include/id3/writers.h | ||
| +++ b/include/id3/writers.h | ||
| @@ -30,7 +30,7 @@ | ||
|
|
||
| #include "id3/writer.h" | ||
| #include "id3/id3lib_streams.h" | ||
| -//#include <string.h> | ||
| +#include <string.h> | ||
|
|
||
| class ID3_CPP_EXPORT ID3_OStreamWriter : public ID3_Writer | ||
| { | ||
| -- | ||
| 2.19.1 | ||
|
|