Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ###########
- # #
- # GENERAL #
- # #
- ###########
- sudo apt-get update # TYPE Y FOR ANY QUESTIONS
- sudo apt-get upgrade # TYPE Y FOR ANY QUESTIONS
- sudo apt-get autoremove # TYPE Y FOR ANY QUESTIONS
- ################################################################################
- # THE NEXT TWO MKDIR CODE LINES BELOW SHOULD BE UNCOMMENTED IF FIRST TIME RUN. #
- # CHANGE WHERE YOU WANT STUFF TO GO WHERE YOU WANT IT, STILL COMMENT BACK OUT #
- # ON SUBSEQUENT RUNS. (CHANGE THE /Programs/build and /Programs/current #
- # TO WHAT YOU WISH THEM TO BE, BUT STILL COMMENT OUT THE MKDIR LINES #
- # AFTER FIRST RUN). ALL LINES SUBSEQUENT TO THE EXPORT LINES SHOULD ALL BE #
- # COMMENTED OUT TOO....BUT ONLY BEFORE INITIAL RUN. #
- ################################################################################
- #mkdir $HOME/Programs/build
- #mkdir $HOME/Programs/current
- export BUILD=$HOME/Programs/build
- export CURRENT=$HOME/Programs/current
- cd $BUILD
- #git clone git://git.sv.gnu.org/automake.git
- #mv automake automake_GIT-PULLsvn co http://www.tortall.net/svn/yasm/trunk/yasm yasm_SVN-UPDATE
- #git clone --depth=1 git://opencore-amr.git.sourceforge.net/gitroot/opencore-amr/opencore-amr
- #mv opencore-amr opencore-amr_GIT-PULL
- #git clone git://git.videolan.org/x264.git
- #mv x264 x264_GIT-PULL
- #svn checkout svn://svn.ffmpeg.org/ffmpeg/trunk ffmpeg_SVN-UPDATE
- #svn checkout svn://svn.mplayerhq.hu/mplayer/trunk mplayer_SVN-UPDATE
- #wget http://www.live555.com/liveMedia/public/live555-latest.tar.gz
- #tar xvf live555-latest.tar.gz
- #mv live live_LIVE555-CODECS
- #wget http://www.mplayerhq.hu/MPlayer/releases/codecs/all-20071007.tar.bz2
- #tar xjvf all-20071007.tar.bz2
- #mv all-20071007 all-20071007_MPLAYER-CODECS
- #svn co http://www.tortall.net/svn/yasm/trunk/yasm yasm_SVN-UPDATE
- #git clone git://git.sv.gnu.org/automake.git
- #mv automake automake_GIT-PULL
- #rm -R *.bz2 *.gz
- #####################################################
- # #
- # DEV FILES NEEDED #
- # #
- # (The files are per what was "needed" #
- # from the VERY helpful resource at #
- # http://ubuntuforums.org/showthread.php?t=1081070) #
- # ...last updated as far as I know on 9/15/09 #
- # This can be proabably commented out after #
- # inital run... #
- # #
- #####################################################
- #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
- ##########################################################################################
- # #
- # If starting from scratch, you only need to install Live555 and the "codecs" once. #
- # So, comment the lines below if you have already done this and don't want to do it #
- # again. AKA, if this is the first time you have run this script, leave the code as is, #
- # NOT THE ACTUAL COMMENT LINES!!! I am not going to give a lesson on what is "code" #
- # and what is a "comment." Make sure to recomment out the code lines after having done #
- # this part once, and are going to run it again for upkeeping purposes or something, #
- # else you are wasting your time. Nothing bad can happen, but you are #
- # WASTING YOUR TIME. If you want your "build" directory different than what I've used, #
- # then make it so. You should be able to figure that out for yourself. #
- # #
- # I'LL PUT NOTES ABOVE COMMENT-OUTTABLE CODE IF THIS IS A SECOND-OR-MORE-RUN-THANG. #
- # #
- # I add sudo ldconfigs pretty much at the end of everything, that usually helps solve #
- # a lot of problems that pop up, at least it did for me, and it can't hurt to just #
- # put it in, just in case... #
- # #
- # I am not fully ass-holic. #
- # #
- ##########################################################################################
- ##################################################################################
- # #
- # INSTALL THE CODECS #
- # #
- # (I don't know when something newer than this will be made, but at the time of #
- # this writing (10/9/09), this is the latest). THIS CAN PROBABLY BE COMMENTED #
- # OUT AFTER INITIAL RUN, but I just leave it for whatever reason. (When will a #
- # git or svn be created for this?) #
- # #
- ##################################################################################
- #sudo mkdir -pv /usr/lib/codecs
- #sudo cp -v $BUILD/all-20071007_MPLAYER-CODECS/* /usr/lib/codecs
- #sudo ldconfig
- ##################################################################################
- # #
- # INSTALL THE LIVE555 CODECS #
- # #
- # (I don't know when something newer than this will be made, but at the time of #
- # this writing (10/9/09), this is the latest). THIS CAN PROBABLY BE COMMENTED #
- # OUT AFTER INITIAL RUN, but I just leave it for whatever reason. (When will a #
- # git or svn be creater for this?) #
- # #
- ##################################################################################
- #cd $BUILD/live_LIVE555-CODECS
- #./genMakefiles linux
- #make --jobs=6
- #sudo cp -r $BUILD/live_LIVE555-CODECS /usr/lib
- #sudo ldconfig
- #######################################################################
- # #
- # INSTALL THE SOURCE FONT #
- # #
- # (The font can be whatever you like, I actually like Liberation Sans #
- # which was already on my system, peruse your fonts and see what #
- # suits your fancy as a font, then pick it, putting in the path #
- # and name path as needed.) THIS CAN PROBABLY BE COMMENTED OUT AFTER #
- # INITIAL RUN, but I leave it for whatever reason. #
- # #
- #######################################################################
- #mkdir -v $HOME/.mplayer
- #ln -sv /usr/share/fonts/truetype/ttf-liberation/LiberationSan-Bold/ttf $HOME/.mplayer/subfont.ttf
- #sudo ldconfig
- #################################################################
- # #
- # COMPILE AUTOMAKE #
- # #
- # (I like to be up on the cuttin' edge #
- # of my automake) #
- # (doesn't create a .deb file in $CURRENT) #
- # (Could someone tell me how to get this done, per how #
- # it's done in the x264 and mplayer steps below?) #
- # #
- #################################################################
- cd $BUILD/automake_GIT-PULL
- git pull
- ./bootstrap
- ./configure CFLAGS=-O3
- make --jobs=6
- sudo make install
- sudo ldconfig
- make distclean
- #################################################################
- # #
- # COMPILE YASM #
- # #
- # (I like to be up on the cuttin' edge of #
- # my yasm) #
- # (doesn't create a .deb file in $CURRENT) #
- # (Could someone tell me how to get this done, per how #
- # it's done in the x264 and mplayer steps below?) #
- # #
- #################################################################
- cd $BUILD/yasm_SVN-UPDATE
- svn update
- ./autogen.sh
- ./configure CFLAGS=-O3
- make --jobs=6
- sudo make install
- sudo ldconfig
- make distclean
- ###########################
- # #
- # COMPILE LIBOPENCORE-AMR #
- # #
- ###########################
- cd $BUILD/opencore-amr_GIT-PULL
- git pull
- autoreconf -vfi
- ./configure CFLAGS=-O3
- make --jobs=6
- 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
- sudo ldconfig
- make distclean
- ################
- # #
- # COMPILE X264 #
- # #
- ################
- cd $BUILD/x264_GIT-PULL
- git pull
- ./configure --prefix=/usr --enable-shared --extra-cflags=-O3
- make --jobs=6
- 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
- sudo ldconfig
- make distclean
- ###############################################################
- # #
- # COMPILE FFMPEG #
- # #
- # This is probably not necessary, but I compile it for my #
- # own reasons to that it is up-to-date with the x264 that #
- # I just finished compiling... #
- # #
- # The enables given here were the only ones I could get #
- # to work on my system. Check out your ./configure --help #
- # to find out all you can try to enable. #
- # (doesn't create .deb file in $CURRENT) #
- # (Could someone tell me how to get this done, per how #
- # it's done in the x264 and mplayer steps below?) #
- # #
- ###############################################################
- cd $BUILD/ffmpeg_SVN-UPDATE
- svn update
- ./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
- make --jobs=6
- sudo make install
- sudo ldconfig
- make distclean
- ###################
- # #
- # COMPILE MPLAYER #
- # #
- ###################
- cd $BUILD/mplayer_SVN-UPDATE
- svn update
- ./configure --codecsdir=/usr/lib/codecs --confdir=/etc/mplayer --enable-gui --extra-cflags=-O3
- make --jobs=6
- 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"
- sudo ldconfig
- make distclean
Advertisement
Add Comment
Please, Sign In to add comment