aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorbeenje <beenje@svn>2010-06-20 13:29:57 +0000
committerbeenje <beenje@svn>2010-06-20 13:29:57 +0000
commit43cb1030feca8e613ab3267de033f3a6ef1f1a01 (patch)
tree2b286371bd6fcae5a82017503c3f69d1dbf97987 /lib
parent66b70498ce463229a64327a2a645c349e71bcc36 (diff)
[osx] fixed librtmp ppc build
git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@31250 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
Diffstat (limited to 'lib')
-rw-r--r--lib/librtmp/Makefile11
1 files changed, 8 insertions, 3 deletions
diff --git a/lib/librtmp/Makefile b/lib/librtmp/Makefile
index 3c71112cef..e6f1065f88 100644
--- a/lib/librtmp/Makefile
+++ b/lib/librtmp/Makefile
@@ -4,8 +4,7 @@
# A quick and dirty Makefile to download/build and install librtmp
#
# Darwin: librtmp is built as an .so on OSX for the ability to unload it.
-# 10.4u.sdk is targeted so we can run on the AppleTV. This might
-# break under OSX ppc and need some build love. Macports is assumed to
+# 10.4u.sdk is targeted so we can run on the AppleTV. Macports is assumed to
# be used and the required lib depends installed.
#
# Linux: builds a simple.so without the proper .so version symlinks,
@@ -21,11 +20,17 @@ RTMPDUMP_VERS = 511
OSTYPE = $(shell uname)
ifeq ($(OSTYPE),Darwin)
+MACHINE = $(shell uname -m)
+ifeq ($(findstring Power,$(MACHINE)), Power)
+ arch = ppc
+else
+ arch = i386
+endif
PREFIX=/opt/local
XCFLAGS=-mmacosx-version-min=10.4 -isysroot /Developer/SDKs/MacOSX10.4u.sdk \
-fPIC -I /opt/local/include
XLDFLAGS=-mmacosx-version-min=10.4 -isysroot /Developer/SDKs/MacOSX10.4u.sdk \
- -bundle -flat_namespace -undefined suppress -arch i386 -L/opt/local/lib \
+ -bundle -flat_namespace -undefined suppress -arch $(arch) -L/opt/local/lib \
-lpthread -lssl -lcrypto -lz
else
PREFIX=/usr/local