Guest User

stanjr

a guest
Oct 9th, 2009
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 14.01 KB | None | 0 0
  1. ###########
  2. #         #
  3. # GENERAL #
  4. #         #
  5. ###########
  6.  
  7. sudo apt-get update # TYPE Y FOR ANY QUESTIONS
  8. sudo apt-get upgrade # TYPE Y FOR ANY QUESTIONS
  9. sudo apt-get autoremove # TYPE Y FOR ANY QUESTIONS
  10.  
  11. ################################################################################
  12. # THE NEXT TWO MKDIR CODE LINES BELOW SHOULD BE UNCOMMENTED IF FIRST TIME RUN. #
  13. # CHANGE WHERE YOU WANT STUFF TO GO WHERE YOU WANT IT, STILL COMMENT BACK OUT  #
  14. # ON SUBSEQUENT RUNS.  (CHANGE THE /Programs/build and /Programs/current       #
  15. # TO WHAT YOU WISH THEM TO BE, BUT STILL COMMENT OUT THE MKDIR LINES           #
  16. # AFTER FIRST RUN).  ALL LINES SUBSEQUENT TO THE EXPORT LINES SHOULD ALL BE    #
  17. # COMMENTED OUT TOO....BUT ONLY BEFORE INITIAL RUN.                            #
  18. ################################################################################
  19.  
  20. #mkdir $HOME/Programs/build
  21. #mkdir $HOME/Programs/current
  22.  
  23. export BUILD=$HOME/Programs/build
  24. export CURRENT=$HOME/Programs/current
  25.  
  26. cd $BUILD
  27.  
  28. #git clone git://git.sv.gnu.org/automake.git
  29. #mv automake automake_GIT-PULLsvn co http://www.tortall.net/svn/yasm/trunk/yasm yasm_SVN-UPDATE
  30. #git clone --depth=1 git://opencore-amr.git.sourceforge.net/gitroot/opencore-amr/opencore-amr
  31. #mv opencore-amr opencore-amr_GIT-PULL
  32. #git clone git://git.videolan.org/x264.git
  33. #mv x264 x264_GIT-PULL
  34. #svn checkout svn://svn.ffmpeg.org/ffmpeg/trunk ffmpeg_SVN-UPDATE
  35. #svn checkout svn://svn.mplayerhq.hu/mplayer/trunk mplayer_SVN-UPDATE
  36. #wget http://www.live555.com/liveMedia/public/live555-latest.tar.gz
  37. #tar xvf live555-latest.tar.gz
  38. #mv live live_LIVE555-CODECS
  39. #wget http://www.mplayerhq.hu/MPlayer/releases/codecs/all-20071007.tar.bz2
  40. #tar xjvf all-20071007.tar.bz2
  41. #mv all-20071007 all-20071007_MPLAYER-CODECS
  42. #svn co http://www.tortall.net/svn/yasm/trunk/yasm yasm_SVN-UPDATE
  43. #git clone git://git.sv.gnu.org/automake.git
  44. #mv automake automake_GIT-PULL
  45. #rm -R *.bz2 *.gz
  46.  
  47.  
  48. #####################################################
  49. #                                                   #
  50. # DEV FILES NEEDED                                  #
  51. #                                                   #
  52. # (The files are per what was "needed"              #
  53. # from the VERY helpful resource at                 #
  54. # http://ubuntuforums.org/showthread.php?t=1081070) #
  55. # ...last updated as far as I know on 9/15/09       #
  56. # This can be proabably commented out after         #
  57. # inital run...                                     #
  58. #                                                   #
  59. #####################################################
  60.  
  61. #sudo apt-get install build-essential checkinstall gpac libgpac-dev git-core debhelper em8300-headers gawk gettext html2text intltool-debian ladspa-sdk libaa1-dev libasound2-dev libatk1.0-dev libaudio-dev libaudio2 libaudiofile-dev libavahi-client-dev libavahi-common-dev libcaca-dev libcairo2-dev libcdparanoia-dev libcelt0 libdbus-1-dev libdbus-glib-1-dev libdirectfb-dev libdirectfb-extra libdts-dev libdv4-dev libenca-dev libenca0 libesd0-dev libexpat1-dev libfaac-dev libfaac0 libffado0 libfontconfig1-dev libfreebob0 libfreetype6-dev libfribidi-dev libggi-target-x libggi2 libggi2-dev libggimisc2 libggimisc2-dev libgif-dev libgii1 libgii1-dev libgii1-target-x libgl1-mesa-dev libglib2.0-dev libglu1-mesa-dev libgtk2.0-dev libice-dev libjack-dev libjack0 libjpeg62-dev liblzo-dev liblzo1 liblzo2-2 liblzo2-dev libmad0-dev libmail-sendmail-perl libmp3lame-dev libmp3lame0 libmpcdec-dev libmpcdec3 libncurses5-dev libogg-dev libopenal-dev libopenal1 libpango1.0-dev libpixman-1-dev libpng12-dev libpopt-dev libpthread-stubs0 libpthread-stubs0-dev libpulse-dev libpulse-mainloop-glib0 libsdl1.2-dev libslang2-dev libsm-dev libsmbclient-dev libspeex-dev libsvga1 libsvga1-dev libsys-hostname-long-perl libsysfs-dev libtheora-dev libtwolame-dev libtwolame0 libvorbis-dev libx11-dev libxau-dev libschroedinger-dev libstdc++5 libxcb-render-util0-dev libxcb-render0-dev libxcb1-dev libxcomposite-dev libxcursor-dev libxdamage-dev libxdmcp-dev libxext-dev libxfixes-dev libxft-dev libxi-dev libxinerama-dev libxml++2.6-2 libxrandr-dev libxrender-dev libxt-dev libxv-dev libxvidcore4-dev libxvmc-dev libxxf86dga-dev libxxf86vm-dev mesa-common-dev po-debconf sharutils x11proto-composite-dev x11proto-core-dev x11proto-damage-dev x11proto-fixes-dev x11proto-input-dev x11proto-kb-dev x11proto-randr-dev x11proto-render-dev x11proto-video-dev x11proto-xext-dev x11proto-xf86dga-dev x11proto-xf86vidmode-dev x11proto-xinerama-dev xtrans-dev zlib1g-dev liboil0.3-dev libcddb2-dev
  62.  
  63. ##########################################################################################
  64. #                                                                                        #
  65. # If starting from scratch, you only need to install Live555 and the "codecs" once.      #
  66. # So, comment the lines below if you have already done this and don't want to do it      #
  67. # again.  AKA, if this is the first time you have run this script, leave the code as is, #
  68. # NOT THE ACTUAL COMMENT LINES!!!  I am not going to give a lesson on what is "code"     #
  69. # and what is a "comment."  Make sure to recomment out the code lines after having done  #
  70. # this part once, and are going to run it again for upkeeping purposes or something,     #
  71. # else you are wasting your time.  Nothing bad can happen, but you are                   #
  72. # WASTING YOUR TIME.  If you want your "build" directory different than what I've used,  #
  73. # then make it so.  You should be able to figure that out for yourself.                  #
  74. #                                                                                        #
  75. # I'LL PUT NOTES ABOVE COMMENT-OUTTABLE CODE IF THIS IS A SECOND-OR-MORE-RUN-THANG.      #
  76. #                                                                                        #
  77. # I add sudo ldconfigs pretty much at the end of everything, that usually helps solve    #
  78. # a lot of problems that pop up, at least it did for me, and it can't hurt to just       #
  79. # put it in, just in case...                                                             #
  80. #                                                                                        #
  81. # I am not fully ass-holic.                                                              #
  82. #                                                                                        #
  83. ##########################################################################################
  84.  
  85. ##################################################################################
  86. #                                                                                #
  87. # INSTALL THE CODECS                                                             #
  88. #                                                                                #
  89. # (I don't know when something newer than this will be made, but at the time of  #
  90. # this writing (10/9/09), this is the latest).  THIS CAN PROBABLY BE COMMENTED   #
  91. # OUT AFTER INITIAL RUN, but I just leave it for whatever reason.  (When will a  #
  92. # git or svn be created for this?)                                               #
  93. #                                                                                #
  94. ##################################################################################
  95.  
  96. #sudo mkdir -pv /usr/lib/codecs
  97. #sudo cp -v $BUILD/all-20071007_MPLAYER-CODECS/* /usr/lib/codecs
  98. #sudo ldconfig
  99.  
  100. ##################################################################################
  101. #                                                                                #
  102. # INSTALL THE LIVE555 CODECS                                                     #
  103. #                                                                                #
  104. # (I don't know when something newer than this will be made, but at the time of  #
  105. # this writing (10/9/09), this is the latest).  THIS CAN PROBABLY BE COMMENTED   #
  106. # OUT AFTER INITIAL RUN, but I just leave it for whatever reason.  (When will a  #
  107. # git or svn be creater for this?)                                               #
  108. #                                                                                #
  109. ##################################################################################
  110.  
  111. #cd $BUILD/live_LIVE555-CODECS
  112. #./genMakefiles linux
  113. #make --jobs=6
  114. #sudo cp -r $BUILD/live_LIVE555-CODECS /usr/lib
  115. #sudo ldconfig
  116.  
  117. #######################################################################
  118. #                                                                     #
  119. # INSTALL THE SOURCE FONT                                             #
  120. #                                                                     #
  121. # (The font can be whatever you like, I actually like Liberation Sans #
  122. # which was already on my system, peruse your fonts and see what      #  
  123. # suits your fancy as a font, then pick it, putting in the path       #
  124. # and name path as needed.)  THIS CAN PROBABLY BE COMMENTED OUT AFTER #
  125. # INITIAL RUN, but I leave it for whatever reason.                    #
  126. #                                                                     #
  127. #######################################################################
  128.  
  129. #mkdir -v $HOME/.mplayer
  130. #ln -sv /usr/share/fonts/truetype/ttf-liberation/LiberationSan-Bold/ttf $HOME/.mplayer/subfont.ttf
  131. #sudo ldconfig
  132.  
  133. #################################################################
  134. #                                                               #
  135. # COMPILE AUTOMAKE                                              #
  136. #                                                               #
  137. # (I like to be up on the cuttin' edge                          #
  138. # of my automake)                                               #
  139. # (doesn't create a .deb file in $CURRENT)                      #
  140. # (Could someone tell me how to get this done, per how          #
  141. # it's done in the x264 and mplayer steps below?)               #
  142. #                                                               #
  143. #################################################################
  144.  
  145. cd $BUILD/automake_GIT-PULL
  146. git pull
  147. ./bootstrap
  148. ./configure CFLAGS=-O3
  149. make --jobs=6
  150. sudo make install
  151. sudo ldconfig
  152. make distclean
  153.  
  154. #################################################################
  155. #                                                               #
  156. # COMPILE YASM                                                  #
  157. #                                                               #
  158. # (I like to be up on the cuttin' edge of                       #
  159. # my yasm)                                                      #
  160. # (doesn't create a .deb file in $CURRENT) #
  161. # (Could someone tell me how to get this done, per how          #
  162. # it's done in the x264 and mplayer steps below?)               #
  163. #                                                               #
  164. #################################################################
  165.  
  166. cd $BUILD/yasm_SVN-UPDATE
  167. svn update
  168. ./autogen.sh
  169. ./configure CFLAGS=-O3
  170. make --jobs=6
  171. sudo make install
  172. sudo ldconfig
  173. make distclean
  174.  
  175. ###########################
  176. #                         #
  177. # COMPILE LIBOPENCORE-AMR #
  178. #                         #  
  179. ###########################
  180.  
  181. cd $BUILD/opencore-amr_GIT-PULL
  182. git pull
  183. autoreconf -vfi
  184. ./configure CFLAGS=-O3
  185. make --jobs=6
  186. sudo checkinstall --fstrans=no --install=yes --pakdir=$CURRENT --maintainer=$USER --pkgname="libopencore-amr" --pkgversion="`date +%Y%m%d`" --backup=no --deldoc=yes --deldesc=yes --delspec=yes --gzman --default
  187. sudo ldconfig
  188. make distclean
  189.  
  190. ################
  191. #              #
  192. # COMPILE X264 #
  193. #              #
  194. ################
  195.  
  196. cd $BUILD/x264_GIT-PULL
  197. git pull
  198. ./configure --prefix=/usr --enable-shared --extra-cflags=-O3
  199. make --jobs=6
  200. sudo checkinstall --fstrans=no --install=yes --pakdir=$CURRENT --maintainer=$USER --pkgname=x264 --pkgversion="1:0.svn`date +%Y%m%d`-0.0ubuntu1" --backup=no --deldoc=yes --deldesc=yes --delspec=yes --gzman --default
  201. sudo ldconfig
  202. make distclean
  203.  
  204. ###############################################################
  205. #                                                             #
  206. # COMPILE FFMPEG                                              #
  207. #                                                             #
  208. # This is probably not necessary, but I compile it for my     #
  209. # own reasons to that it is up-to-date with the x264 that     #
  210. # I just finished compiling...                                #
  211. #                                                             #
  212. # The enables given here were the only ones I could get       #
  213. # to work on my system.  Check out your ./configure --help    #
  214. # to find out all you can try to enable.                      #
  215. # (doesn't create .deb file in $CURRENT) #
  216. # (Could someone tell me how to get this done, per how        #
  217. # it's done in the x264 and mplayer steps below?)             #
  218. #                                                             #
  219. ###############################################################
  220.  
  221. cd $BUILD/ffmpeg_SVN-UPDATE
  222. svn update
  223. ./configure --enable-shared --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-avfilter --enable-avfilter-lavf --enable-pthreads --enable-x11grab --enable-gray --enable-runtime-cpudetect --enable-bzlib --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libdc1394 --enable-libdirac --enable-libfaac --enable-libfaad --enable-libgsm --enable-libmp3lame --enable-libopenjpeg --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-zlib --extra-cflags=-O3
  224. make --jobs=6
  225. sudo make install
  226. sudo ldconfig
  227. make distclean
  228.  
  229. ###################
  230. #                 #
  231. # COMPILE MPLAYER #
  232. #                 #
  233. ###################
  234.  
  235. cd $BUILD/mplayer_SVN-UPDATE
  236. svn update
  237. ./configure --codecsdir=/usr/lib/codecs --confdir=/etc/mplayer --enable-gui --extra-cflags=-O3
  238. make --jobs=6
  239. sudo checkinstall -D --install=yes --fstrans=no --pakdir=$CURRENT --pkgname=mplayer --pkgversion="3:1.0~svn-`grep "#define VERSION" version.h | cut -d"-" -f2`" --backup=no --deldoc=yes --deldesc=yes --delspec=yes --default --provides="mplayer,mencoder"
  240. sudo ldconfig
  241. make distclean
Advertisement
Add Comment
Please, Sign In to add comment