Allow to extract files from mingw packages using w64 toolchain
http://mingw-w64.sourceforge.net/
This commit is contained in:
parent
6d9ec0ca02
commit
0a6a8853a6
1 changed files with 21 additions and 5 deletions
|
@ -56,6 +56,9 @@ do
|
|||
pushd $BUILD_PATH
|
||||
# extract rpm
|
||||
rpm2cpio $DOWNLOAD_PATH/$line | cpio -i -d
|
||||
|
||||
if [ -d $BUILD_PATH/usr/i686-pc-ming32/sys-root/mingw ]
|
||||
then
|
||||
# convert pkgconfig files
|
||||
if [ -d $BUILD_PATH/usr/i686-pc-mingw32/sys-root/mingw/lib/pkgconfig ]
|
||||
then
|
||||
|
@ -63,6 +66,19 @@ do
|
|||
fi
|
||||
# install the package
|
||||
cp -rf $BUILD_PATH/usr/i686-pc-mingw32/sys-root/mingw/* $INSTALL_PATH/
|
||||
fi
|
||||
|
||||
if [ -d $BUILD_PATH/usr/i686-w64-mingw32/sys-root/mingw ]
|
||||
then
|
||||
# convert pkgconfig files
|
||||
if [ -d $BUILD_PATH/usr/i686-w64=mingw32/sys-root/mingw/lib/pkgconfig ]
|
||||
then
|
||||
sed -i -e 's@^prefix=.*@prefix='$INSTALL_PATH'@' -e 's@/usr/i686-w64-mingw32/sys-root/mingw@${prefix}@' $BUILD_PATH/usr/i686-w64-mingw32/sys-root/mingw/lib/pkgconfig/*.pc
|
||||
fi
|
||||
# install the package
|
||||
cp -rf $BUILD_PATH/usr/i686-w64-mingw32/sys-root/mingw/* $INSTALL_PATH/
|
||||
fi
|
||||
|
||||
# remove the extracted file
|
||||
rm -rf $BUILD_PATH/usr
|
||||
popd
|
||||
|
|
Loading…
Reference in a new issue