зеркало из https://github.com/mozilla/mozjpeg.git
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:
Коммит
7308ffee43
|
@ -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 .
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче