This script is for Slackware 13.37 and may be outdated.

SlackBuilds Repository

libjpeg-turbo is a version of libjpeg which uses MMX, SSE, and SSE2SIMD instructions to accelerate baseline JPEG compression anddecompression by about 2-4x on x86 and x86-64 platforms. It is basedon libjpeg/SIMD but has numerous enhancements.

The package installs to /opt/libjpeg-turbo by default.Pass PREFIX=/usr to the SlackBuild to build it system-wide.