mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-03 05:28:53 +02:00
Rename all port folders containing '-' to use '_' instead.
* haikuporter relies on the recipe file sharing the name with the port folder
This commit is contained in:
29
media-sound/vorbis_tools/patches/vorbis-tools-1.2.0.patch
Normal file
29
media-sound/vorbis_tools/patches/vorbis-tools-1.2.0.patch
Normal file
@@ -0,0 +1,29 @@
|
||||
diff -urN vorbis-tools-1.2.0/configure.ac vorbis-tools-1.2.0-haiku/configure.ac
|
||||
--- vorbis-tools-1.2.0/configure.ac 2008-03-03 05:37:31.000000000 +0000
|
||||
+++ vorbis-tools-1.2.0-haiku/configure.ac 2009-09-15 06:49:02.000000000 +0000
|
||||
@@ -155,6 +155,7 @@
|
||||
|
||||
SOCKET_LIBS=
|
||||
AC_CHECK_LIB(socket, socket, SOCKET_LIBS="-lsocket")
|
||||
+AC_CHECK_LIB(network, socket, SOCKET_LIBS="-lnetwork")
|
||||
AC_CHECK_LIB(nsl, gethostbyname, SOCKET_LIBS="-lnsl $SOCKET_LIBS")
|
||||
|
||||
|
||||
diff -urN vorbis-tools-1.2.0/oggenc/oggenc.c vorbis-tools-1.2.0-haiku/oggenc/oggenc.c
|
||||
--- vorbis-tools-1.2.0/oggenc/oggenc.c 2008-03-03 05:37:27.000000000 +0000
|
||||
+++ vorbis-tools-1.2.0-haiku/oggenc/oggenc.c 2009-09-15 06:55:48.000000000 +0000
|
||||
@@ -262,12 +262,12 @@
|
||||
{
|
||||
/* Create a filename from existing filename, replacing extension with .ogg or .oga */
|
||||
char *start, *end;
|
||||
-
|
||||
+ char *extension = (opt.with_skeleton) ? ".oga" : ".ogg";
|
||||
start = infiles[i];
|
||||
+
|
||||
end = strrchr(infiles[i], '.');
|
||||
end = end?end:(start + strlen(infiles[i])+1);
|
||||
|
||||
- char *extension = (opt.with_skeleton) ? ".oga" : ".ogg";
|
||||
out_fn = malloc(end - start + 5);
|
||||
strncpy(out_fn, start, end-start);
|
||||
out_fn[end-start] = 0;
|
||||
20
media-sound/vorbis_tools/patches/vorbis-tools-1.4.0.patch
Normal file
20
media-sound/vorbis_tools/patches/vorbis-tools-1.4.0.patch
Normal file
@@ -0,0 +1,20 @@
|
||||
diff -urN vorbis-tools-1.4.0/vcut/vcut.c vorbis-tools-1.4.0-gcc2/vcut/vcut.c
|
||||
--- vorbis-tools-1.4.0/vcut/vcut.c 2010-03-26 07:07:07.022020096 +0000
|
||||
+++ vorbis-tools-1.4.0-gcc2/vcut/vcut.c 2010-06-05 23:51:34.494927872 +0000
|
||||
@@ -233,6 +233,7 @@
|
||||
* Returns 0 for success, or -1 on failure. */
|
||||
static int open_output_stream(vcut_state *s)
|
||||
{
|
||||
+ int rv;
|
||||
if(!s->out && !s->drop_output)
|
||||
{
|
||||
if(open_output_file(s, s->output_filename)!=0)
|
||||
@@ -240,7 +241,7 @@
|
||||
}
|
||||
|
||||
/* ogg_stream_init should only fail if stream_out is null */
|
||||
- int rv = ogg_stream_init(&s->stream_out, ++s->serial_out);
|
||||
+ rv = ogg_stream_init(&s->stream_out, ++s->serial_out);
|
||||
assert(rv == 0);
|
||||
|
||||
s->output_stream_open = 1;
|
||||
26
media-sound/vorbis_tools/vorbis-tools-1.2.0.recipe
Normal file
26
media-sound/vorbis_tools/vorbis-tools-1.2.0.recipe
Normal file
@@ -0,0 +1,26 @@
|
||||
DESCRIPTION="vorbis-tools - tools for using the Ogg Vorbis sound file format"
|
||||
HOMEPAGE="http://www.vorbis.com/"
|
||||
SRC_URI="http://downloads.xiph.org/releases/vorbis/vorbis-tools-1.2.0.tar.gz"
|
||||
CHECKSUM_MD5="df976d24e51ef3d87cd462edf747bf9a"
|
||||
REVISION="1"
|
||||
STATUS_HAIKU="untested"
|
||||
DEPEND=""
|
||||
BUILD()
|
||||
{
|
||||
cd vorbis-tools-1.2.0
|
||||
libtoolize --force --copy --install
|
||||
aclocal -I m4
|
||||
automake
|
||||
autoconf
|
||||
./configure --prefix=`finddir B_COMMON_DIRECTORY`
|
||||
make
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
cd vorbis-tools-1.2.0
|
||||
make install
|
||||
}
|
||||
|
||||
LICENSE="GNU GPL v2"
|
||||
COPYRIGHT="2000-2005 Michael Smith, Stan Seibert and other contributers"
|
||||
32
media-sound/vorbis_tools/vorbis-tools-1.4.0.recipe
Normal file
32
media-sound/vorbis_tools/vorbis-tools-1.4.0.recipe
Normal file
@@ -0,0 +1,32 @@
|
||||
DESCRIPTION="vorbis-tools - tools for using the Ogg Vorbis sound file format"
|
||||
HOMEPAGE="http://www.vorbis.com/"
|
||||
SRC_URI="http://downloads.xiph.org/releases/vorbis/vorbis-tools-1.4.0.tar.gz"
|
||||
CHECKSUM_MD5="567e0fb8d321b2cd7124f8208b8b90e6"
|
||||
REVISION="1"
|
||||
STATUS_HAIKU="stable"
|
||||
DEPEND="media-libs/libvorbis >= 1.3.1
|
||||
media-libs/flac >= 1.2.1
|
||||
media-libs/libao >= 1.0.0
|
||||
media-libs/speex >1.2"
|
||||
BUILD()
|
||||
{
|
||||
cd vorbis-tools-1.4.0
|
||||
libtoolize --force --copy --install
|
||||
aclocal -I m4
|
||||
automake
|
||||
autoconf
|
||||
COMMON_DOCS=`finddir B_COMMON_DOCUMENTATION_DIRECTORY`
|
||||
./configure --prefix=`finddir B_COMMON_DIRECTORY` \
|
||||
--datarootdir=`finddir B_COMMON_DATA_DIRECTORY` \
|
||||
--mandir=$COMMON_DOCS/man
|
||||
make
|
||||
}
|
||||
|
||||
INSTALL()
|
||||
{
|
||||
cd vorbis-tools-1.4.0
|
||||
make install
|
||||
}
|
||||
|
||||
LICENSE="GNU GPL v2"
|
||||
COPYRIGHT="2000-2008 Michael Smith, Stan Seibert and other contributers"
|
||||
Reference in New Issue
Block a user