Add recipe for libcuefile.

This commit is contained in:
Adrien Destugues
2014-09-13 17:53:48 +02:00
parent 48856d9db2
commit 242b539dca
2 changed files with 91 additions and 0 deletions

View File

@@ -0,0 +1,56 @@
SUMMARY="Cue File library from Musepack"
DESCRIPTION="A library to work with CUE files
"
ARCHITECTURES="x86_gcc2"
REVISION="1"
HOMEPAGE="https://www.musepack.net"
LICENSE="GNU LGPL v2.1"
COPYRIGHT="1997-2011 Musepack Project"
SRC_URI="http://files.musepack.net/source/libcuefile_r475.tar.gz"
SOURCE_DIR="libcuefile_r475"
CHECKSUM_SHA256="b681ca6772b3f64010d24de57361faecf426ee6182f5969fcf29b3f649133fe7"
PATCHES="libcuefile-$portVersion.patchset"
PROVIDES="
libcuefile = $portVersion
lib:libcuefile = 0.0.0 compat = 0
"
REQUIRES="
haiku >= $haikuVersion
"
BUILD_PREREQUIRES="
haiku_devel >= $haikuVersion
cmd:cmake
cmd:gcc
cmd:make
"
PROVIDES_devel="
libcuefile_devel = $portVersion
devel:libcuefile
"
REQUIRES_devel="
libcuefile == $portVersion base
"
BUILD()
{
cmake . -DCMAKE_INSTALL_PREFIX=$prefix
make $jobArgs
}
INSTALL()
{
make install
mkdir -p $includeDir
cp -r include/* $includeDir
prepareInstalledDevelLib libcuefile
packageEntries devel $developDir
}

View File

@@ -0,0 +1,35 @@
From 06f43009bc5303fda6a3a358b087579650d679d3 Mon Sep 17 00:00:00 2001
From: Adrien Destugues <pulkomandy@pulkomandy.tk>
Date: Sat, 13 Sep 2014 16:35:44 +0200
Subject: gcc2 fixes.
diff --git a/src/cue_parse.c b/src/cue_parse.c
index aae2d53..5d90ef8 100755
--- a/src/cue_parse.c
+++ b/src/cue_parse.c
@@ -1515,10 +1515,11 @@ void yyerror (char *s)
Cd *cue_parse (FILE *fp)
{
+ int error = yyparse();
+ Cd* res;
cue_yyin = fp;
yydebug = 0;
- int error = yyparse();
cue_delete_buffer();
if (prev_filename) {
free(prev_filename);
@@ -1533,7 +1534,7 @@ Cd *cue_parse (FILE *fp)
new_filename = 0;
}
- Cd *res = cd;
+ res = cd;
if (error) {
cd_delete(cd);
res = 0;
--
1.8.3.4