BSD Ports

graphics/jpeg-turbo 3.1.4.1 FreeBSD

SIMD-accelerated JPEG codec which replaces libjpeg

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
Last update
Commit
23ed1126e5
License
BSD3CLAUSE, IJG, ZLIB
Categories
graphics
Package size
405.1 KiB, 2013.2 KiB installed

Description

This is a drop-in replacement for the graphics/jpeg library. It does not include libturbojpeg.so (see graphics/libjpeg-turbo).

libjpeg-turbo is a high-speed version of libjpeg for x86 and x86-64 processors which uses SIMD instructions (MMX, SSE2, etc.) to accelerate baseline JPEG compression and decompression. libjpeg-turbo is generally 2-4x as fast as the unmodified version of libjpeg, all else being equal.

libjpeg-turbo was originally based on libjpeg/SIMD by Miyasaka Masaru, but the TigerVNC and VirtualGL projects made numerous enhancements to the codec, including improved support for Mac OS X, 64-bit support, support for 32-bit and big endian pixel formats (RGBA, ABGR, etc.), accelerated Huffman encoding/decoding, and various bug fixes. The goal was to produce a fully open source codec that could replace the partially closed source TurboJPEG/IPP codec used by VirtualGL and TurboVNC. libjpeg-turbo generally achieves 80-120% of the performance of TurboJPEG/IPP. It is faster in some areas but slower in others.

In the other systems

SystemPortVersion
FreeBSDgraphics/jpeg-turbo3.1.4.1
DragonFlygraphics/jpeg-turbo3.1.0
MidnightBSDgraphics/jpeg-turbo3.1.1
HardenedBSDgraphics/jpeg-turbo3.1.4.1
GhostBSDgraphics/jpeg-turbo3.1.4.1
OPNsensegraphics/jpeg-turbo3.1.4.1

Install

Binary package:

pkg install jpeg-turbo

From the ports tree:

cd /usr/ports/graphics/jpeg-turbo/ && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	jpeg-turbo>0:graphics/jpeg-turbo
LIB_DEPENDS=	libjpeg.so:graphics/jpeg-turbo

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest3.1.4.13.1.4.12.1.43.1.13.1.4.1
FreeBSD:14:quarterly3.1.4.13.1.4.1n/a3.1.13.1.4.1
FreeBSD:15:latest3.1.4.13.1.4.1n/a3.1.13.1.1
FreeBSD:15:quarterly3.1.4.13.1.4.1n/an/an/a
FreeBSD:16:latest3.1.4.13.1.4.1n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

The Makefile names none itself; they come from USES and USE_*.

The full lists below include those, and their dependencies in turn.

Build dependencies 16
Required by 6717

The first 100 are listed.

Configuration

Options name: graphics_jpeg-turbo

OptionDefaultDescription
DOCSoffBuild and/or install documentation
USES
cmake cpe pathfix
Service scripts
none

Files

Manual pages 5
  • cjpeg(1)
  • djpeg(1)
  • jpegtran(1)
  • rdjpgcom(1)
  • wrjpgcom(1)
pkg-plist 30
  • bin/cjpeg
  • bin/djpeg
  • bin/jpegtran
  • bin/rdjpgcom
  • bin/wrjpgcom
  • include/jconfig.h
  • include/jerror.h
  • include/jmorecfg.h
  • include/jpeglib.h
  • lib/cmake/libjpeg-turbo/libjpeg-turboConfig.cmake
  • lib/cmake/libjpeg-turbo/libjpeg-turboConfigVersion.cmake
  • lib/cmake/libjpeg-turbo/libjpeg-turboTargets-.cmake
  • lib/cmake/libjpeg-turbo/libjpeg-turboTargets.cmake
  • lib/libjpeg.a
  • lib/libjpeg.so
  • lib/libjpeg.so.8
  • lib/libjpeg.so.8.3.2
  • libdata/pkgconfig/libjpeg.pc
  • share/man/man1/cjpeg.1.gz
  • share/man/man1/djpeg.1.gz
  • share/man/man1/jpegtran.1.gz
  • share/man/man1/rdjpgcom.1.gz
  • share/man/man1/wrjpgcom.1.gz
  • bin/tjbench
  • include/turbojpeg.h
  • lib/libturbojpeg.a
  • lib/libturbojpeg.so
  • lib/libturbojpeg.so.0
  • lib/libturbojpeg.so.0.4.0
  • libdata/pkgconfig/libturbojpeg.pc
distinfo 2
FileSizeSHA256
libjpeg-turbo-3.1.4.1.tar.gz2.528617e+06ecae8008e2cc9ade2f2c1bb9d5e6d4fb73e7c433866a056bd82980741571a022
7cdbf9144d40d68d97c498f54dd88a68aee4e36d.patch1214c0f9eeb2c20bd6e7e666d49fe550a6b69a9032ce10802e02aee59aab66794085
Master sites 1
  • https://github.com/libjpeg-turbo/libjpeg-turbo/releases/download/3.1.4.1/

Commit history 1

DateCommitCreditsLog message
23ed1126e5 Jessica Clarke graphics/jpeg-turbo: Apply upstream patch to fix riscv64
Architectures like riscv64 where WITH_SIMD takes its default value of 1 but the SIMD detection finds no support (due to, in the case of 3.1.4.1 for riscv64, there being no RVV support at all) were broken as they would still try to build simdcoverage and fail to link it. Apply the upstream fix from the 3.1.x branch. PR: 296754 Reviewed by: desktop (arrowd) Approved by: desktop (arrowd) MFH: 2026Q3