diff options
author | davilla <davilla@svn> | 2010-06-17 15:45:42 +0000 |
---|---|---|
committer | davilla <davilla@svn> | 2010-06-17 15:45:42 +0000 |
commit | 3ccca8c50b6ec97550918ed5abaaa3f8079053ce (patch) | |
tree | 458d2450160f08efb1893a62843d00261a5cc5d3 /lib/librtmp | |
parent | 0c62ca05d7595e84b6a6662dd9e0dc51043971a1 (diff) |
changed Makefile to install headers to /usr/local/include/librtmp and lib to /usr/local/lib
git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@31146 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
Diffstat (limited to 'lib/librtmp')
-rw-r--r-- | lib/librtmp/Makefile | 24 |
1 files changed, 19 insertions, 5 deletions
diff --git a/lib/librtmp/Makefile b/lib/librtmp/Makefile index ef2376251a..f45b455aa3 100644 --- a/lib/librtmp/Makefile +++ b/lib/librtmp/Makefile @@ -1,8 +1,19 @@ # # rtmpdump build script. +# +# 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 +# be used and the required lib depends installed. +# +# Linux: builds a simple.so without the proper .so version symlinks, +# maybe someone with good Linux makefile-fu can fix it up. +# # Usage: # make -# +# sudo make install RTMPDUMP_VERS = 509 # get OS type from shell @@ -24,10 +35,6 @@ LIBRTMP = librtmp/librtmp.a all:: librtmp.so librtmp.so: $(LIBRTMP) - mkdir -p includes - cp -f librtmp/amf.h includes/ - cp -f librtmp/log.h includes/ - cp -f librtmp/rtmp.h includes/ ifeq ($(OSTYPE),Darwin) $(CC) $(XLDFLAGS) -o $@ -Wl,-all_load $< else @@ -40,6 +47,13 @@ $(LIBRTMP): librtmp/Makefile librtmp/Makefile: svn export --revision $(RTMPDUMP_VERS) svn://svn.mplayerhq.hu/rtmpdump/trunk/librtmp librtmp +install: + 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 + clean: rm -f librtmp.so rm -rf includes |