Commit 24d400df authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

contrib: Replace darwin->macosx.

parent 635efb62
...@@ -220,29 +220,18 @@ case $TARGET in ...@@ -220,29 +220,18 @@ case $TARGET in
LD="ld -arch ppc -syslibroot \${MACOSX_SDK} -mmacosx-version-min=\${SDK_TARGET}" LD="ld -arch ppc -syslibroot \${MACOSX_SDK} -mmacosx-version-min=\${SDK_TARGET}"
;; ;;
i686-apple-darwin*) i686-apple-darwin*)
hint_distro darwin hint_distro macosx32
HAVE_DARWIN_32=1 HAVE_DARWIN_32=1
CFLAGS_TUNING=" -march=prescott -mtune=generic -arch i386 -m32" CFLAGS_TUNING=" -march=prescott -mtune=generic -arch i386 -m32"
EXTRA_LDFLAGS=" -arch i386" EXTRA_LDFLAGS=" -arch i386"
add_enabled_makefile_cfg "HAVE_DARWIN_OS_ON_INTEL"
if test $TARGET = "i686-apple-darwin10"; then
add_enabled_makefile_cfg "HAVE_DARWIN_10"
fi
;; ;;
x86_64-apple-darwin*) x86_64-apple-darwin*)
hint_distro darwin64 hint_distro macosx64
HAVE_DARWIN_64=1 HAVE_DARWIN_64=1
CFLAGS_TUNING=" -march=core2 -mtune=core2 -m64 -arch x86_64" CFLAGS_TUNING=" -march=core2 -mtune=core2 -m64 -arch x86_64"
EXTRA_LDFLAGS=" -arch x86_64" EXTRA_LDFLAGS=" -arch x86_64"
add_enabled_makefile_cfg "HAVE_DARWIN_OS_ON_INTEL"
add_makefile_cfg "PATH = /bin:/usr/bin:/usr/local/bin"
if test $TARGET = "x86_64-apple-darwin10"; then
add_enabled_makefile_cfg "HAVE_DARWIN_10"
fi
;; ;;
*mingw32ce) *mingw32ce)
EXTRA_CPPFLAGS=" -D_WIN32_WCE=0x0500" EXTRA_CPPFLAGS=" -D_WIN32_WCE=0x0500"
...@@ -338,9 +327,9 @@ case "$DISTRO" in ...@@ -338,9 +327,9 @@ case "$DISTRO" in
fi fi
add_makefile_cfg "IOS_SDK_ROOT = ${IOS_SDK_ROOT}" add_makefile_cfg "IOS_SDK_ROOT = ${IOS_SDK_ROOT}"
;; ;;
darwin*) macosx*)
SDK_TARGET=10.5 SDK_TARGET=10.5
HAVE_DARWIN_9=1 HAVE_MACOSX_DARWIN_9=1
EXTRA_LDFLAGS="${EXTRA_LDFLAGS} -isysroot \${MACOSX_SDK} -Wl,-syslibroot,\${MACOSX_SDK} -mmacosx-version-min=\${SDK_TARGET}" EXTRA_LDFLAGS="${EXTRA_LDFLAGS} -isysroot \${MACOSX_SDK} -Wl,-syslibroot,\${MACOSX_SDK} -mmacosx-version-min=\${SDK_TARGET}"
EXTRA_CFLAGS="${EXTRA_CFLAGS} -D\${ENVP} -isysroot \${MACOSX_SDK} -mmacosx-version-min=\${SDK_TARGET}" EXTRA_CFLAGS="${EXTRA_CFLAGS} -D\${ENVP} -isysroot \${MACOSX_SDK} -mmacosx-version-min=\${SDK_TARGET}"
CC="/usr/bin/gcc-4.2" CC="/usr/bin/gcc-4.2"
...@@ -350,6 +339,12 @@ case "$DISTRO" in ...@@ -350,6 +339,12 @@ case "$DISTRO" in
add_makefile_cfg "ENVP = MACOSX_DEPLOYMENT_TARGET=${SDK_TARGET}" add_makefile_cfg "ENVP = MACOSX_DEPLOYMENT_TARGET=${SDK_TARGET}"
add_makefile_cfg "MACOSX_SDK = /Developer/SDKs/MacOSX${SDK_TARGET}.sdk" add_makefile_cfg "MACOSX_SDK = /Developer/SDKs/MacOSX${SDK_TARGET}.sdk"
case $TARGET in
x86_64*|i686*) add_enabled_makefile_cfg "HAVE_MACOSX_ON_INTEL" ;;
*darwin10) add_enabled_makefile_cfg "HAVE_MACOSX_DARWIN_10" ;;
*darwin9) add_enabled_makefile_cfg "HAVE_MACOSX_DARWIN_9" ;;
esac
if ! test -e /Developer/SDKs; then if ! test -e /Developer/SDKs; then
error "Your Developer Tools' SDKs were not found.\nYou need to add extra symbolic links to /Developer to achieve correctly\nbuilt contribs.\nHave a look at the OSX-Compile-HOWTO for details." >&2 error "Your Developer Tools' SDKs were not found.\nYou need to add extra symbolic links to /Developer to achieve correctly\nbuilt contribs.\nHave a look at the OSX-Compile-HOWTO for details." >&2
exit 1 exit 1
...@@ -431,15 +426,14 @@ if test -z "$CONTRIBS_RELEASE"; then ...@@ -431,15 +426,14 @@ if test -z "$CONTRIBS_RELEASE"; then
info "*****************************************************************" info "*****************************************************************"
fi fi
if test $HAVE_DARWIN_9; then if test $HAVE_MACOSX_DARWIN_9; then
add_enabled_makefile_cfg "HAVE_DARWIN_9" add_enabled_makefile_cfg "HAVE_MACOSX_DARWIN_9"
if ! /usr/bin/gcc-4.2 --version>/dev/null 2>&1; then if ! /usr/bin/gcc-4.2 --version>/dev/null 2>&1; then
error "You do not have GCC-4.2 installed in /usr/bin, compilation WILL FAIL." error "You do not have GCC-4.2 installed in /usr/bin, compilation WILL FAIL."
fi fi
fi fi
if test $HAVE_DARWIN_32; then if test "$DISTRO" = "macosx32"; then
add_enabled_makefile_cfg "HAVE_DARWIN_32"
info "*****************************************************************" info "*****************************************************************"
info "* VLC will be compiled in 32bit mode. *" info "* VLC will be compiled in 32bit mode. *"
info "* *" info "* *"
...@@ -450,8 +444,7 @@ if test $HAVE_DARWIN_32; then ...@@ -450,8 +444,7 @@ if test $HAVE_DARWIN_32; then
info "*****************************************************************" info "*****************************************************************"
fi fi
if test $HAVE_DARWIN_64; then if test "$DISTRO" = "macosx64"; then
add_enabled_makefile_cfg "HAVE_DARWIN_64"
info info
info "*****************************************************************" info "*****************************************************************"
info "* VLC will be compiled in 64bit mode using the 10.5 SDK. *" info "* VLC will be compiled in 64bit mode using the 10.5 SDK. *"
......
...@@ -45,7 +45,7 @@ export CPPFLAGS = -I$(PREFIX)/include $(EXTRA_CFLAGS) $(EXTRA_CPPFLAGS) ...@@ -45,7 +45,7 @@ export CPPFLAGS = -I$(PREFIX)/include $(EXTRA_CFLAGS) $(EXTRA_CPPFLAGS)
export CXXFLAGS = -I$(PREFIX)/include $(EXTRA_CFLAGS) $(EXTRA_CPPFLAGS) export CXXFLAGS = -I$(PREFIX)/include $(EXTRA_CFLAGS) $(EXTRA_CPPFLAGS)
export LDFLAGS = -L$(PREFIX)/lib $(EXTRA_LDFLAGS) export LDFLAGS = -L$(PREFIX)/lib $(EXTRA_LDFLAGS)
export ACLOCAL = aclocal -I$(PREFIX)/share/aclocal export ACLOCAL = aclocal -I$(PREFIX)/share/aclocal
ifdef HAVE_DARWIN_OS ifdef HAVE_MACOSX
export CC export CC
export CXX export CXX
export LD export LD
...@@ -148,26 +148,26 @@ endif ...@@ -148,26 +148,26 @@ endif
endif endif
endif endif
ifdef HAVE_DARWIN_OS_ON_INTEL ifdef HAVE_MACOSX_ON_INTEL
FFMPEGCONF += --enable-memalign-hack FFMPEGCONF += --enable-memalign-hack
endif endif
ifdef HAVE_DARWIN_OS ifdef HAVE_MACOSX
X264CONF=--host=$(HOST) X264CONF=--host=$(HOST)
X264CONF += --enable-pic X264CONF += --enable-pic
ifdef HAVE_DARWIN_32 ifdef HAVE_MACOSX32
FFMPEGCONF += --enable-libvpx FFMPEGCONF += --enable-libvpx
FFMPEGCONF += --cc=gcc-4.0 FFMPEGCONF += --cc=gcc-4.0
else else
FFMPEGCONF += --cc=$(CC) FFMPEGCONF += --cc=$(CC)
endif endif
FFMPEGCONF += --arch=$(ARCH) FFMPEGCONF += --arch=$(ARCH)
ifdef HAVE_DARWIN_64 ifdef HAVE_MACOSX64
FFMPEGCONF += --enable-libvpx FFMPEGCONF += --enable-libvpx
FFMPEGCONF += --cpu=core2 FFMPEGCONF += --cpu=core2
X264CONF+=--host=x86_64-apple-darwin10 X264CONF+=--host=x86_64-apple-MACOSX10
endif endif
ifdef HAVE_DARWIN_OS_ON_INTEL ifdef HAVE_MACOSX_ON_INTEL
FFMPEG_CFLAGS += -DHAVE_LRINTF FFMPEG_CFLAGS += -DHAVE_LRINTF
endif endif
endif endif
...@@ -280,7 +280,7 @@ CLEAN_PKG += cmake ...@@ -280,7 +280,7 @@ CLEAN_PKG += cmake
# libtool # libtool
# *************************************************************************** # ***************************************************************************
ifdef HAVE_DARWIN_OS ifdef HAVE_MACOSX
libtool-$(LIBTOOL_VERSION).tar.gz: libtool-$(LIBTOOL_VERSION).tar.gz:
$(WGET) $(LIBTOOL_URL) $(WGET) $(LIBTOOL_URL)
...@@ -359,7 +359,7 @@ gettext-$(GETTEXT_VERSION).tar.gz: ...@@ -359,7 +359,7 @@ gettext-$(GETTEXT_VERSION).tar.gz:
gettext: gettext-$(GETTEXT_VERSION).tar.gz gettext: gettext-$(GETTEXT_VERSION).tar.gz
$(EXTRACT_GZ) $(EXTRACT_GZ)
ifdef HAVE_DARWIN_OS ifdef HAVE_MACOSX
patch -p0 < Patches/gettext-macosx.patch patch -p0 < Patches/gettext-macosx.patch
endif endif
...@@ -415,8 +415,8 @@ libiconv-snowleopard.tar.bz2: ...@@ -415,8 +415,8 @@ libiconv-snowleopard.tar.bz2:
libiconv-snowleopard: libiconv-snowleopard.tar.bz2 libiconv-snowleopard: libiconv-snowleopard.tar.bz2
$(EXTRACT_BZ2) $(EXTRACT_BZ2)
ifdef HAVE_DARWIN_OS ifdef HAVE_MACOSX
ifdef HAVE_DARWIN_10 ifdef HAVE_MACOSX_DARWIN_10
.iconv: libiconv-snowleopard .iconv: libiconv-snowleopard
(cd libiconv-snowleopard && cp libiconv.* $(PREFIX)/lib/) (cd libiconv-snowleopard && cp libiconv.* $(PREFIX)/lib/)
touch $@ touch $@
...@@ -460,7 +460,7 @@ ifdef HAVE_WIN32 ...@@ -460,7 +460,7 @@ ifdef HAVE_WIN32
(cd $<; $(HOSTCC) ./configure $(HOSTCONF) --with-arch=i686 --prefix=$(PREFIX) --with-freetype-config=$(PREFIX)/bin/freetype-config --disable-libxml2 --disable-docs && make && make install) (cd $<; $(HOSTCC) ./configure $(HOSTCONF) --with-arch=i686 --prefix=$(PREFIX) --with-freetype-config=$(PREFIX)/bin/freetype-config --disable-libxml2 --disable-docs && make && make install)
endif endif
else else
ifdef HAVE_DARWIN_OS ifdef HAVE_MACOSX
(cd $<; $(HOSTCC) LIBXML2_CFLAGS=`xml2-config --cflags` LIBXML2_LIBS=`xml2-config --libs` ./configure $(HOSTCONF) --with-cache-dir=/usr/X11/var/cache/fontconfig --with-confdir=/usr/X11/lib/X11/fonts --with-default-fonts=/System/Library/Fonts --with-add-fonts=/Library/Fonts,~/Library/Fonts --prefix=$(PREFIX) --with-freetype-config=$(PREFIX)/bin/freetype-config --with-arch=$(ARCH) --enable-libxml2 --disable-docs && make && make install-exec && (cd fontconfig ; make install-data) && cp fontconfig.pc $(PKG_CONFIG_LIBDIR)) (cd $<; $(HOSTCC) LIBXML2_CFLAGS=`xml2-config --cflags` LIBXML2_LIBS=`xml2-config --libs` ./configure $(HOSTCONF) --with-cache-dir=/usr/X11/var/cache/fontconfig --with-confdir=/usr/X11/lib/X11/fonts --with-default-fonts=/System/Library/Fonts --with-add-fonts=/Library/Fonts,~/Library/Fonts --prefix=$(PREFIX) --with-freetype-config=$(PREFIX)/bin/freetype-config --with-arch=$(ARCH) --enable-libxml2 --disable-docs && make && make install-exec && (cd fontconfig ; make install-data) && cp fontconfig.pc $(PKG_CONFIG_LIBDIR))
else else
(cd $<; $(HOSTCC) LIBXML2_CFLAGS=`$(PREFIX)/bin/xml2-config --cflags` ./configure $(HOSTCONF) --prefix=$(PREFIX) --with-freetype-config=$(PREFIX)/bin/freetype-config --enable-libxml2 --disable-docs && make && make install) (cd $<; $(HOSTCC) LIBXML2_CFLAGS=`$(PREFIX)/bin/xml2-config --cflags` ./configure $(HOSTCONF) --prefix=$(PREFIX) --with-freetype-config=$(PREFIX)/bin/freetype-config --enable-libxml2 --disable-docs && make && make install)
...@@ -583,7 +583,7 @@ DISTCLEAN_PKG += pcre-$(PCRE_VERSION).tar.bz2 ...@@ -583,7 +583,7 @@ DISTCLEAN_PKG += pcre-$(PCRE_VERSION).tar.bz2
ifdef HAVE_WIN32 ifdef HAVE_WIN32
LUA_MAKEPLATEFORM=mingw LUA_MAKEPLATEFORM=mingw
else else
ifdef HAVE_DARWIN_OS ifdef HAVE_MACOSX
LUA_MAKEPLATEFORM=macosx LUA_MAKEPLATEFORM=macosx
else else
ifdef HAVE_LINUX ifdef HAVE_LINUX
...@@ -603,7 +603,7 @@ lua-$(LUA_VERSION).tar.gz: ...@@ -603,7 +603,7 @@ lua-$(LUA_VERSION).tar.gz:
lua: lua-$(LUA_VERSION).tar.gz lua: lua-$(LUA_VERSION).tar.gz
$(EXTRACT_GZ) $(EXTRACT_GZ)
ifdef HAVE_DARWIN_OS ifdef HAVE_MACOSX
(cd $@; sed -e 's%gcc%$(CC)%' -e 's%LDFLAGS=%LDFLAGS=$(EXTRA_CFLAGS) $(EXTRA_LDFLAGS)%' -i.orig src/Makefile) (cd $@; sed -e 's%gcc%$(CC)%' -e 's%LDFLAGS=%LDFLAGS=$(EXTRA_CFLAGS) $(EXTRA_LDFLAGS)%' -i.orig src/Makefile)
endif endif
...@@ -631,7 +631,7 @@ libmad-$(LIBMAD_VERSION).tar.gz: ...@@ -631,7 +631,7 @@ libmad-$(LIBMAD_VERSION).tar.gz:
libmad: libmad-$(LIBMAD_VERSION).tar.gz libmad: libmad-$(LIBMAD_VERSION).tar.gz
$(EXTRACT_GZ) $(EXTRACT_GZ)
ifdef HAVE_DARWIN_OS ifdef HAVE_MACOSX
( cd $@; sed -e 's%-march=i486%$(EXTRA_CFLAGS) $(EXTRA_LDFLAGS)%' -e 's%-dynamiclib%-dynamiclib -arch $(ARCH)%' -i.orig configure ) ( cd $@; sed -e 's%-march=i486%$(EXTRA_CFLAGS) $(EXTRA_LDFLAGS)%' -e 's%-dynamiclib%-dynamiclib -arch $(ARCH)%' -i.orig configure )
endif endif
...@@ -743,7 +743,7 @@ endif ...@@ -743,7 +743,7 @@ endif
THEORACONF = --disable-sdltest --disable-oggtest --disable-vorbistest --disable-examples THEORACONF = --disable-sdltest --disable-oggtest --disable-vorbistest --disable-examples
ifdef HAVE_DARWIN_64 ifdef HAVE_MACOSX64
THEORACONF += --disable-asm THEORACONF += --disable-asm
endif endif
ifdef HAVE_WIN64 ifdef HAVE_WIN64
...@@ -751,7 +751,7 @@ THEORACONF += --disable-asm ...@@ -751,7 +751,7 @@ THEORACONF += --disable-asm
endif endif
.theora: libtheora .ogg .theora: libtheora .ogg
ifdef HAVE_DARWIN_OS ifdef HAVE_MACOSX
cd $<; ($(HOSTCC) ./configure $(HOSTCONF) --prefix=$(PREFIX) $(THEORACONF) && make && make install) cd $<; ($(HOSTCC) ./configure $(HOSTCONF) --prefix=$(PREFIX) $(THEORACONF) && make && make install)
else else
ifdef HAVE_WIN32 ifdef HAVE_WIN32
...@@ -805,14 +805,14 @@ flac: flac-$(FLAC_VERSION).tar.gz ...@@ -805,14 +805,14 @@ flac: flac-$(FLAC_VERSION).tar.gz
ifdef HAVE_WIN32 ifdef HAVE_WIN32
patch -p0 < Patches/flac-win32.patch patch -p0 < Patches/flac-win32.patch
endif endif
ifdef HAVE_DARWIN_OS ifdef HAVE_MACOSX
( cd $@; sed -e 's%-dynamiclib%-dynamiclib -arch $(ARCH)%' -i.orig configure ) ( cd $@; sed -e 's%-dynamiclib%-dynamiclib -arch $(ARCH)%' -i.orig configure )
endif endif
FLAC_DISABLE_FLAGS = --disable-oggtest --disable-xmms-plugin --disable-cpplibs FLAC_DISABLE_FLAGS = --disable-oggtest --disable-xmms-plugin --disable-cpplibs
.flac: flac .ogg .flac: flac .ogg
ifdef HAVE_DARWIN_OS_ON_INTEL ifdef HAVE_MACOSX_ON_INTEL
cd $< && \ cd $< && \
$(HOSTCC) ./configure $(HOSTCONF) --prefix=$(PREFIX) --disable-asm-optimizations $(FLAC_DISABLE_FLAGS) $(HOSTCC) ./configure $(HOSTCONF) --prefix=$(PREFIX) --disable-asm-optimizations $(FLAC_DISABLE_FLAGS)
else else
...@@ -933,14 +933,14 @@ ifdef HAVE_WIN32 ...@@ -933,14 +933,14 @@ ifdef HAVE_WIN32
VPX_TARGET=x86-win32-gcc VPX_TARGET=x86-win32-gcc
CROSS=$(HOST)- CROSS=$(HOST)-
else else
ifdef HAVE_DARWIN_OS ifdef HAVE_MACOSX
ifdef HAVE_DARWIN_64 ifdef HAVE_MACOSX64
VPX_TARGET=x86_64-darwin9-gcc VPX_TARGET=x86_64-MACOSX9-gcc
else else
ifdef HAVE_DARWIN_OS_ON_INTEL ifdef HAVE_MACOSX_ON_INTEL
VPX_TARGET=x86-darwin9-gcc VPX_TARGET=x86-MACOSX9-gcc
else else
VPX_TARGET=ppc32-darwin9-gcc VPX_TARGET=ppc32-MACOSX9-gcc
endif endif
endif endif
else else
...@@ -948,7 +948,7 @@ VPX_TARGET=FIXME ...@@ -948,7 +948,7 @@ VPX_TARGET=FIXME
endif endif
endif endif
ifdef HAVE_DARWIN_OS_ON_INTEL ifdef HAVE_MACOSX_ON_INTEL
.libvpx: libvpx .yasm .libvpx: libvpx .yasm
else else
.libvpx: libvpx .libvpx: libvpx
...@@ -1074,7 +1074,7 @@ ifdef HAVE_WIN32 ...@@ -1074,7 +1074,7 @@ ifdef HAVE_WIN32
FFMPEGCONF += --disable-bzlib --disable-decoder=dca --disable-encoder=vorbis --enable-libmp3lame --enable-w32threads --enable-dxva2 --disable-bsfs --enable-libvpx FFMPEGCONF += --disable-bzlib --disable-decoder=dca --disable-encoder=vorbis --enable-libmp3lame --enable-w32threads --enable-dxva2 --disable-bsfs --enable-libvpx
else else
ifdef HAVE_IOS ifdef HAVE_IOS
FFMPEGCONF += --target-os=darwin --sysroot=${IOS_SDK_ROOT} FFMPEGCONF += --target-os=MACOSX --sysroot=${IOS_SDK_ROOT}
ifeq ($(ARCH),arm) ifeq ($(ARCH),arm)
FFMPEGCONF += --disable-runtime-cpudetect --enable-neon --cpu=cortex-a8 FFMPEGCONF += --disable-runtime-cpudetect --enable-neon --cpu=cortex-a8
else else
...@@ -1273,7 +1273,7 @@ ifdef HAVE_WINCE ...@@ -1273,7 +1273,7 @@ ifdef HAVE_WINCE
(cd $<; sed -e 's/-lws2_32/-lws2/g' -i.orig config.mingw) (cd $<; sed -e 's/-lws2_32/-lws2/g' -i.orig config.mingw)
(cd $<;./genMakefiles mingw && make $(HOSTCC)) (cd $<;./genMakefiles mingw && make $(HOSTCC))
else else
ifdef HAVE_DARWIN_OS ifdef HAVE_MACOSX
(cd $<; sed -e 's%-DBSD=1%-DBSD=1\ $(EXTRA_CFLAGS)\ $(EXTRA_LDFLAGS)%' -e 's%cc%$(CC)%' -e 's%c++%$(CXX)\ $(EXTRA_LDFLAGS)%' -i.orig config.macosx) (cd $<; sed -e 's%-DBSD=1%-DBSD=1\ $(EXTRA_CFLAGS)\ $(EXTRA_LDFLAGS)%' -e 's%cc%$(CC)%' -e 's%c++%$(CXX)\ $(EXTRA_LDFLAGS)%' -i.orig config.macosx)
(cd $<; ./genMakefiles macosx && make) (cd $<; ./genMakefiles macosx && make)
else else
...@@ -1326,7 +1326,7 @@ else ...@@ -1326,7 +1326,7 @@ else
endif endif
patch -p0 < Patches/goom2k4-0-memleaks.patch patch -p0 < Patches/goom2k4-0-memleaks.patch
patch -p0 < Patches/goom2k4-autotools.patch patch -p0 < Patches/goom2k4-autotools.patch
ifdef HAVE_DARWIN ifdef HAVE_MACOSX
patch -p0 < Patches/goom2k4-osx.patch patch -p0 < Patches/goom2k4-osx.patch
endif endif
(cd $@; rm -f configure; autoreconf -ivf) (cd $@; rm -f configure; autoreconf -ivf)
...@@ -1348,7 +1348,7 @@ libcaca-$(LIBCACA_VERSION).tar.gz: ...@@ -1348,7 +1348,7 @@ libcaca-$(LIBCACA_VERSION).tar.gz:
libcaca: libcaca-$(LIBCACA_VERSION).tar.gz libcaca: libcaca-$(LIBCACA_VERSION).tar.gz
$(EXTRACT_GZ) $(EXTRACT_GZ)
ifdef HAVE_DARWIN_OS ifdef HAVE_MACOSX
patch -p0 < Patches/libcaca-osx-sdkofourchoice.patch patch -p0 < Patches/libcaca-osx-sdkofourchoice.patch
(cd $@; sed -e 's%/Developer/SDKs/MacOSX10.4u.sdk%$(MACOSX_SDK)%' -i.orig configure) (cd $@; sed -e 's%/Developer/SDKs/MacOSX10.4u.sdk%$(MACOSX_SDK)%' -i.orig configure)
endif endif
...@@ -1358,7 +1358,7 @@ endif ...@@ -1358,7 +1358,7 @@ endif
.caca: libcaca .caca: libcaca
ifdef HAVE_DARWIN_OS ifdef HAVE_MACOSX
(cd $<; $(HOSTCC) ./configure $(HOSTCONF) --prefix=$(PREFIX) --disable-imlib2 --disable-doc --disable-ruby --disable-csharp --disable-cxx --disable-x11 && cd caca && make && make install) (cd $<; $(HOSTCC) ./configure $(HOSTCONF) --prefix=$(PREFIX) --disable-imlib2 --disable-doc --disable-ruby --disable-csharp --disable-cxx --disable-x11 && cd caca && make && make install)
else else
(cd $<; $(HOSTCC) ./configure $(HOSTCONF) --prefix=$(PREFIX) --disable-imlib2 --disable-doc --disable-ruby --disable-csharp --disable-cxx && cd caca && make && make install) (cd $<; $(HOSTCC) ./configure $(HOSTCONF) --prefix=$(PREFIX) --disable-imlib2 --disable-doc --disable-ruby --disable-csharp --disable-cxx && cd caca && make && make install)
...@@ -1378,7 +1378,7 @@ libdca-$(LIBDCA_VERSION).tar.bz2: ...@@ -1378,7 +1378,7 @@ libdca-$(LIBDCA_VERSION).tar.bz2:
libdca: libdca-$(LIBDCA_VERSION).tar.bz2 libdca: libdca-$(LIBDCA_VERSION).tar.bz2
$(EXTRACT_BZ2) $(EXTRACT_BZ2)
ifdef HAVE_DARWIN_9 ifdef HAVE_MACOSX_DARWIN_9
( cd $@; patch -p0 < ../Patches/libdca-llvm-gcc.patch ) ( cd $@; patch -p0 < ../Patches/libdca-llvm-gcc.patch )
endif endif
...@@ -1422,7 +1422,7 @@ ifdef HAVE_WIN32 ...@@ -1422,7 +1422,7 @@ ifdef HAVE_WIN32
(cd $<; $(HOSTCC) ./configure $(X264CONF) --prefix="$(PREFIX)" && make && make install) (cd $<; $(HOSTCC) ./configure $(X264CONF) --prefix="$(PREFIX)" && make && make install)
endif endif
else else
ifdef HAVE_DARWIN_OS_ON_INTEL ifdef HAVE_MACOSX_ON_INTEL
.x264: x264 .yasm .x264: x264 .yasm
(cd $<; $(HOSTCC) ./configure $(X264CONF) --prefix="$(PREFIX)" && make && make install) (cd $<; $(HOSTCC) ./configure $(X264CONF) --prefix="$(PREFIX)" && make && make install)
else else
...@@ -1501,7 +1501,7 @@ vcdimager: vcdimager-$(VCDIMAGER_VERSION).tar.gz ...@@ -1501,7 +1501,7 @@ vcdimager: vcdimager-$(VCDIMAGER_VERSION).tar.gz
$(EXTRACT_GZ) $(EXTRACT_GZ)
.vcdimager: vcdimager .cdio .vcdimager: vcdimager .cdio
ifdef HAVE_DARWIN_OS ifdef HAVE_MACOSX
(cd $<; ./configure --prefix=$(PREFIX) --disable-shared --enable-static LDFLAGS="$(LDFLAGS) -framework CoreFoundation -framework IOKit" && make && make install) (cd $<; ./configure --prefix=$(PREFIX) --disable-shared --enable-static LDFLAGS="$(LDFLAGS) -framework CoreFoundation -framework IOKit" && make && make install)
else else
(cd $<; ./configure --prefix=$(PREFIX) --disable-shared --enable-static && make && make install) (cd $<; ./configure --prefix=$(PREFIX) --disable-shared --enable-static && make && make install)
...@@ -1522,7 +1522,7 @@ libcdio-$(CDIO_VERSION).tar.gz: ...@@ -1522,7 +1522,7 @@ libcdio-$(CDIO_VERSION).tar.gz:
libcdio: libcdio-$(CDIO_VERSION).tar.gz libcdio: libcdio-$(CDIO_VERSION).tar.gz
$(EXTRACT_GZ) $(EXTRACT_GZ)
patch -p0 < Patches/libcdio-install-cdparanoia-pc.patch patch -p0 < Patches/libcdio-install-cdparanoia-pc.patch
ifdef HAVE_DARWIN_OS ifdef HAVE_MACOSX
patch -p0 < Patches/libcdio-modernOSX.patch patch -p0 < Patches/libcdio-modernOSX.patch
endif endif
...@@ -1677,7 +1677,7 @@ XMLCONF = --with-minimal --with-catalog --with-reader --with-tree --with-push -- ...@@ -1677,7 +1677,7 @@ XMLCONF = --with-minimal --with-catalog --with-reader --with-tree --with-push --
else else
(cd xml; CFLAGS="-DLIBXML_STATIC" $(HOSTCC) ./configure $(HOSTCONF) --prefix=$(PREFIX) $(XMLCONF) && make && make install) (cd xml; CFLAGS="-DLIBXML_STATIC" $(HOSTCC) ./configure $(HOSTCONF) --prefix=$(PREFIX) $(XMLCONF) && make && make install)
endif endif
ifndef HAVE_DARWIN_OS ifndef HAVE_MACOSX
$(INSTALL_NAME) $(INSTALL_NAME)
endif endif
touch $@ touch $@
...@@ -1725,7 +1725,7 @@ endif ...@@ -1725,7 +1725,7 @@ endif
(patch -p0 < Patches/libpng-makefile.patch) (patch -p0 < Patches/libpng-makefile.patch)
.png: libpng .zlib .png: libpng .zlib
ifdef HAVE_DARWIN_OS ifdef HAVE_MACOSX
(cd $<; $(HOSTCC) ./configure $(HOSTCONF) --prefix=$(PREFIX) && make && make install) (cd $<; $(HOSTCC) ./configure $(HOSTCONF) --prefix=$(PREFIX) && make && make install)
else else
ifdef HAVE_WIN32 ifdef HAVE_WIN32
...@@ -1763,7 +1763,7 @@ ifdef HAVE_WIN32 ...@@ -1763,7 +1763,7 @@ ifdef HAVE_WIN32
else else
.zvbi: zvbi .zvbi: zvbi
endif endif
ifdef HAVE_DARWIN_OS ifdef HAVE_MACOSX
(cd $<; ./configure $(HOSTCONF) --prefix=$(PREFIX) CFLAGS="$(CFLAGS) -fnested-functions" && make && make install) (cd $<; ./configure $(HOSTCONF) --prefix=$(PREFIX) CFLAGS="$(CFLAGS) -fnested-functions" && make && make install)
else else
ifdef HAVE_WIN32 ifdef HAVE_WIN32
...@@ -1996,7 +1996,7 @@ DISTCLEAN_PKG += tiff-$(TIFF_VERSION).tar.gz ...@@ -1996,7 +1996,7 @@ DISTCLEAN_PKG += tiff-$(TIFF_VERSION).tar.gz
# LibSDL # LibSDL
# *************************************************************************** # ***************************************************************************
ifndef HAVE_DARWIN_OS ifndef HAVE_MACOSX
SDL-$(SDL_VERSION).tar.gz: SDL-$(SDL_VERSION).tar.gz:
$(WGET) $(SDL_URL) $(WGET) $(SDL_URL)
...@@ -2055,7 +2055,7 @@ ifdef HAVE_WIN32 ...@@ -2055,7 +2055,7 @@ ifdef HAVE_WIN32
else else
(cd $<; $(HOSTCC) ./configure $(HOSTCONF) --prefix=$(PREFIX) && make && make install) (cd $<; $(HOSTCC) ./configure $(HOSTCONF) --prefix=$(PREFIX) && make && make install)
endif endif
ifdef HAVE_DARWIN_OS ifdef HAVE_MACOSX
$(INSTALL_NAME) $(INSTALL_NAME)
endif endif
touch $@ touch $@
...@@ -2328,7 +2328,7 @@ orc: orc-$(ORC_VERSION).tar.gz ...@@ -2328,7 +2328,7 @@ orc: orc-$(ORC_VERSION).tar.gz
$(EXTRACT_GZ) $(EXTRACT_GZ)
.orc: orc .orc: orc
ifdef HAVE_DARWIN_OS ifdef HAVE_MACOSX
(cd $<; $(HOSTCC) ./configure $(HOSTCONF) --prefix=$(PREFIX) CFLAGS="$(CFLAGS)") (cd $<; $(HOSTCC) ./configure $(HOSTCONF) --prefix=$(PREFIX) CFLAGS="$(CFLAGS)")
else else
(cd $<; $(HOSTCC) ./configure $(HOSTCONF) --prefix=$(PREFIX)) (cd $<; $(HOSTCC) ./configure $(HOSTCONF) --prefix=$(PREFIX))
...@@ -2438,7 +2438,7 @@ gsm: gsm-$(GSM_VERSION).tar.gz ...@@ -2438,7 +2438,7 @@ gsm: gsm-$(GSM_VERSION).tar.gz
ifneq ($(HOST),$(BUILD)) ifneq ($(HOST),$(BUILD))
(patch -p0 < Patches/gsm-cross.patch) (patch -p0 < Patches/gsm-cross.patch)
endif endif
ifdef HAVE_DARWIN_OS ifdef HAVE_MACOSX
(cd $@; sed -e 's%-O2%-O2\ $(EXTRA_CFLAGS)\ $(EXTRA_LDFLAGS)%' -e 's%# LDFLAGS =%LDFLAGS = $(EXTRA_LDFLAGS)%' -e 's%gcc%$(CC)%' -i.orig Makefile) (cd $@; sed -e 's%-O2%-O2\ $(EXTRA_CFLAGS)\ $(EXTRA_LDFLAGS)%' -e 's%# LDFLAGS =%LDFLAGS = $(EXTRA_LDFLAGS)%' -e 's%gcc%$(CC)%' -i.orig Makefile)
endif endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment