winlin

refine scripts, use configure presets.

@@ -4,7 +4,7 @@ if [[ ! -d $src_dir ]]; then echo "错误:必须在src同目录执行脚本"; @@ -4,7 +4,7 @@ if [[ ! -d $src_dir ]]; then echo "错误:必须在src同目录执行脚本";
4 4
5 # step 1: build srs 5 # step 1: build srs
6 echo "编译SRS" 6 echo "编译SRS"
7 -./configure --with-ssl --with-hls --with-http-server --with-http-api --with-ingest --with-transcode --with-http-callback && make 7 +./configure --x86-x64 && make
8 ret=$?; if [[ 0 -ne $ret ]]; then echo "错误:编译SRS失败"; exit $ret; fi 8 ret=$?; if [[ 0 -ne $ret ]]; then echo "错误:编译SRS失败"; exit $ret; fi
9 9
10 echo "编译SRS成功" 10 echo "编译SRS成功"
@@ -45,7 +45,7 @@ if [ $help = yes ]; then @@ -45,7 +45,7 @@ if [ $help = yes ]; then
45 --help print this message 45 --help print this message
46 46
47 --arm configure with arm and make srs. use arm tools to get info. 47 --arm configure with arm and make srs. use arm tools to get info.
48 - --no-build donot build srs, user has builded. only make install. 48 + --no-build donot build srs, user has builded(./configure --pi && make). only make install.
49 END 49 END
50 exit 0 50 exit 0
51 fi 51 fi
@@ -89,15 +89,12 @@ if [ $DO_BUILD = YES ]; then @@ -89,15 +89,12 @@ if [ $DO_BUILD = YES ]; then
89 if [ $ARM = YES ]; then 89 if [ $ARM = YES ]; then
90 ( 90 (
91 cd $work_dir && 91 cd $work_dir &&
92 - ./configure --with-ssl --with-arm-ubuntu12 --prefix=$INSTALL && make 92 + ./configure --arm --prefix=$INSTALL && make
93 ) >> $log 2>&1 93 ) >> $log 2>&1
94 else 94 else
95 ( 95 (
96 cd $work_dir && 96 cd $work_dir &&
97 - ./configure --with-ssl --with-hls \  
98 - --with-http-server --with-http-api --with-http-callback \  
99 - --with-ingest --with-transcode \  
100 - --prefix=$INSTALL && make 97 + ./configure --x86-x64 --prefix=$INSTALL && make
101 ) >> $log 2>&1 98 ) >> $log 2>&1
102 fi 99 fi
103 ret=$?; if [[ 0 -ne ${ret} ]]; then failed_msg "build srs failed"; exit $ret; fi 100 ret=$?; if [[ 0 -ne ${ret} ]]; then failed_msg "build srs failed"; exit $ret; fi