Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Apr 2010 11:55:31 GMT
From:      Denis E Podolskiy <bytestore@yandex.ru>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/145670: change-request
Message-ID:  <201004131155.o3DBtVMZ052882@www.freebsd.org>
Resent-Message-ID: <201004131200.o3DC0Bqh066694@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         145670
>Category:       ports
>Synopsis:       change-request
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Apr 13 12:00:11 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Denis E Podolskiy
>Release:        8.0-RELEASE
>Organization:
>Environment:
FreeBSD test.chtp.net 8.0-RELEASE FreeBSD 8.0-RELEASE #0: Sat Nov 21 15:02:08 UTC 2009     root@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
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.
>How-To-Repeat:

>Fix:
New port: graphics/libjpeg-turbo
a version of libjpeg which uses MMX, SSE, and SSE2 SIMD instructions to accelerate baseline JPEG compression/decompression by about 2-4x on x86 and x86-64 platforms. It is based on libjpeg/SIMD but has numerous enhancements

Patch attached with submission follows:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#       /usr/ports/graphics/libjpeg-turbo
#       /usr/ports/graphics/libjpeg-turbo/Makefile
#       /usr/ports/graphics/libjpeg-turbo/pkg-descr
#       /usr/ports/graphics/libjpeg-turbo/pkg-plist
#       /usr/ports/graphics/libjpeg-turbo/distinfo
#
echo c - /usr/ports/graphics/libjpeg-turbo
mkdir -p /usr/ports/graphics/libjpeg-turbo > /dev/null 2>&1
echo x - /usr/ports/graphics/libjpeg-turbo/Makefile
sed 's/^X//' >/usr/ports/graphics/libjpeg-turbo/Makefile << '569bee74fddac5ca2d1151353817f529'
X# New ports collection makefile for:   libjpeg-turbo
X# Date created:        2010-04-09
X# Date modified:       2010-04-12
X# Whom:                Denis Podolskiy bytestore@yandex.ru (based on D. R. Commander )
X#
X# $FreeBSD$
X#
X
XPORTNAME=      libjpeg-turbo
XPORTVERSION=   0.0.92
XCATEGORIES=    graphics
XMASTER_SITES=  http://openmoko.spb.ru/repository/ \
X               http://mesh.dl.sourceforge.net/project/libjpeg-turbo/${PORTVERSION}/ \
X               ${MASTER_SITE_XCONTRIB}
X
XMAINTAINER=    ports@FreeBSD.org
XCOMMENT=       A libjpeg-turbo is a version which uses MMX, SSE, and SSE2 SIMD instructions to accelerate baseline JPEG compression/decompression.
X
XUSE_AUTOTOOLS= autoconf:262 automake:19 libtool:22
XGNU_CONFIGURE= yes
X
XBUILD_DEPENDS+=>${LOCALBASE}/bin/nasm:${PORTSDIR}/devel/nasm:install
X
X.include <bsd.port.pre.mk>
X
X.if ${ARCH} == i386 || ${ARCH} == amd64
XCONFIGURE_ARGS= --host x86_64-unknown-freebsd
X.else
XCONFIGURE_ARGS= --host i386-unknown-freebsd
X.endif
X
Xpre-configure:
X       @${ECHO_CMD} configure jpeg-turbo library
X       @cd ${WRKDIR}/libjpeg-turbo-${PORTVERSION} && ${AUTORECONF} -fiv && ${LIBTOOLIZE} --force
X# && ./configure --host x86_64-unknown-freebsd CFLAGS='-O3' CXXFLAGS='-O3' --enable-static=yes --enable-shared=no
X
X.include <bsd.port.post.mk>
569bee74fddac5ca2d1151353817f529
echo x - /usr/ports/graphics/libjpeg-turbo/pkg-descr
sed 's/^X//' >/usr/ports/graphics/libjpeg-turbo/pkg-descr << 'ac6fbcf711837d224454645446ee5cad'
Xlibjpeg-turbo is a high-speed version of libjpeg for x86 and x86-64 processors
Xwhich uses SIMD instructions (MMX, SSE2, etc.) to accelerate baseline JPEG
Xcompression and decompression.
Xlibjpeg-turbo is generally 2-4x as fast as the unmodified version
Xof libjpeg, all else being equal.
X
Xlibjpeg-turbo was originally based on libjpeg/SIMD by Miyasaka Masaru,
Xbut the TigerVNC and VirtualGL projects made numerous enhancements to the codec,
Xincluding improved support for Mac OS X, 64-bit support,
Xsupport for 32-bit and big endian pixel formats (RGBA, ABGR, etc.),
Xaccelerated Huffman encoding/decoding, and various bug fixes.
XThe goal was to produce a fully open source codec that could replace
Xthe partially closed source TurboJPEG/IPP codec used by VirtualGL and TurboVNC.
Xlibjpeg-turbo generally achieves 80-120% of the performance of TurboJPEG/IPP.
XIt is faster in some areas but slower in others.
X
XWWW: http://libjpeg-turbo.virtualgl.org/
X
X- D. R. Commander
Xinformation@virtualgl.org
ac6fbcf711837d224454645446ee5cad
echo x - /usr/ports/graphics/libjpeg-turbo/pkg-plist
sed 's/^X//' >/usr/ports/graphics/libjpeg-turbo/pkg-plist << '8a2957b419a5659c89a6d2ffa8d8c10c'
Xlib/libjpeg.a
Xlib/libjpeg.la
Xlib/libjpeg.so
Xlib/libjpeg.so.62
Xlib/libturbojpeg.a
Xlib/libturbojpeg.la
Xlib/libturbojpeg.so
Xinclude/jerror.h
Xinclude/jmorecfg.h
Xinclude/jpeglib.h
Xinclude/turbojpeg.h
Xinclude/jconfig.h
8a2957b419a5659c89a6d2ffa8d8c10c
echo x - /usr/ports/graphics/libjpeg-turbo/distinfo
sed 's/^X//' >/usr/ports/graphics/libjpeg-turbo/distinfo << 'fb9b25df47db3bbe37b70a56c3106388'
XMD5 (libjpeg-turbo-0.0.92.tar.gz) = 4eca10a2fbb0fe141a9b81186df6e15e
XSHA256 (libjpeg-turbo-0.0.92.tar.gz) = de56ae022f78f128ce542c016c528acfac8fa22ec41e650972657e1d30731123
XSIZE (libjpeg-turbo-0.0.92.tar.gz) = 1819003
fb9b25df47db3bbe37b70a56c3106388
exit

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201004131155.o3DBtVMZ052882>