Skip to content

Commit

Permalink
contrib: Remove ifdef recursion in .live target, and fix iOS build.
Browse files Browse the repository at this point in the history
  • Loading branch information
pdherbemont committed Nov 17, 2010
1 parent 50c315b commit fdaea54
Showing 1 changed file with 22 additions and 23 deletions.
45 changes: 22 additions & 23 deletions extras/contrib/src/contrib-src.mak
Original file line number Diff line number Diff line change
Expand Up @@ -1282,34 +1282,33 @@ ifndef HAVE_WINCE
endif
endif

.live: live
ifdef HAVE_WIN32
(cd $<;./genMakefiles mingw && make $(HOSTCC))
else
ifdef HAVE_WINCE
(cd $<; sed -e 's/-lws2_32/-lws2/g' -i.orig config.mingw)
(cd $<;./genMakefiles mingw && make $(HOSTCC))
else
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 $<; ./genMakefiles macosx && make)
else
(cd $<; sed -e 's/=/= EXTRA_CPPFLAGS/' -e 's%EXTRA_CPPFLAGS%-I/include%' -i.orig groupsock/Makefile.head)
ifdef HAVE_UCLIBC
ifdef HAVE_BIGENDIAN
(cd $<; ./genMakefiles armeb-uclibc && make $(HOSTCC))
endif
else
LIVE_TARGET-$(ENABLED) = linux
LIVE_TARGET-$(HAVE_WIN32) = mingw
LIVE_TARGET-$(HAVE_WINCE) = mingw
LIVE_TARGET-$(HAVE_DARWIN_OS) = macosx

ifeq ($(ARCH)$(HAVE_MAEMO),armel)
(cd $<; ./genMakefiles armlinux && make $(HOSTCC))
else
(cd $<; sed -e 's%-D_FILE_OFFSET_BITS=64%-D_FILE_OFFSET_BITS=64\ -fPIC\ -DPIC%' -i.orig config.linux)
(cd $<; ./genMakefiles linux && make $(HOSTCC))
endif
LIVE_TARGET-$(ENABLED) = armlinux
endif

ifdef HAVE_BIGENDIAN
LIVE_TARGET-$(HAVE_UCLIBC) = armeb-uclib
endif

LIVE_PATCH-$(ENABLED) =
LIVE_PATCH-$(HAVE_WINCE) = sed -e 's/-lws2_32/-lws2/g' -i.orig config.mingw
LIVE_PATCH-$(HAVE_DARWIN_OS) = 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
LIVE_PATCH-$(HAVE_LINUX) = sed -e 's/=/= EXTRA_CPPFLAGS/' -e 's%EXTRA_CPPFLAGS%-I/include%' -i.orig groupsock/Makefile.head

ifndef HAVE_UCLIBC
ifneq ($(ARCH)$(HAVE_MAEMO),armel)
LIVE_PATCH-$(HAVE_LINUX) += ; sed -e 's%-D_FILE_OFFSET_BITS=64%-D_FILE_OFFSET_BITS=64\ -fPIC\ -DPIC%' -i.orig config.linux
endif
endif

.live: live
(cd $<; $(LIVE_PATCH-1) )
(cd $<; ./genMakefiles $(LIVE_TARGET-1) && make $(HOSTCC))
mkdir -p $(PREFIX)/lib $(PREFIX)/include
cp $</groupsock/libgroupsock.a $(PREFIX)/lib
cp $</liveMedia/libliveMedia.a $(PREFIX)/lib
Expand Down

0 comments on commit fdaea54

Please sign in to comment.