mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 11:40:06 +02:00
cleanup (#6726)
This commit is contained in:
@@ -1,23 +0,0 @@
|
||||
From 294c0b700326ab24d1a793e81338a93aebb2e69e Mon Sep 17 00:00:00 2001
|
||||
From: Adrien Destugues <pulkomandy@pulkomandy.tk>
|
||||
Date: Sat, 13 Sep 2014 18:02:16 +0200
|
||||
Subject: gcc2 fix.
|
||||
|
||||
|
||||
diff --git a/frontend/frontend.c b/frontend/frontend.c
|
||||
index f722955..3cdbf6c 100644
|
||||
--- a/frontend/frontend.c
|
||||
+++ b/frontend/frontend.c
|
||||
@@ -736,8 +736,8 @@ int main(int argc, char **argv)
|
||||
//
|
||||
mp2fill_size = twolame_encode_flush(encopts, mp2buffer, MP2_BUF_SIZE);
|
||||
if (mp2fill_size > 0) {
|
||||
- frame_count++;
|
||||
int bytes_out = fwrite(mp2buffer, sizeof(unsigned char), mp2fill_size, outputfile);
|
||||
+ frame_count++;
|
||||
if (bytes_out <= 0) {
|
||||
perror("error while writing to output file");
|
||||
exit(ERR_WRITING_OUTPUT);
|
||||
--
|
||||
1.8.3.4
|
||||
|
||||
@@ -3,27 +3,22 @@ DESCRIPTION="TwoLAME is an optimised MPEG Audio Layer 2 (MP2) encoder based \
|
||||
on tooLAME by Mike Cheng, which in turn is based upon the ISO dist10 code and \
|
||||
portions of LAME."
|
||||
HOMEPAGE="https://www.twolame.org"
|
||||
COPYRIGHT="2004-2006 The TwoLAME Project"
|
||||
COPYRIGHT="2004-2018 The TwoLAME Project"
|
||||
LICENSE="GNU LGPL v2.1"
|
||||
REVISION="4"
|
||||
SOURCE_URI="http://downloads.sourceforge.net/twolame/twolame-0.3.13.tar.gz"
|
||||
CHECKSUM_SHA256="98f332f48951f47f23f70fd0379463aff7d7fb26f07e1e24e42ddef22cc6112a"
|
||||
PATCHES="twolame-$portVersion.patchset"
|
||||
REVISION="1"
|
||||
SOURCE_URI="https://downloads.sourceforge.net/twolame/twolame-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="cc35424f6019a88c6f52570b63e1baf50f62963a3eac52a03a800bb070d7c87d"
|
||||
|
||||
ARCHITECTURES="all"
|
||||
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
|
||||
|
||||
PROVIDES="
|
||||
twolame$secondaryArchSuffix = $portVersion compat >= 0
|
||||
cmd:twolame$secondaryArchSuffix
|
||||
lib:libtwolame$secondaryArchSuffix = 0.0.0 compat >= 0
|
||||
"
|
||||
REQUIRES="
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libFLAC$secondaryArchSuffix
|
||||
lib:libogg$secondaryArchSuffix
|
||||
lib:libsndfile$secondaryArchSuffix
|
||||
lib:libvorbis$secondaryArchSuffix
|
||||
"
|
||||
|
||||
PROVIDES_devel="
|
||||
@@ -34,12 +29,19 @@ REQUIRES_devel="
|
||||
twolame$secondaryArchSuffix == $portVersion base
|
||||
"
|
||||
|
||||
PROVIDES_bin="
|
||||
twolame${secondaryArchSuffix}_bin = $portVersion compat >= 0
|
||||
cmd:twolame$secondaryArchSuffix
|
||||
"
|
||||
REQUIRES_bin="
|
||||
twolame$secondaryArchSuffix == $portVersion base
|
||||
haiku$secondaryArchSuffix
|
||||
lib:libsndfile$secondaryArchSuffix
|
||||
"
|
||||
|
||||
BUILD_REQUIRES="
|
||||
haiku${secondaryArchSuffix}_devel
|
||||
devel:libflac$secondaryArchSuffix
|
||||
devel:libogg$secondaryArchSuffix
|
||||
devel:libsndfile$secondaryArchSuffix
|
||||
devel:libvorbis$secondaryArchSuffix
|
||||
"
|
||||
BUILD_PREREQUIRES="
|
||||
cmd:aclocal
|
||||
@@ -55,11 +57,7 @@ BUILD_PREREQUIRES="
|
||||
|
||||
BUILD()
|
||||
{
|
||||
libtoolize --force --copy --install
|
||||
aclocal
|
||||
autoconf
|
||||
autoheader
|
||||
automake --add-missing
|
||||
autoreconf -vfi
|
||||
runConfigure ./configure
|
||||
make $jobArgs
|
||||
}
|
||||
@@ -73,5 +71,11 @@ INSTALL()
|
||||
prepareInstalledDevelLib libtwolame
|
||||
fixPkgconfig
|
||||
|
||||
packageEntries bin $binDir $docDir $manDir
|
||||
packageEntries devel $developDir
|
||||
}
|
||||
|
||||
TEST()
|
||||
{
|
||||
make check
|
||||
}
|
||||
Reference in New Issue
Block a user