mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-09 05:10:05 +02:00
Add recipe for libcuefile.
This commit is contained in:
56
media-libs/libcuefile/libcuefile-r475.recipe
Normal file
56
media-libs/libcuefile/libcuefile-r475.recipe
Normal 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
|
||||
}
|
||||
35
media-libs/libcuefile/patches/libcuefile-r475.patchset
Normal file
35
media-libs/libcuefile/patches/libcuefile-r475.patchset
Normal 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
|
||||
|
||||
Reference in New Issue
Block a user