[vlc-devel] commit: contribs: fixed compilation on Snow Leopard, as Apple refuses to ship libiconv.la within /usr/lib any longer ( Felix Paul Kühne )
git version control
git at videolan.org
Thu Sep 3 16:26:36 CEST 2009
vlc | branch: 1.0-bugfix | Felix Paul Kühne <fkuehne at videolan.org> | Mon Aug 31 01:51:29 2009 +0200| [7a7b31774d361d4047a9f0f52828633eae504295] | committer: Felix Paul Kühne
contribs: fixed compilation on Snow Leopard, as Apple refuses to ship libiconv.la within /usr/lib any longer
'It is intended to not include the .la files in Mac OS X. These are not required.'
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7a7b31774d361d4047a9f0f52828633eae504295
---
extras/contrib/src/Makefile | 12 ++++++++++++
extras/contrib/src/packages.mak | 1 +
2 files changed, 13 insertions(+), 0 deletions(-)
diff --git a/extras/contrib/src/Makefile b/extras/contrib/src/Makefile
index 5652b6f..f6a099b 100644
--- a/extras/contrib/src/Makefile
+++ b/extras/contrib/src/Makefile
@@ -461,9 +461,21 @@ ifdef HAVE_DARWIN_OS
endif
patch -p0 < Patches/libiconv-autoconf-uclibc.patch
+libiconv-snowleopard.tar.bz2:
+ $(WGET) $(LIBICONVMAC_URL)
+
+libiconv-snowleopard: libiconv-snowleopard.tar.bz2
+ $(EXTRACT_BZ2)
+
ifdef HAVE_DARWIN_OS
+ifdef HAVE_DARWIN_64
+.iconv: libiconv-snowleopard
+ (cd libiconv-snowleopard && cp libiconv.* ../../lib/)
+ touch $@
+else
.iconv:
touch $@
+endif
else
.iconv: libiconv
(cd libiconv; $(HOSTCC) ./configure $(HOSTCONF) --prefix=$(PREFIX) --disable-nls && make && make install)
diff --git a/extras/contrib/src/packages.mak b/extras/contrib/src/packages.mak
index 4e41bf8..e0b2568 100644
--- a/extras/contrib/src/packages.mak
+++ b/extras/contrib/src/packages.mak
@@ -49,6 +49,7 @@ PKGCFG_URL=$(VIDEOLAN)/testing/contrib/pkg-config-$(PKGCFG_VERSION).tar.gz
#PKGCFG_URL=http://pkgconfig.freedesktop.org/releases/pkg-config-$(PKGCFG_VERSION).tar.gz
LIBICONV_VERSION=1.9.2
LIBICONV_URL=$(GNU)/libiconv/libiconv-$(LIBICONV_VERSION).tar.gz
+LIBICONVMAC_URL=$(VIDEOLAN)/testing/contrib/libiconv-snowleopard.tar.bz2
GETTEXT_VERSION=0.17
GETTEXT_URL=$(GNU)/gettext/gettext-$(GETTEXT_VERSION).tar.gz
FONTCONFIG_VERSION=2.6.0
More information about the vlc-devel
mailing list