libjpeg-turbo installs its own unique library (libturbojpeg.so) and

a drop-in replacement for libjpeg.so.

This commit splits them apart into two ports:
	graphics/libjpeg-turbo which installs only libturbojpeg.so
	graphics/jpeg-turbo which installs the libjpeg.so replacement

This will allow ports to depend on libturbojpeg.so without causing
pkg conflicts.

Approved by:	maintainer
This commit is contained in:
Adam Weinberger 2014-08-23 19:40:21 +00:00
parent 4bbd30107e
commit 29f1211622
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=365789
8 changed files with 116 additions and 75 deletions

View File

@ -5,6 +5,19 @@ they are unavoidable.
You should get into the habit of checking this file for changes each time
you update your ports collection, before attempting any port upgrades.
20140823
AFFECTS: users of graphics/libjpeg-turbo
AUTHOR: adamw@FreeBSD.org
libjpeg-turbo installs its own unique library (libturbojpeg.so) and
a drop-in replacement for libjpeg.so. The drop-in replacement has been
split off into graphics/jpeg-turbo; libjpeg-turbo now installs only
libturbojpeg.so.
If you were using the libjpeg.so from graphics/libjpeg-turbo, you
should install graphics/jpeg-turbo AFTER upgrading the libjpeg-turbo
port.
20140823
AFFECTS: users of TeXLive
AUTHOR: hrs@FreeBSD.org

View File

@ -0,0 +1,51 @@
# Created by: Denis Podolskiy <bytestore@yandex.ru>
# $FreeBSD$
PORTNAME= jpeg-turbo
PORTVERSION= 1.3.0
PORTREVISION?= 2
CATEGORIES= graphics
MASTER_SITES= SF/${PORTNAME}/${PORTVERSION}
DISTNAME= lib${PORTNAME}-${PORTVERSION}
MAINTAINER= bytestore@yandex.ru
COMMENT?= SIMD-accelerated JPEG codec which replaces libjpeg
BUILD_DEPENDS= nasm:${PORTSDIR}/devel/nasm
ONLY_FOR_ARCHS= amd64 i386
USES= libtool
GNU_CONFIGURE= yes
CONFIGURE_ENV= SO_MAJOR_VERSION=${SOVERSION}
CONFIGURE_ARGS= --with-jpeg8
USE_LDCONFIG= yes
ALL_TARGET= test
INSTALL_TARGET= install-strip
PLIST_SUB= SOVERSION=${SOVERSION}
PORTDOCS= *
PORTEXAMPLES= *
# chase graphics/jpeg
SOVERSION= 11
OPTIONS_DEFINE= PIC
PIC_DESC= Static library with PIC (required for VirtualGL)
PIC_CONFIGURE_ON= --with-pic
.if defined(SLAVE_PORT)
PLIST_SUB+= JPEG="@comment " LIBTURBOJPEG=""
.else
PLIST_SUB+= JPEG="" LIBTURBOJPEG="@comment "
CONFLICTS_INSTALL= jpeg-[0-9]*
OPTIONS_DEFINE+=DOCS EXAMPLES
CONFIGURE_ARGS+=--without-libturbojpeg
.endif
post-patch:
${REINPLACE_CMD} -e '/^docdir/s,=.*,= ${DOCSDIR},' \
-e '/^exampledir/s,=.*,= ${EXAMPLESDIR},' \
${WRKSRC}/Makefile.in
.include <bsd.port.mk>

View File

@ -0,0 +1,20 @@
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.
WWW: http://libjpeg-turbo.virtualgl.org/

View File

@ -0,0 +1,24 @@
%%JPEG%%bin/cjpeg
%%JPEG%%bin/djpeg
%%JPEG%%bin/jpegtran
%%JPEG%%bin/rdjpgcom
%%JPEG%%bin/wrjpgcom
%%JPEG%%include/jconfig.h
%%JPEG%%include/jerror.h
%%JPEG%%include/jmorecfg.h
%%JPEG%%include/jpeglib.h
%%JPEG%%lib/libjpeg.a
%%JPEG%%lib/libjpeg.so
%%JPEG%%lib/libjpeg.so.%%SOVERSION%%
%%JPEG%%lib/libjpeg.so.%%SOVERSION%%.0.2
%%JPEG%%man/man1/cjpeg.1.gz
%%JPEG%%man/man1/djpeg.1.gz
%%JPEG%%man/man1/jpegtran.1.gz
%%JPEG%%man/man1/rdjpgcom.1.gz
%%JPEG%%man/man1/wrjpgcom.1.gz
%%LIBTURBOJPEG%%bin/tjbench
%%LIBTURBOJPEG%%include/turbojpeg.h
%%LIBTURBOJPEG%%lib/libturbojpeg.a
%%LIBTURBOJPEG%%lib/libturbojpeg.so
%%LIBTURBOJPEG%%lib/libturbojpeg.so.0
%%LIBTURBOJPEG%%lib/libturbojpeg.so.0.0.0

View File

@ -1,57 +1,12 @@
# Created by: Denis Podolskiy <bytestore@yandex.ru>
# $FreeBSD$
PORTNAME= libjpeg-turbo
PORTVERSION= 1.3.0
PORTREVISION= 1
CATEGORIES= graphics
MASTER_SITES= SF/${PORTNAME}/${PORTVERSION}
PKGNAMEPREFIX= lib
MAINTAINER= bytestore@yandex.ru
COMMENT= SIMD-accelerated JPEG codec which provides both the libjpeg,TurboJPEG
COMMENT= SIMD-accelerated JPEG codec library, provides libTurboJPEG
BUILD_DEPENDS= nasm:${PORTSDIR}/devel/nasm
MASTERDIR= ${.CURDIR:H}/jpeg-turbo
SLAVE_PORT= yes
OPTIONS_SLAVE= PIC
CONFLICTS_INSTALL= jpeg-[0-9]*
ONLY_FOR_ARCHS= amd64 i386
USES= libtool
GNU_CONFIGURE= yes
CONFIGURE_ENV= SO_MAJOR_VERSION=${SOVERSION}
CONFIGURE_ARGS= --with-jpeg8
USE_LDCONFIG= yes
ALL_TARGET= test
PLIST_SUB= SOVERSION=${SOVERSION}
PORTDOCS= *
PORTEXAMPLES= *
# chase graphics/jpeg
SOVERSION= 11
OPTIONS_DEFINE= PIC DOCS EXAMPLES
PIC_DESC= Static library with PIC (required for VirtualGL)
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MPIC}
CONFIGURE_ARGS+=--with-pic
.endif
post-patch:
.if ! ${PORT_OPTIONS:MDOCS}
${REINPLACE_CMD} -e '/^install-data-am/s,install-dist_docDATA,,' \
${WRKSRC}/Makefile.in
.else
${REINPLACE_CMD} -e '/^docdir/s,=.*,= ${DOCSDIR},' \
${WRKSRC}/Makefile.in
.endif
.if ! ${PORT_OPTIONS:MEXAMPLES}
${REINPLACE_CMD} -e '/^install-data-am/s,install-dist_exampleDATA,,' \
${WRKSRC}/Makefile.in
.else
${REINPLACE_CMD} -e '/^exampledir/s,=.*,= ${EXAMPLESDIR},' \
${WRKSRC}/Makefile.in
.endif
.include <bsd.port.mk>
.include "${MASTERDIR}/Makefile"

View File

@ -1,3 +1,5 @@
This is the libjpeg-turbo library.
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.

View File

@ -1,24 +0,0 @@
bin/cjpeg
bin/djpeg
bin/jpegtran
bin/rdjpgcom
bin/tjbench
bin/wrjpgcom
include/jconfig.h
include/jerror.h
include/jmorecfg.h
include/jpeglib.h
include/turbojpeg.h
lib/libjpeg.a
lib/libjpeg.so
lib/libjpeg.so.%%SOVERSION%%
lib/libjpeg.so.%%SOVERSION%%.0.2
lib/libturbojpeg.a
lib/libturbojpeg.so
lib/libturbojpeg.so.0
lib/libturbojpeg.so.0.0.0
man/man1/cjpeg.1.gz
man/man1/djpeg.1.gz
man/man1/jpegtran.1.gz
man/man1/rdjpgcom.1.gz
man/man1/wrjpgcom.1.gz