Name the package *cygwin64.tar.bz2 when building on Cygwin64.

git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@1044 632fc199-4ca6-4c93-a231-07263d6284db
This commit is contained in:
DRC 2013-09-26 07:29:20 +00:00
Родитель 922b14b8d8 94b6c02d7d
Коммит 7308ffee43
1 изменённых файлов: 7 добавлений и 2 удалений

Просмотреть файл

@ -18,13 +18,18 @@ onexit()
PACKAGE_NAME=@PKGNAME@
VERSION=@VERSION@
SRCDIR=@abs_top_srcdir@
RPMARCH=@RPMARCH@
PLATFORM=cygwin
PREFIX=%{__prefix}
DOCDIR=%{__docdir}
LIBDIR=%{__libdir}
umask 022
rm -f $PACKAGE_NAME-$VERSION-cygwin.tar.bz2
if [ "$RPMARCH" = "x86_64" ]; then
PLATFORM=cygwin64
fi
rm -f $PACKAGE_NAME-$VERSION-$PLATFORM.tar.bz2
TMPDIR=`mktemp -d /tmp/ljtbuild.XXXXXX`
__PWD=`pwd`
make install DESTDIR=$TMPDIR/pkg docdir=/usr/share/doc/$PACKAGE_NAME-$VERSION \
@ -34,7 +39,7 @@ if [ "$PREFIX" = "/opt/libjpeg-turbo" -a "$DOCDIR" = "/opt/libjpeg-turbo/doc" ];
ln -fs /usr/share/doc/$PACKAGE_NAME-$VERSION $TMPDIR/pkg$DOCDIR
fi
cd $TMPDIR/pkg
tar cfj ../$PACKAGE_NAME-$VERSION-cygwin.tar.bz2 *
tar cfj ../$PACKAGE_NAME-$VERSION-$PLATFORM.tar.bz2 *
cd $__PWD
mv $TMPDIR/*.tar.bz2 .