All of lore.kernel.org
 help / color / mirror / Atom feed
* Recipe with multiple git/svn repositories
@ 2011-01-27 10:03 Sathish Vasudevaiah
  0 siblings, 0 replies; only message in thread
From: Sathish Vasudevaiah @ 2011-01-27 10:03 UTC (permalink / raw)
  To: openembedded-devel

Hi,

While building a custom version of mpalyer (http://intr.overt.org/blog/?p=117)
the mplayer tree had to be assembled from multiple repositories.
One problem I noticed was that when multiple git reposities are mentioned,
all of them check out into $WORKDIR/git. How do you prevent it ?

Finally I ended up doing something like this. Is there a better way ?


MPLAYER = "f4626fcddd2dab57129c"
FFMPEG_TAG = "dbfc60e186f143baba6b"
LIBSWSCALE_TAG = "d1a43021d9198868fa7a023a30e5ee9e09a907d3"

SRC_URI = " git://github.com/philipl/mplayer-crystalhd;protocol=git;tag=${MPLAYER}\
            git://github.com/philipl/ffmpeg-crystalhd;protocol=git;tag=${FFMPEG_TAG}\
            git://git.mplayerhq.hu/libswscale;protocol=git;tag=${LIBSWSCALE_TAG}\
            svn://git.ffmpeg.org/dvdnav/trunk/;proto=svn;module=libdvdread;rev=1219\
            svn://git.ffmpeg.org/dvdnav/trunk/;proto=svn;module=libdvdnav;rev=1219\
                  "


do_fetch_post() {
     cd ${WORKDIR}
     rm -rf git
     tar xvfz ${DL_DIR}/git_github.com.philipl.mplayer-crystalhd_${MPLAYER}.tar.gz
     mkdir tmp
     cd tmp
     tar xvfz ${DL_DIR}/git_github.com.philipl.ffmpeg-crystalhd_${FFMPEG_TAG}.tar.gz
     mv git ../git/ffmpeg
     tar xvfz ${DL_DIR}/git_git.mplayerhq.hu.libswscale_${LIBSWSCALE_TAG}.tar.gz
     rm -rf ../git/ffmpeg/libswscale
     mv git ../git/ffmpeg/libswscale
     cd ..
     mkdir git/libdvdread4
     mv libdvdread/src/* git/libdvdread4
     mv libdvdnav/src git/libdvdnav
}

addtask fetch_post before do_patch after do_unpack



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-01-27 10:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-27 10:03 Recipe with multiple git/svn repositories Sathish Vasudevaiah

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.