Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F111854723
D2884.id8802.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
9 KB
Referenced Files
None
Subscribers
None
D2884.id8802.diff
View Options
Index: head/Mk/Uses/jpeg.mk
===================================================================
--- head/Mk/Uses/jpeg.mk
+++ head/Mk/Uses/jpeg.mk
@@ -6,12 +6,17 @@
# Usage: USES=jpeg or USES=jpeg:ARGS
# Valid ARGS: lib (default, implicit), build, run, both
#
+# User defined variables:
+# JPEG_PORT - jpeg implementation
+# Valid values: graphics/jpeg and graphics/jpeg-turbo
+# Default value: graphics/jpeg-turbo
+#
# MAINTAINER: portmgr@FreeBSD.org
.if !defined(_INCLUDE_USES_JPEG_MK)
_INCLUDE_USES_JPEG_MK= yes
-JPEG_PORT?= graphics/jpeg
+JPEG_PORT?= graphics/jpeg-turbo
.if empty(jpeg_ARGS)
jpeg_ARGS= lib
Index: head/UPDATING
===================================================================
--- head/UPDATING
+++ head/UPDATING
@@ -5,6 +5,25 @@
You should get into the habit of checking this file for changes each time
you update your ports collection, before attempting any port upgrades.
+20150916:
+ AFFECTS: users of graphics/jpeg
+ AUTHOR: antoine@FreeBSD.org
+
+ Default implementation of jpeg has been switched from graphics/jpeg to
+ graphics/jpeg-turbo. To perform the upgrade, use instructions below.
+
+ If using binary packages: 'pkg upgrade' will do the right thing.
+
+ If using portmgaster:
+ # portmaster -o graphics/jpeg-turbo graphics/jpeg
+
+ If using portupgrade:
+ # portupgrade -f -o graphics/jpeg-turbo graphics/jpeg
+
+ If you compile your ports and want to keep using IJG's jpeg implementation,
+ add this line to your /etc/make.conf file:
+ JPEG_PORT=graphics/jpeg
+
20150914:
AFFECTS: users of lang/perl5*
AUTHOR: mat@FreeBSD.org
Index: head/graphics/jpeg-turbo/Makefile
===================================================================
--- head/graphics/jpeg-turbo/Makefile
+++ head/graphics/jpeg-turbo/Makefile
@@ -2,13 +2,13 @@
# $FreeBSD$
PORTNAME= jpeg-turbo
-PORTVERSION= 1.4.0
-PORTREVISION?= 1
+PORTVERSION= 1.4.1
+PORTREVISION?= 0
CATEGORIES= graphics
MASTER_SITES= SF/lib${PORTNAME}/${PORTVERSION}
DISTNAME= lib${PORTNAME}-${PORTVERSION}
-MAINTAINER= bytestore@yandex.ru
+MAINTAINER= portmgr@FreeBSD.org
COMMENT?= SIMD-accelerated JPEG codec which replaces libjpeg
USES= cpe libtool
@@ -38,15 +38,13 @@
.endif
.if ${SLAVE_PORT} == yes
+# libturbojpeg.a has to be built with PIC for virtualgl
CONFIGURE_ARGS+=--with-pic
PLIST_SUB+= JPEG="@comment " LIBTURBOJPEG=""
.else
-CONFIGURE_ARGS+=--program-suffix=-turbo --without-turbojpeg
+CONFIGURE_ARGS+=--without-turbojpeg
+CONFLICTS_INSTALL= jpeg-[0-9]*
PLIST_SUB+= JPEG="" LIBTURBOJPEG="@comment "
-
-post-install:
- @${ECHO_CMD} "libjpeg.so.8 libjpeg.so.8.0.2" \
- > ${STAGEDIR}${PREFIX}/etc/libmap.d/${PORTNAME}.conf
.endif
.include <bsd.port.mk>
Index: head/graphics/jpeg-turbo/distinfo
===================================================================
--- head/graphics/jpeg-turbo/distinfo
+++ head/graphics/jpeg-turbo/distinfo
@@ -1,2 +1,2 @@
-SHA256 (libjpeg-turbo-1.4.0.tar.gz) = d93ad8546b510244f863b39b4c0da0fa4c0d53a77b61a8a3880f258c232bbbee
-SIZE (libjpeg-turbo-1.4.0.tar.gz) = 1524645
+SHA256 (libjpeg-turbo-1.4.1.tar.gz) = 4bf5bad4ce85625bffbbd9912211e06790e00fb982b77724af7211034efafb08
+SIZE (libjpeg-turbo-1.4.1.tar.gz) = 1529614
Index: head/graphics/jpeg-turbo/pkg-plist
===================================================================
--- head/graphics/jpeg-turbo/pkg-plist
+++ head/graphics/jpeg-turbo/pkg-plist
@@ -1,23 +1,21 @@
-%%JPEG%%etc/libmap.d/jpeg-turbo.conf
-%%JPEG%%bin/cjpeg-turbo
-%%JPEG%%bin/djpeg-turbo
-%%JPEG%%bin/jpegtran-turbo
-%%JPEG%%bin/rdjpgcom-turbo
-%%JPEG%%bin/wrjpgcom-turbo
-@comment %%JPEG%%include/jconfig.h
-@comment %%JPEG%%include/jerror.h
-@comment %%JPEG%%include/jmorecfg.h
-@comment %%JPEG%%include/jpeglib.h
-@comment %%JPEG%%lib/libjpeg.a
-@comment %%JPEG%%lib/libjpeg.so
-@comment %%JPEG%%lib/libjpeg.so.8
+%%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.8
%%JPEG%%lib/libjpeg.so.8.0.2
-%%JPEG%%man/man1/cjpeg-turbo.1.gz
-%%JPEG%%man/man1/djpeg-turbo.1.gz
-%%JPEG%%man/man1/jpegtran-turbo.1.gz
-%%JPEG%%man/man1/rdjpgcom-turbo.1.gz
-%%JPEG%%man/man1/wrjpgcom-turbo.1.gz
-@comment bin/tjbench-turbo
+%%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
Index: head/graphics/jpeg/Makefile
===================================================================
--- head/graphics/jpeg/Makefile
+++ head/graphics/jpeg/Makefile
@@ -16,7 +16,7 @@
MAINTAINER= portmgr@FreeBSD.org
COMMENT= IJG's jpeg compression utilities
-#CONFLICTS= libjpeg-turbo-[0-9]*
+CONFLICTS_INSTALL= jpeg-turbo-[0-9]*
WRKSRC= ${WRKDIR}/${PORTNAME}-${DISTVERSION2}
DISTVERSION2= 8d
Index: head/graphics/seejpeg/files/patch-Makefile
===================================================================
--- head/graphics/seejpeg/files/patch-Makefile
+++ head/graphics/seejpeg/files/patch-Makefile
@@ -1,5 +1,5 @@
---- Makefile.orig 1999-11-07 06:55:19.000000000 +0100
-+++ Makefile 2014-04-28 20:49:33.000000000 +0200
+--- Makefile.orig 1999-11-07 05:55:19 UTC
++++ Makefile
@@ -6,30 +6,30 @@
# $Id: Makefile,v 1.8 1999/11/07 05:55:19 evan Exp $
@@ -11,7 +11,8 @@
# See the README for a description of these options.
#OPTIONS= -DNO_32K_CASCADE -DTESTMODE=G640x480x32K -DBUG_WORKAROUND -DONLY_1_8_MODES
- OPTIONS= -DBUG_WORKAROUND
+-OPTIONS= -DBUG_WORKAROUND
++OPTIONS= -DBUG_WORKAROUND -DBMP_SUPPORTED -DGIF_SUPPORTED -DPPM_SUPPORTED -DTARGA_SUPPORTED
# This should be the location of the JPEG v6 header files.
-JPEG_HEADERS= -I /usr/local/include
@@ -39,7 +40,7 @@
LDOPTS= -s
SEEJPEG= seejpeg.o jpeg.o image.o display.o cmap.o \
-@@ -53,8 +53,8 @@
+@@ -53,8 +53,8 @@ seejpeg: $(SEEJPEG)
$(CC) $(CFLAGS) $(LDOPTS) -o seejpeg $(SEEJPEG) $(LIBS)
install:
Index: head/multimedia/libmovtar/Makefile
===================================================================
--- head/multimedia/libmovtar/Makefile
+++ head/multimedia/libmovtar/Makefile
@@ -3,7 +3,7 @@
PORTNAME= libmovtar
PORTVERSION= 0.1.3
-PORTREVISION= 12
+PORTREVISION= 13
CATEGORIES= multimedia
MASTER_SITES= SF/mjpeg/OldFiles
Index: head/multimedia/libmovtar/files/patch-movtar_play.c
===================================================================
--- head/multimedia/libmovtar/files/patch-movtar_play.c
+++ head/multimedia/libmovtar/files/patch-movtar_play.c
@@ -1,6 +1,22 @@
---- movtar_play.c.orig 2007-12-12 22:22:44.000000000 +0100
-+++ movtar_play.c 2007-12-12 22:27:09.000000000 +0100
-@@ -141,9 +141,9 @@
+--- movtar_play.c.orig 2001-07-13 21:38:03 UTC
++++ movtar_play.c
+@@ -12,7 +12,7 @@
+ #include <SDL/SDL.h>
+ #include <SDL/SDL_timer.h>
+
+-#ifndef IRIX
++#if !defined(IRIX) && !defined(__FreeBSD__)
+ #define JPEG_INTERNALS
+ #include <jinclude.h>
+ #endif
+@@ -135,15 +135,15 @@ jpeg_mem_src_reset (j_decompress_ptr cin
+
+ /* end of data source manager */
+
+-#ifndef IRIX
++#if !defined(IRIX) && !defined(__FreeBSD__)
+ /* Colorspace conversion */
+ /* RGB, 32 bits, 8bits each: (Junk), R, G, B */
#if defined(__GNUC__)
#define int64 unsigned long long
#endif
@@ -13,7 +29,7 @@
METHODDEF(void)
ycc_rgb32_convert_mmx (j_decompress_ptr cinfo,
-@@ -263,9 +263,9 @@
+@@ -263,9 +263,9 @@ ycc_rgb32_convert_mmx (j_decompress_ptr
asm ("emms");
}
@@ -26,3 +42,46 @@
static int64 rgb16offset = 6; // shift right after the whole stuff
static const int64 shiftmask = 0xffff; // shift right after the whole stuff
+@@ -556,7 +556,7 @@ void inline readpicfrommem(void *inbuffe
+ jpeg_mem_src_reset(&cinfo, size);
+ jpeg_read_header(&cinfo, TRUE);
+
+-#ifndef IRIX
++#if !defined(IRIX) && !defined(__FreeBSD__)
+ cinfo.dct_method = JDCT_IFAST;
+ cinfo.out_color_space = JCS_RGB;
+ #else
+@@ -568,20 +568,20 @@ void inline readpicfrommem(void *inbuffe
+ switch (screen->format->BytesPerPixel)
+ {
+ case 4:
+-#ifndef IRIX
++#if !defined(IRIX) && !defined(__FreeBSD__)
+ //printf("Choosing MMX color convert\n");
+ cconvert = cinfo.cconvert;
+ //cconvert->color_convert = ycc_rgb32_convert_mmx;
+ #else
+- fprintf(stderr, "32 bits per pixel can't be decoded by libjpeg on IRIX !\n");
++ fprintf(stderr, "32 bits per pixel can't be decoded by libjpeg on IRIX or FreeBSD !\n");
+ #endif
+ break;
+ case 2:
+-#ifndef IRIX
++#if !defined(IRIX) && !defined(__FreeBSD__)
+ cconvert = cinfo.cconvert;
+ cconvert->color_convert = ycc_rgb16_convert_mmx;
+ #else
+- fprintf(stderr, "15/16 bits per pixel can't be decoded by libjpeg on IRIX!");
++ fprintf(stderr, "15/16 bits per pixel can't be decoded by libjpeg on IRIX or FreeBSD !");
+ #endif
+ break;
+ default: break;
+@@ -795,7 +795,7 @@ int main(int argc,char** argv)
+
+ dump_pixel_format(screen->format);
+
+-#ifdef IRIX
++#if defined(IRIX) || defined(__FreeBSD__)
+ fprintf(stderr, "Screen parameters haven't been determined yet !\n");
+ #else
+ calc_rgb16_params(screen->format);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Mar 10, 8:49 AM (12 h, 58 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
17082050
Default Alt Text
D2884.id8802.diff (9 KB)
Attached To
Mode
D2884: Switch from jpeg to jpeg-turbo
Attached
Detach File
Event Timeline
Log In to Comment