Mercurial > mplayer.hg
comparison configure @ 492:888a85621f50
preliminary DVD support using libcss
author | lgb |
---|---|
date | Tue, 17 Apr 2001 22:04:44 +0000 |
parents | 5062115afefd |
children | e1e2131411c3 |
comparison
equal
deleted
inserted
replaced
491:2313c6ea006f | 492:888a85621f50 |
---|---|
3 # | 3 # |
4 # MPlayer configurator. (C) 2000 Pontscho/fresh!mindworkz | 4 # MPlayer configurator. (C) 2000 Pontscho/fresh!mindworkz |
5 # pontscho@makacs.poliod.hu | 5 # pontscho@makacs.poliod.hu |
6 # | 6 # |
7 # Changes in reversed order: | 7 # Changes in reversed order: |
8 # | |
9 # 2001/04/16 by LGB | |
10 # - added libcss stuffs | |
8 # | 11 # |
9 # 2001/04/15 by Pontscho | 12 # 2001/04/15 by Pontscho |
10 # - added --disable-select option | 13 # - added --disable-select option |
11 # - added X11DIR variable in config.mak and fix syncfb Makefile -L/usr/X11/lib bug | 14 # - added X11DIR variable in config.mak and fix syncfb Makefile -L/usr/X11/lib bug |
12 # | 15 # |
15 # | 18 # |
16 # 2001/03/22 by Bivanbi: | 19 # 2001/03/22 by Bivanbi: |
17 # - new option: --cc (to specify C compiler path+name) | 20 # - new option: --cc (to specify C compiler path+name) |
18 # | 21 # |
19 # 2001/03/08 by LGB: | 22 # 2001/03/08 by LGB: |
20 # - DGA detection-o-matic :) | 23 # - DGA detect-o-matic :) |
21 # - '--disable-dga' option to force disabling DGA vo driver compiling into mplayer | 24 # - '--disable-dga' option to force disabling DGA vo driver compiling into mplayer |
22 # - line about '--enable-dga' is added to the help message | 25 # - line about '--enable-dga' is added to the help message |
23 # | 26 # |
24 # 2001/02/26 by A'rpi: | 27 # 2001/02/26 by A'rpi: |
25 # - added DGA option: --enable-dga | 28 # - added DGA option: --enable-dga |
98 --disable-select disable audio select() support ( for example required this | 101 --disable-select disable audio select() support ( for example required this |
99 option ALSA or Vortex2 driver ) | 102 option ALSA or Vortex2 driver ) |
100 | 103 |
101 --with-x11libdir=DIR X library files are in DIR | 104 --with-x11libdir=DIR X library files are in DIR |
102 --with-win32libdir=DIR windows codec files | 105 --with-win32libdir=DIR windows codec files |
106 --with-csslibdir=DIR directory contains libcss.so shared library | |
107 --with-cssincdir=DIR directory contains libcss header file (css.h) | |
103 | 108 |
104 --size-x=SIZE default screen width | 109 --size-x=SIZE default screen width |
105 --size-y=SIZE default screen height | 110 --size-y=SIZE default screen height |
106 EOF | 111 EOF |
107 exit 0 | 112 exit 0 |
177 pvendor=`cat /proc/cpuinfo | grep 'vendor_id' | cut -d ':' -f 2 | cut -d ' ' -f 2` | 182 pvendor=`cat /proc/cpuinfo | grep 'vendor_id' | cut -d ':' -f 2 | cut -d ' ' -f 2` |
178 pfamily=`cat /proc/cpuinfo | grep 'cpu family' | cut -d ':' -f 2 | cut -d ' ' -f 2` | 183 pfamily=`cat /proc/cpuinfo | grep 'cpu family' | cut -d ':' -f 2 | cut -d ' ' -f 2` |
179 pmodel=`cat /proc/cpuinfo | grep "model$TAB" | cut -d ':' -f 2 | cut -d ' ' -f 2` | 184 pmodel=`cat /proc/cpuinfo | grep "model$TAB" | cut -d ':' -f 2 | cut -d ' ' -f 2` |
180 pstepping=`cat /proc/cpuinfo | grep 'stepping' | cut -d ':' -f 2 | cut -d ' ' -f 2` | 185 pstepping=`cat /proc/cpuinfo | grep 'stepping' | cut -d ':' -f 2 | cut -d ' ' -f 2` |
181 | 186 |
187 _css=no | |
182 _mmx=no | 188 _mmx=no |
183 _mmx2=no | 189 _mmx2=no |
184 _3dnow=no | 190 _3dnow=no |
185 _mtrr=no | 191 _mtrr=no |
186 _sse=no | 192 _sse=no |
458 # check for the parameters. | 464 # check for the parameters. |
459 | 465 |
460 for ac_option | 466 for ac_option |
461 do | 467 do |
462 case "$ac_option" in | 468 case "$ac_option" in |
469 --enable-css) | |
470 _css=yes | |
471 ;; | |
463 --enable-sse) | 472 --enable-sse) |
464 _sse=yes | 473 _sse=yes |
465 ;; | 474 ;; |
466 --enable-3dnow) | 475 --enable-3dnow) |
467 _3dnow=yes | 476 _3dnow=yes |
524 _lirc=yes | 533 _lirc=yes |
525 ;; | 534 ;; |
526 --enable-select) | 535 --enable-select) |
527 _select='#define HAVE_AUDIO_SELECT' | 536 _select='#define HAVE_AUDIO_SELECT' |
528 ;; | 537 ;; |
538 --disable-css) | |
539 _css=no | |
540 ;; | |
529 --disable-sse) | 541 --disable-sse) |
530 _sse=no | 542 _sse=no |
531 ;; | 543 ;; |
532 --disable-3dnow) | 544 --disable-3dnow) |
533 _3dnow=no | 545 _3dnow=no |
579 _select='#undef HAVE_AUDIO_SELECT' | 591 _select='#undef HAVE_AUDIO_SELECT' |
580 ;; | 592 ;; |
581 --with-win32libdir=*) | 593 --with-win32libdir=*) |
582 _win32libdir=`echo $ac_option | cut -d '=' -f 2` | 594 _win32libdir=`echo $ac_option | cut -d '=' -f 2` |
583 _win32libdirnotify=no | 595 _win32libdirnotify=no |
596 ;; | |
597 --with-csslibdir=*) | |
598 _csslibdir=`echo $ac_option | cut -d '=' -f 2` | |
599 _css='yes'; | |
600 ;; | |
601 --with-cssincdir=*) | |
602 _cssincdir=`echo $ac_option | cut -d '=' -f 2` | |
603 _css='yes'; | |
584 ;; | 604 ;; |
585 --size-x=*) | 605 --size-x=*) |
586 _x=`echo $ac_option | cut -d '=' -f 2` | 606 _x=`echo $ac_option | cut -d '=' -f 2` |
587 ;; | 607 ;; |
588 --size-y=*) | 608 --size-y=*) |
622 echo "Checking for DGA ... $_dga" | 642 echo "Checking for DGA ... $_dga" |
623 echo "Checking for DGA 2.0 .. $_dga2" | 643 echo "Checking for DGA 2.0 .. $_dga2" |
624 echo "Checking for Xf86VM ... $_vm" | 644 echo "Checking for Xf86VM ... $_vm" |
625 echo "Checking for SVGAlib ... $_svga" | 645 echo "Checking for SVGAlib ... $_svga" |
626 echo "Checking for FBDev ... $_fbdev" | 646 echo "Checking for FBDev ... $_fbdev" |
647 echo "Checking for DeCSS support ... $_css" | |
627 # write conf files. | 648 # write conf files. |
628 | 649 |
629 if [ $_gl = yes ]; then | 650 if [ $_gl = yes ]; then |
630 _gllib='-lGL' | 651 _gllib='-lGL' |
652 fi | |
653 | |
654 if [ $_css = yes ]; then | |
655 if [ ! -z $_csslibdir ]; then | |
656 _csslib="-L${_csslibdir} -lcss" | |
657 else | |
658 _csslib='-lcss' | |
659 fi | |
660 _css='#define HAVE_LIBCSS' | |
661 if [ ! -z $_cssincdir ]; then | |
662 _cssinc="-I${_cssincdir}" | |
663 else | |
664 _cssinc="" | |
665 fi | |
666 else | |
667 _css='#undef HAVE_LIBCSS' | |
668 _csslib='' | |
669 _cssinc='' | |
631 fi | 670 fi |
632 | 671 |
633 if [ $_x11 = yes ]; then | 672 if [ $_x11 = yes ]; then |
634 if [ $_xdpms = yes ]; then | 673 if [ $_xdpms = yes ]; then |
635 _x11lib='-lX11 -lXext -lXdpms' | 674 _x11lib='-lX11 -lXext -lXdpms' |
695 # LIBS=-L/usr/lib -L/usr/local/lib $_x11libdir $_gllib $_sdllib $_dgalib $_x11lib $_xvlib | 734 # LIBS=-L/usr/lib -L/usr/local/lib $_x11libdir $_gllib $_sdllib $_dgalib $_x11lib $_xvlib |
696 X_LIBS=$_x11libdir $_gllib $_sdllib $_dgalib $_x11lib $_xvlib $_vmlib $_svgalib | 735 X_LIBS=$_x11libdir $_gllib $_sdllib $_dgalib $_x11lib $_xvlib $_vmlib $_svgalib |
697 TERMCAP_LIB=$_libtermcap | 736 TERMCAP_LIB=$_libtermcap |
698 XMM_LIBS = $_xmmplibs | 737 XMM_LIBS = $_xmmplibs |
699 LIRC_LIBS = $_lirclibs | 738 LIRC_LIBS = $_lirclibs |
739 CSS_LIB = $_csslib | |
740 CSS_INC = $_cssinc | |
700 WIN32_PATH=-DWIN32_PATH=\"$_win32libdir\" | 741 WIN32_PATH=-DWIN32_PATH=\"$_win32libdir\" |
701 | 742 |
702 EOF | 743 EOF |
703 # echo 'CFLAGS=$(OPTFLAGS) -Wall -DMPG12PLAY' >> config.mak | 744 # echo 'CFLAGS=$(OPTFLAGS) -Wall -DMPG12PLAY' >> config.mak |
704 | 745 |
866 #define PLUGINDIR LIBDIR "/xmmp/Plugins" | 907 #define PLUGINDIR LIBDIR "/xmmp/Plugins" |
867 #define XMMP_AUDIO_DRIVER PLUGINDIR "/Sound/oss.so" | 908 #define XMMP_AUDIO_DRIVER PLUGINDIR "/Sound/oss.so" |
868 | 909 |
869 /* LIRC (remote control, see www.lirc.org) support: */ | 910 /* LIRC (remote control, see www.lirc.org) support: */ |
870 $_lircdefs | 911 $_lircdefs |
912 | |
913 /* DeCSS support using libcss */ | |
914 $_css | |
871 | 915 |
872 /* Define this to enable MPEG 1/2 image postprocessing (requires FAST cpu!) */ | 916 /* Define this to enable MPEG 1/2 image postprocessing (requires FAST cpu!) */ |
873 #define MPEG12_POSTPROC | 917 #define MPEG12_POSTPROC |
874 | 918 |
875 /* Define if your processor stores words with the most significant | 919 /* Define if your processor stores words with the most significant |