[Lunar-commits] <moonbase-other> live555: Install live555 in a more sane manner

Stefan Wold ratler at lunar-linux.org
Fri Jul 13 21:42:36 CEST 2012


commit da2774290946e857b9902a9af7c47c7d9bfe3e95
Author: Stefan Wold <ratler at lunar-linux.org>
Date: Fri, 13 Jul 2012 12:42:36 -0700
URL: https://github.com/lunar-linux/moonbase-other/commit/da2774290946e857b9902a9af7c47c7d9bfe3e95

live555: Install live555 in a more sane manner

Live555 now builds .so files rather than .a. It also use compiler optimizations.
Headers, binaries and libraries also install in proper locations.
---
  video/live555/BUILD                                          +16/-11   
  video/live555/DETAILS                                        +1/-1     
  2 files changed, 17 insertions (+), 12 deletions (-)

--- a/video/live555/BUILD
+++ b/video/live555/BUILD
@@ -1,19 +1,24 @@
 (
 
-  INST_DIR="/usr/lib/live" &&
+  # No need for the use of arch
+  sedit 's;^C_FLAGS.*;& -fPIC $(CFLAGS);;s;\(^CPLUSPLUS_FLAGS.*$(COMPILE_OPTS)\).*;\1 -fPIC $(CXXFLAGS);' config.linux &&
 
-  if [ -d $INST_DIR ] ; then
-    mkdir -p $INST_DIR
-  fi &&
-
-  if [ `arch` == "x86_64" ] ; then
-   ./genMakefiles linux-64bit
-   else
-   ./genMakefiles linux
-  fi &&
+  # Create .so rather then static libraries
+  sedit 's;\(^LIBRARY_LINK =\).*;\1 $(CXX) -o;;s;\(^LIBRARY_LINK_OPTS =\).*;\1 $(LINK_OPTS) -shared -Wl,-soname,$@;' config.linux &&
+  sedit 's;\(^LIB_SUFFIX =\).*;\1 so;' config.linux &&
 
+  ./genMakefiles linux &&
   make &&
   prepare_install &&
-  cp -rf . $INST_DIR
+
+  for d in BasicUsageEnvironment groupsock liveMedia UsageEnvironment; do
+    install -d -m 0755 /usr/include/${d}
+    install -m 0755 ${d}/*.so /usr/lib/
+    install -m 0644 ${d}/include/*.h* /usr/include/${d}/
+  done
+
+  for t in `find testProgs -type f -perm 755`; do
+    install -m 0755 ${t} /usr/bin/
+  done
 
 )
--- a/video/live555/DETAILS
+++ b/video/live555/DETAILS
@@ -7,7 +7,7 @@ SOURCE_DIRECTORY=$BUILD_DIRECTORY/live
       SOURCE_VFY=sha1:8cd2ebc2ef6cd1c17a514a453fb9b0b84729c62b
         WEB_SITE=http://www.live555.com/liveMedia/#config-unix
          ENTERED=20090311
-         UPDATED=20120709
+         UPDATED=20120713
            SHORT="libraries for multimedia streaming RTP/RTCP, RTSP, SIP"
 
 cat << EOF




More information about the Lunar-commits mailing list