Skip to content

Commit 47c2ad5

Browse files
committed
[osx/ios] changed. bump libvorbis to 1.2.3 to get rid of unused static warnings. drop patches and sedify them in the Makefiles
1 parent 690a54f commit 47c2ad5

7 files changed

+12
-67
lines changed

lib/DllVorbisfile.h

+4
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@
2525
#include "config.h"
2626
#endif
2727
#if defined(_LINUX) || defined(__APPLE__) || defined(WIN32)
28+
// avoid unused symbol warnings from the static callbacks
29+
// defined in vorbisfile.h on 1.2.3 and above
30+
#define OV_EXCLUDE_STATIC_CALLBACKS
31+
2832
#include <vorbis/vorbisfile.h>
2933
#include "utils/log.h"
3034
#else

tools/osx/ios-depends/libvorbis/01-libvorbis-fix-libtool-flags.patch

-17
This file was deleted.

tools/osx/ios-depends/libvorbis/02-libvorbis-only-build-lib.patch

-13
This file was deleted.

tools/osx/ios-depends/libvorbis/Makefile

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ include ../config.mk
88

99
# lib name, version
1010
LIBNAME=libvorbis
11-
VERSION=1.2.0
11+
VERSION=1.2.3
1212
SOURCE=$(LIBNAME)-$(VERSION)
1313
# download location and format
1414
BASE_URL=http://mirrors.xbmc.org/build-deps/darwin-libs
@@ -38,8 +38,8 @@ $(SOURCE): $(TARBALLS_LOCATION)/$(ARCHIVE)
3838
-rm -rf $(SOURCE)
3939
$(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
4040
echo $(SOURCE) > .gitignore
41-
cd $(SOURCE); patch -p1 < ../01-libvorbis-fix-libtool-flags.patch
42-
cd $(SOURCE); patch -p1 < ../02-libvorbis-only-build-lib.patch
41+
sed -ie "s|DDARWIN -fno-common -force_cpusubtype_ALL|DARWIN_NO_CARBON -fno-common -noforce_cpusubtype_ALL|" "$(SOURCE)/configure"
42+
sed -ie "s|SUBDIRS = m4 include vq lib examples test doc|SUBDIRS = m4 include lib|" "$(SOURCE)/Makefile.in"
4343
cd $(SOURCE); $(CONFIGURE)
4444

4545
$(LIBDYLIB): $(SOURCE)

tools/osx/osx-depends/libvorbis/01-libvorbis-fix-libtool-flags.patch

-17
This file was deleted.

tools/osx/osx-depends/libvorbis/02-libvorbis-only-build-lib.patch

-13
This file was deleted.

tools/osx/osx-depends/libvorbis/Makefile

+5-4
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@ include ../config.mk
88

99
# lib name, version
1010
LIBNAME=libvorbis
11-
VERSION=1.2.0
11+
VERSION=1.2.3
1212
SOURCE=$(LIBNAME)-$(VERSION)
1313
# download location and format
14-
BASE_URL=http://mirrors.xbmc.org/build-deps/darwin-libs
14+
#BASE_URL=http://mirrors.xbmc.org/build-deps/darwin-libs
15+
BASE_URL=http://downloads.xiph.org/releases/vorbis
1516
ARCHIVE=$(SOURCE).tar.gz
1617
TARBALLS_LOCATION=/Users/Shared/xbmc-depends/tarballs
1718
RETRIEVE_TOOL=/usr/bin/curl
@@ -35,8 +36,8 @@ $(SOURCE): $(TARBALLS_LOCATION)/$(ARCHIVE)
3536
-rm -rf $(SOURCE)
3637
$(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE)
3738
echo $(SOURCE) > .gitignore
38-
cd $(SOURCE); patch -p1 < ../01-libvorbis-fix-libtool-flags.patch
39-
cd $(SOURCE); patch -p1 < ../02-libvorbis-only-build-lib.patch
39+
sed -ie "s|DDARWIN -fno-common -force_cpusubtype_ALL|DARWIN_NO_CARBON -fno-common -noforce_cpusubtype_ALL|" "$(SOURCE)/configure"
40+
sed -ie "s|SUBDIRS = m4 include vq lib examples test doc|SUBDIRS = m4 include lib|" "$(SOURCE)/Makefile.in"
4041
cd $(SOURCE); $(CONFIGURE)
4142

4243
$(LIBDYLIB): $(SOURCE)

0 commit comments

Comments
 (0)