正在显示
6 个修改的文件
包含
7 行增加
和
169 行删除
| @@ -201,6 +201,7 @@ Supported operating systems and hardware: | @@ -201,6 +201,7 @@ Supported operating systems and hardware: | ||
| 201 | * 2013-10-17, Created.<br/> | 201 | * 2013-10-17, Created.<br/> |
| 202 | 202 | ||
| 203 | ## History | 203 | ## History |
| 204 | +* v1.0, 2014-10-18, remove supports for OSX. 2.0.1. | ||
| 204 | * v1.0, 2014-10-16, revert github srs README to English. 2.0.0. | 205 | * v1.0, 2014-10-16, revert github srs README to English. 2.0.0. |
| 205 | * <strong>v1.0, 2014-10-09, [1.0 beta(1.0.0)](https://github.com/winlinvip/simple-rtmp-server/releases/tag/1.0.beta) released. 59316 lines.</strong> | 206 | * <strong>v1.0, 2014-10-09, [1.0 beta(1.0.0)](https://github.com/winlinvip/simple-rtmp-server/releases/tag/1.0.beta) released. 59316 lines.</strong> |
| 206 | * v1.0, 2014-10-08, fix [#151](https://github.com/winlinvip/simple-rtmp-server/issues/151), always reap ts whatever audio or video packet. 0.9.223. | 207 | * v1.0, 2014-10-08, fix [#151](https://github.com/winlinvip/simple-rtmp-server/issues/151), always reap ts whatever audio or video packet. 0.9.223. |
| @@ -214,91 +214,6 @@ function Centos_prepare() | @@ -214,91 +214,6 @@ function Centos_prepare() | ||
| 214 | return 0 | 214 | return 0 |
| 215 | } | 215 | } |
| 216 | Centos_prepare; ret=$?; if [[ 0 -ne $ret ]]; then echo "CentOS prepare failed, ret=$ret"; exit $ret; fi | 216 | Centos_prepare; ret=$?; if [[ 0 -ne $ret ]]; then echo "CentOS prepare failed, ret=$ret"; exit $ret; fi |
| 217 | -##################################################################################### | ||
| 218 | -# for OSX, auto install tools by brew | ||
| 219 | -##################################################################################### | ||
| 220 | -OS_IS_OSX=NO | ||
| 221 | -function OSX_prepare() | ||
| 222 | -{ | ||
| 223 | - SYS_NAME=`uname -s` | ||
| 224 | - if [ $SYS_NAME != Darwin ]; then | ||
| 225 | - echo "This is not Darwin OSX" | ||
| 226 | - return 0; | ||
| 227 | - fi | ||
| 228 | - | ||
| 229 | - OS_IS_OSX=YES | ||
| 230 | - echo "OSX detected, install tools if needed" | ||
| 231 | - | ||
| 232 | - gcc --help >/dev/null 2>&1; ret=$?; if [[ 0 -ne $ret ]]; then | ||
| 233 | - echo "install gcc" | ||
| 234 | - require_sudoer "sudo brew install gcc" | ||
| 235 | - sudo brew install gcc; ret=$?; if [[ 0 -ne $ret ]]; then return $ret; fi | ||
| 236 | - echo "install gcc success" | ||
| 237 | - fi | ||
| 238 | - | ||
| 239 | - g++ --help >/dev/null 2>&1; ret=$?; if [[ 0 -ne $ret ]]; then | ||
| 240 | - echo "install gcc-c++" | ||
| 241 | - require_sudoer "sudo brew install gcc-c++" | ||
| 242 | - sudo brew install gcc-c++; ret=$?; if [[ 0 -ne $ret ]]; then return $ret; fi | ||
| 243 | - echo "install gcc-c++ success" | ||
| 244 | - fi | ||
| 245 | - | ||
| 246 | - make --help >/dev/null 2>&1; ret=$?; if [[ 0 -ne $ret ]]; then | ||
| 247 | - echo "install make" | ||
| 248 | - require_sudoer "sudo brew install make" | ||
| 249 | - sudo brew install make; ret=$?; if [[ 0 -ne $ret ]]; then return $ret; fi | ||
| 250 | - echo "install make success" | ||
| 251 | - fi | ||
| 252 | - | ||
| 253 | - patch --help >/dev/null 2>&1; ret=$?; if [[ 0 -ne $ret ]]; then | ||
| 254 | - echo "install patch" | ||
| 255 | - require_sudoer "sudo brew install patch" | ||
| 256 | - sudo brew install patch; ret=$?; if [[ 0 -ne $ret ]]; then return $ret; fi | ||
| 257 | - echo "install patch success" | ||
| 258 | - fi | ||
| 259 | - | ||
| 260 | - if [ $SRS_FFMPEG_TOOL = YES ]; then | ||
| 261 | - automake --help >/dev/null 2>&1; ret=$?; if [[ 0 -ne $ret ]]; then | ||
| 262 | - echo "install automake" | ||
| 263 | - require_sudoer "sudo brew install automake" | ||
| 264 | - sudo brew install automake; ret=$?; if [[ 0 -ne $ret ]]; then return $ret; fi | ||
| 265 | - echo "install automake success" | ||
| 266 | - fi | ||
| 267 | - | ||
| 268 | - autoconf --help >/dev/null 2>&1; ret=$?; if [[ 0 -ne $ret ]]; then | ||
| 269 | - echo "install autoconf" | ||
| 270 | - require_sudoer "sudo brew install autoconf" | ||
| 271 | - sudo brew install autoconf; ret=$?; if [[ 0 -ne $ret ]]; then return $ret; fi | ||
| 272 | - echo "install autoconf success" | ||
| 273 | - fi | ||
| 274 | - | ||
| 275 | - libtool --help >/dev/null 2>&1; ret=$?; if [[ 0 -ne $ret ]]; then | ||
| 276 | - echo "install libtool" | ||
| 277 | - require_sudoer "sudo brew install libtool" | ||
| 278 | - sudo brew install libtool; ret=$?; if [[ 0 -ne $ret ]]; then return $ret; fi | ||
| 279 | - echo "install libtool success" | ||
| 280 | - fi | ||
| 281 | - | ||
| 282 | - if [[ ! -f /usr/include/pcre.h ]]; then | ||
| 283 | - echo "install pcre-devel" | ||
| 284 | - require_sudoer "sudo brew install pcre-devel" | ||
| 285 | - sudo brew install pcre-devel; ret=$?; if [[ 0 -ne $ret ]]; then return $ret; fi | ||
| 286 | - echo "install pcre-devel success" | ||
| 287 | - fi | ||
| 288 | - | ||
| 289 | - if [[ ! -f /usr/include/zlib.h ]]; then | ||
| 290 | - echo "install zlib-devel" | ||
| 291 | - require_sudoer "sudo brew install zlib-devel" | ||
| 292 | - sudo brew install zlib-devel; ret=$?; if [[ 0 -ne $ret ]]; then return $ret; fi | ||
| 293 | - echo "install zlib-devel success" | ||
| 294 | - fi | ||
| 295 | - fi | ||
| 296 | - | ||
| 297 | - echo "OSX install tools success" | ||
| 298 | - return 0 | ||
| 299 | -} | ||
| 300 | -OSX_prepare; ret=$?; if [[ 0 -ne $ret ]]; then echo "OSX prepare failed, ret=$ret"; exit $ret; fi | ||
| 301 | - | ||
| 302 | 217 | ||
| 303 | ##################################################################################### | 218 | ##################################################################################### |
| 304 | # st-1.9 | 219 | # st-1.9 |
| @@ -323,9 +238,6 @@ if [ $SRS_EMBEDED_CPU = YES ]; then | @@ -323,9 +238,6 @@ if [ $SRS_EMBEDED_CPU = YES ]; then | ||
| 323 | ) | 238 | ) |
| 324 | fi | 239 | fi |
| 325 | else | 240 | else |
| 326 | - if [ $SRS_OSX = YES ]; then | ||
| 327 | - _ST_MAKE=darwin-debug | ||
| 328 | - fi | ||
| 329 | if [[ ! -f ${SRS_OBJS}/_flag.st.arm.tmp && -f ${SRS_OBJS}/st/libst.a ]]; then | 241 | if [[ ! -f ${SRS_OBJS}/_flag.st.arm.tmp && -f ${SRS_OBJS}/st/libst.a ]]; then |
| 330 | echo "st-1.9t is ok."; | 242 | echo "st-1.9t is ok."; |
| 331 | else | 243 | else |
| @@ -351,21 +263,8 @@ if [ ! -f ${SRS_OBJS}/st/libst.a ]; then echo "build st-1.9 static lib failed."; | @@ -351,21 +263,8 @@ if [ ! -f ${SRS_OBJS}/st/libst.a ]; then echo "build st-1.9 static lib failed."; | ||
| 351 | ##################################################################################### | 263 | ##################################################################################### |
| 352 | # check the arm flag file, if flag changed, need to rebuild the st. | 264 | # check the arm flag file, if flag changed, need to rebuild the st. |
| 353 | if [ $SRS_HTTP_PARSER = YES ]; then | 265 | if [ $SRS_HTTP_PARSER = YES ]; then |
| 354 | - # for osx(darwin), donot use sed. | ||
| 355 | - if [ $SRS_OSX = YES ]; then | ||
| 356 | - if [[ -f ${SRS_OBJS}/hp/http_parser.h && -f ${SRS_OBJS}/hp/libhttp_parser.a ]]; then | ||
| 357 | - echo "http-parser-2.1 is ok."; | ||
| 358 | - else | ||
| 359 | - echo "build http-parser-2.1 for osx(darwin)"; | ||
| 360 | - ( | ||
| 361 | - rm -rf ${SRS_OBJS}/http-parser-2.1 && cd ${SRS_OBJS} && unzip -q ../3rdparty/http-parser-2.1.zip && | ||
| 362 | - cd http-parser-2.1 && | ||
| 363 | - make package && | ||
| 364 | - cd .. && rm -rf hp && ln -sf http-parser-2.1 hp | ||
| 365 | - ) | ||
| 366 | - fi | ||
| 367 | # ok, arm specified, if the flag filed does not exists, need to rebuild. | 266 | # ok, arm specified, if the flag filed does not exists, need to rebuild. |
| 368 | - elif [ $SRS_EMBEDED_CPU = YES ]; then | 267 | + if [ $SRS_EMBEDED_CPU = YES ]; then |
| 369 | if [[ -f ${SRS_OBJS}/_flag.st.hp.tmp && -f ${SRS_OBJS}/hp/http_parser.h && -f ${SRS_OBJS}/hp/libhttp_parser.a ]]; then | 268 | if [[ -f ${SRS_OBJS}/_flag.st.hp.tmp && -f ${SRS_OBJS}/hp/http_parser.h && -f ${SRS_OBJS}/hp/libhttp_parser.a ]]; then |
| 370 | echo "http-parser-2.1 for arm is ok."; | 269 | echo "http-parser-2.1 for arm is ok."; |
| 371 | else | 270 | else |
| @@ -570,18 +469,6 @@ fi | @@ -570,18 +469,6 @@ fi | ||
| 570 | # extra configure options | 469 | # extra configure options |
| 571 | CONFIGURE_TOOL="./config" | 470 | CONFIGURE_TOOL="./config" |
| 572 | EXTRA_CONFIGURE="" | 471 | EXTRA_CONFIGURE="" |
| 573 | -if [ $SRS_OSX = YES ]; then | ||
| 574 | - CONFIGURE_TOOL="./Configure" | ||
| 575 | - arch=`uname -m` && echo "OSX $arch"; | ||
| 576 | - if [ $arch = x86_64 ]; then | ||
| 577 | - echo "configure 64bit openssl"; | ||
| 578 | - EXTRA_CONFIGURE=darwin64-x86_64-cc | ||
| 579 | - else | ||
| 580 | - echo "configure 32bit openssl"; | ||
| 581 | - EXTRA_CONFIGURE=darwin-i386-cc | ||
| 582 | - fi | ||
| 583 | - echo "openssl extra config: $CONFIGURE_TOOL $EXTRA_CONFIGURE" | ||
| 584 | -fi | ||
| 585 | if [ $SRS_EMBEDED_CPU = YES ]; then | 472 | if [ $SRS_EMBEDED_CPU = YES ]; then |
| 586 | CONFIGURE_TOOL="./Configure" | 473 | CONFIGURE_TOOL="./Configure" |
| 587 | fi | 474 | fi |
trunk/auto/options.sh
100644 → 100755
| @@ -63,8 +63,6 @@ SRS_USE_SYS_SSL=NO | @@ -63,8 +63,6 @@ SRS_USE_SYS_SSL=NO | ||
| 63 | # presets | 63 | # presets |
| 64 | # for x86/x64 pc/servers | 64 | # for x86/x64 pc/servers |
| 65 | SRS_X86_X64=NO | 65 | SRS_X86_X64=NO |
| 66 | -# for ios(darwin) | ||
| 67 | -SRS_OSX=NO | ||
| 68 | # armhf(v7cpu) built on ubuntu12 | 66 | # armhf(v7cpu) built on ubuntu12 |
| 69 | SRS_ARM_UBUNTU12=NO | 67 | SRS_ARM_UBUNTU12=NO |
| 70 | # mips built on ubuntu12 | 68 | # mips built on ubuntu12 |
| @@ -161,7 +159,6 @@ Options: | @@ -161,7 +159,6 @@ Options: | ||
| 161 | 159 | ||
| 162 | Presets: | 160 | Presets: |
| 163 | --x86-x64 [default] for x86/x64 cpu, common pc and servers. | 161 | --x86-x64 [default] for x86/x64 cpu, common pc and servers. |
| 164 | - --osx for IOS(darwin) to build SRS. | ||
| 165 | --pi for raspberry-pi(directly build), open features hls/ssl/static. | 162 | --pi for raspberry-pi(directly build), open features hls/ssl/static. |
| 166 | --cubie for cubieboard(directly build), open features except ffmpeg/nginx. | 163 | --cubie for cubieboard(directly build), open features except ffmpeg/nginx. |
| 167 | --arm alias for --with-arm-ubuntu12, for ubuntu12, arm crossbuild | 164 | --arm alias for --with-arm-ubuntu12, for ubuntu12, arm crossbuild |
| @@ -252,7 +249,6 @@ function parse_user_option() { | @@ -252,7 +249,6 @@ function parse_user_option() { | ||
| 252 | --log-trace) SRS_LOG_TRACE=YES ;; | 249 | --log-trace) SRS_LOG_TRACE=YES ;; |
| 253 | 250 | ||
| 254 | --x86-x64) SRS_X86_X64=YES ;; | 251 | --x86-x64) SRS_X86_X64=YES ;; |
| 255 | - --osx) SRS_OSX=YES ;; | ||
| 256 | --arm) SRS_ARM_UBUNTU12=YES ;; | 252 | --arm) SRS_ARM_UBUNTU12=YES ;; |
| 257 | --mips) SRS_MIPS_UBUNTU12=YES ;; | 253 | --mips) SRS_MIPS_UBUNTU12=YES ;; |
| 258 | --pi) SRS_PI=YES ;; | 254 | --pi) SRS_PI=YES ;; |
| @@ -322,9 +318,7 @@ function apply_user_presets() { | @@ -322,9 +318,7 @@ function apply_user_presets() { | ||
| 322 | if [ $SRS_PI = NO ]; then | 318 | if [ $SRS_PI = NO ]; then |
| 323 | if [ $SRS_CUBIE = NO ]; then | 319 | if [ $SRS_CUBIE = NO ]; then |
| 324 | if [ $SRS_X86_X64 = NO ]; then | 320 | if [ $SRS_X86_X64 = NO ]; then |
| 325 | - if [ $SRS_OSX = NO ]; then | ||
| 326 | - SRS_X86_X64=YES; opt="--x86-x64 $opt"; | ||
| 327 | - fi | 321 | + SRS_X86_X64=YES; opt="--x86-x64 $opt"; |
| 328 | fi | 322 | fi |
| 329 | fi | 323 | fi |
| 330 | fi | 324 | fi |
| @@ -597,34 +591,7 @@ function apply_user_presets() { | @@ -597,34 +591,7 @@ function apply_user_presets() { | ||
| 597 | SRS_GPROF=NO | 591 | SRS_GPROF=NO |
| 598 | SRS_STATIC=NO | 592 | SRS_STATIC=NO |
| 599 | fi | 593 | fi |
| 600 | - | ||
| 601 | - # if osx dev specified, open main server features. | ||
| 602 | - if [ $SRS_OSX = YES ]; then | ||
| 603 | - SRS_HLS=YES | ||
| 604 | - SRS_DVR=YES | ||
| 605 | - SRS_NGINX=NO | ||
| 606 | - SRS_SSL=YES | ||
| 607 | - SRS_FFMPEG_TOOL=NO | ||
| 608 | - SRS_TRANSCODE=YES | ||
| 609 | - SRS_INGEST=YES | ||
| 610 | - SRS_STAT=NO | ||
| 611 | - SRS_HTTP_PARSER=YES | ||
| 612 | - SRS_HTTP_CALLBACK=YES | ||
| 613 | - SRS_HTTP_SERVER=YES | ||
| 614 | - SRS_HTTP_API=YES | ||
| 615 | - SRS_LIBRTMP=NO | ||
| 616 | - SRS_RESEARCH=NO | ||
| 617 | - SRS_UTEST=NO | ||
| 618 | - SRS_GPERF=NO | ||
| 619 | - SRS_GPERF_MC=NO | ||
| 620 | - SRS_GPERF_MP=NO | ||
| 621 | - SRS_GPERF_CP=NO | ||
| 622 | - SRS_GPROF=NO | ||
| 623 | - SRS_STATIC=NO | ||
| 624 | - fi | ||
| 625 | - | ||
| 626 | - | ||
| 627 | - | 594 | + |
| 628 | # for srs demo | 595 | # for srs demo |
| 629 | if [ $SRS_DEMO = YES ]; then | 596 | if [ $SRS_DEMO = YES ]; then |
| 630 | SRS_HLS=YES | 597 | SRS_HLS=YES |
| @@ -812,24 +779,6 @@ function check_option_conflicts() { | @@ -812,24 +779,6 @@ function check_option_conflicts() { | ||
| 812 | echo "x86/x64 should never use static, see: ./configure --help"; __check_ok=NO; | 779 | echo "x86/x64 should never use static, see: ./configure --help"; __check_ok=NO; |
| 813 | fi | 780 | fi |
| 814 | fi | 781 | fi |
| 815 | - | ||
| 816 | - # for darwin, not support stat yet. | ||
| 817 | - if [ $SRS_OSX = YES ]; then | ||
| 818 | - if [ $SRS_STAT = YES ]; then | ||
| 819 | - echo "osx should never use stat, see: ./configure --help"; __check_ok=NO; | ||
| 820 | - fi | ||
| 821 | - fi | ||
| 822 | - | ||
| 823 | - # for darwin, must use --osx, vice versa | ||
| 824 | - if [ $SRS_OSX = YES ]; then | ||
| 825 | - if [ `uname -s` != Darwin ]; then | ||
| 826 | - echo "--osx is for darwin(your os is not), see: ./configure --help"; __check_ok=NO; | ||
| 827 | - fi | ||
| 828 | - else | ||
| 829 | - if [ `uname -s` = Darwin ]; then | ||
| 830 | - echo "use --osx for darwin, see: ./configure --help"; __check_ok=NO; | ||
| 831 | - fi | ||
| 832 | - fi | ||
| 833 | 782 | ||
| 834 | # TODO: FIXME: check more os. | 783 | # TODO: FIXME: check more os. |
| 835 | 784 |
| @@ -112,6 +112,7 @@ OBJS = $(TARGETDIR)/sched.o \ | @@ -112,6 +112,7 @@ OBJS = $(TARGETDIR)/sched.o \ | ||
| 112 | OBJS += $(EXTRA_OBJS) | 112 | OBJS += $(EXTRA_OBJS) |
| 113 | SRS = $(TARGETDIR)/srs | 113 | SRS = $(TARGETDIR)/srs |
| 114 | 114 | ||
| 115 | +linux-debug: all | ||
| 115 | all: $(TARGETDIR) $(SRS) | 116 | all: $(TARGETDIR) $(SRS) |
| 116 | 117 | ||
| 117 | $(TARGETDIR): | 118 | $(TARGETDIR): |
| @@ -1166,7 +1166,7 @@ void SrsConfig::print_help(char** argv) | @@ -1166,7 +1166,7 @@ void SrsConfig::print_help(char** argv) | ||
| 1166 | { | 1166 | { |
| 1167 | printf( | 1167 | printf( |
| 1168 | RTMP_SIG_SRS_NAME" "RTMP_SIG_SRS_VERSION" "RTMP_SIG_SRS_COPYRIGHT"\n" | 1168 | RTMP_SIG_SRS_NAME" "RTMP_SIG_SRS_VERSION" "RTMP_SIG_SRS_COPYRIGHT"\n" |
| 1169 | - "license: "RTMP_SIG_SRS_LICENSE"\n" | 1169 | + "License: "RTMP_SIG_SRS_LICENSE"\n" |
| 1170 | "Primary Authors: "RTMP_SIG_SRS_PRIMARY_AUTHROS"\n" | 1170 | "Primary Authors: "RTMP_SIG_SRS_PRIMARY_AUTHROS"\n" |
| 1171 | "Build: "SRS_AUTO_BUILD_DATE" Configuration:"SRS_AUTO_USER_CONFIGURE"\n" | 1171 | "Build: "SRS_AUTO_BUILD_DATE" Configuration:"SRS_AUTO_USER_CONFIGURE"\n" |
| 1172 | "Features:"SRS_AUTO_CONFIGURE"\n""\n" | 1172 | "Features:"SRS_AUTO_CONFIGURE"\n""\n" |
| @@ -31,7 +31,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | @@ -31,7 +31,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
| 31 | // current release version | 31 | // current release version |
| 32 | #define VERSION_MAJOR "2" | 32 | #define VERSION_MAJOR "2" |
| 33 | #define VERSION_MINOR "0" | 33 | #define VERSION_MINOR "0" |
| 34 | -#define VERSION_REVISION "0" | 34 | +#define VERSION_REVISION "1" |
| 35 | #define RTMP_SIG_SRS_VERSION VERSION_MAJOR"."VERSION_MINOR"."VERSION_REVISION | 35 | #define RTMP_SIG_SRS_VERSION VERSION_MAJOR"."VERSION_MINOR"."VERSION_REVISION |
| 36 | // server info. | 36 | // server info. |
| 37 | #define RTMP_SIG_SRS_KEY "SRS" | 37 | #define RTMP_SIG_SRS_KEY "SRS" |
-
请 注册 或 登录 后发表评论