[oe] Recipe with multiple git/svn repositories
Sathish Vasudevaiah
holla.net at gmail.com
Thu Jan 27 10:03:35 UTC 2011
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
More information about the Openembedded-devel
mailing list