[4] jpgtest can now be used to test decompression performance only.
+[5] If the default install prefix (/opt/libjpeg-turbo) is used, then
+'make install' now creates /opt/libjpeg-turbo/lib32 and
+/opt/libjpeg-turbo/lib64 sym links to duplicate the behavior of the binary
+packages.
+
Significant changes since 1.0.0
===============================
rm -f *_444Q[0-9]*.ppm
rm -f *_444Q[0-9]*.jpg
+if X86_64
+
+install-exec-hook:
+ __PREFIX=`echo ${prefix} | sed -e 's@\/*$$@@'`; \
+ if [ "$$__PREFIX" = "/opt/libjpeg-turbo" ]; then \
+ cd $(DESTDIR)/${prefix}; \
+ if [ -d lib -a ! -d lib64 -a ! -h lib64 ]; then \
+ $(LN_S) lib lib64; \
+ fi \
+ fi
+
+else
+
+install-exec-hook:
+ __PREFIX=`echo ${prefix} | sed -e 's@\/*$$@@'`; \
+ if [ "$$__PREFIX" = "/opt/libjpeg-turbo" ]; then \
+ cd $(DESTDIR)/${prefix}; \
+ if [ -d lib -a ! -d lib32 -a ! -h lib32 ]; then \
+ $(LN_S) lib lib32; \
+ fi \
+ fi
+
+endif
+
rpm: all
TMPDIR=`mktemp -d /tmp/${PACKAGE_NAME}-build.XXXXXX`; \
mkdir -p $$TMPDIR/RPMS; \
mv $RPM_BUILD_ROOT/opt/%{name}/include/turbojpeg.h $RPM_BUILD_ROOT/usr/include
ln -fs /usr/include/turbojpeg.h $RPM_BUILD_ROOT/opt/%{name}/include/
ln -fs /usr/%{__lib}/libturbojpeg.a $RPM_BUILD_ROOT/opt/%{name}/%{__lib}/
-%ifarch x86_64
-%else
-ln -fs %{__lib} $RPM_BUILD_ROOT/opt/%{name}/lib32
-%endif
%post -p /sbin/ldconfig
/sbin/ldconfig -n $TMPDIR/usr/$__LIB
if [ ! $SUPPLEMENT = 1 ]; then
- if [ "$DEBARCH" = "amd64" ]; then
- ln -fs lib $TMPDIR/opt/$DIRNAME/lib64
- else
- if [ ! "$__LIB" = "lib32" ]; then
- ln -fs lib $TMPDIR/opt/$DIRNAME/lib32
- fi
- fi
mkdir -p $TMPDIR/usr/include
mv $TMPDIR/opt/$DIRNAME/include/turbojpeg.h $TMPDIR/usr/include
ln -fs /usr/include/turbojpeg.h $TMPDIR/opt/$DIRNAME/include/
ln -fs /usr/include/turbojpeg.h $PKGROOT/opt/$PACKAGE_NAME/include/
ln -fs /usr/lib/libturbojpeg.a $PKGROOT/opt/$PACKAGE_NAME/lib/
-ln -fs lib $PKGROOT/opt/$PACKAGE_NAME/lib32
-ln -fs lib $PKGROOT/opt/$PACKAGE_NAME/lib64
+if [ ! -h $PKGROOT/opt/$PACKAGE_NAME/lib32 ]; then
+ ln -fs lib $PKGROOT/opt/$PACKAGE_NAME/lib32
+fi
+if [ ! -h $PKGROOT/opt/$PACKAGE_NAME/lib64 ]; then
+ ln -fs lib $PKGROOT/opt/$PACKAGE_NAME/lib64
+fi
mkdir -p $PKGROOT/Library/Documentation/$PACKAGE_NAME
chmod 1775 $PKGROOT/Library