aboutsummaryrefslogtreecommitdiff
path: root/lib/librtmp
diff options
context:
space:
mode:
authordavilla <davilla@svn>2010-06-17 20:33:56 +0000
committerdavilla <davilla@svn>2010-06-17 20:33:56 +0000
commite8d2e1bc231e193b2f0f076c6ae3b9d919bbb5d7 (patch)
treedad11b9c00971a420da03118595e8ed12bf7f6d7 /lib/librtmp
parente9e7990b428863b8f2daad4dc5fd2b0a320aa965 (diff)
[osx] librtmp, move osx install from /usr/local... to /opt/local...
git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@31158 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
Diffstat (limited to 'lib/librtmp')
-rw-r--r--lib/librtmp/Makefile16
1 files changed, 9 insertions, 7 deletions
diff --git a/lib/librtmp/Makefile b/lib/librtmp/Makefile
index ba6ed42eec..3c71112cef 100644
--- a/lib/librtmp/Makefile
+++ b/lib/librtmp/Makefile
@@ -21,12 +21,14 @@ RTMPDUMP_VERS = 511
OSTYPE = $(shell uname)
ifeq ($(OSTYPE),Darwin)
+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 \
-lpthread -lssl -lcrypto -lz
else
+PREFIX=/usr/local
XCFLAGS=-fPIC -DPIC
XLDFLAGS=-shared -fPIC -rdynamic -lpthread -lssl -lcrypto -lz
endif
@@ -49,12 +51,12 @@ librtmp/Makefile:
svn export --revision $(RTMPDUMP_VERS) svn://svn.mplayerhq.hu/rtmpdump/trunk/librtmp librtmp
install:
- mkdir -p /usr/local/lib
- mkdir -p /usr/local/include/librtmp
- cp -f librtmp/amf.h /usr/local/include/librtmp
- cp -f librtmp/log.h /usr/local/include/librtmp
- cp -f librtmp/rtmp.h /usr/local/include/librtmp
- cp -f librtmp.so /usr/local/lib/
+ mkdir -p $(PREFIX)/include/librtmp
+ cp -f librtmp/amf.h $(PREFIX)/include/librtmp
+ cp -f librtmp/log.h $(PREFIX)/include/librtmp
+ cp -f librtmp/http.h $(PREFIX)/include/librtmp
+ cp -f librtmp/rtmp.h $(PREFIX)/include/librtmp
+ cp -f librtmp.so $(PREFIX)/lib
clean:
rm -f librtmp.so
@@ -62,4 +64,4 @@ clean:
make -C librtmp clean
distclean::
- rm -rf librtmp.so includes librtmp
+ rm -rf librtmp.so librtmp