Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F171425469
D2884.id6382.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
7 KB
Referenced Files
None
Subscribers
None
D2884.id6382.diff
View Options
Index: Mk/Uses/jpeg.mk
===================================================================
--- Mk/Uses/jpeg.mk
+++ 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: UPDATING
===================================================================
--- UPDATING
+++ UPDATING
@@ -5,6 +5,14 @@
You should get into the habit of checking this file for changes each time
you update your ports collection, before attempting any port upgrades.
+20150XXX:
+ AFFECTS: users of graphics/jpeg
+ AUTHOR: antoine@FreeBSD.org
+
+ Default implementation of jpeg has been switched from graphics/jpeg to
+ graphics/jpeg-turbo.
+ XXX put more instructions? XXX
+
20150615:
AFFECTS: users of security/libressl
AUTHOR: brnrd@FreeBSD.org
Index: graphics/jpeg-turbo/Makefile
===================================================================
--- graphics/jpeg-turbo/Makefile
+++ graphics/jpeg-turbo/Makefile
@@ -3,7 +3,7 @@
PORTNAME= jpeg-turbo
PORTVERSION= 1.4.0
-PORTREVISION?= 0
+PORTREVISION?= 1
CATEGORIES= graphics
MASTER_SITES= SF/lib${PORTNAME}/${PORTVERSION}
DISTNAME= lib${PORTNAME}-${PORTVERSION}
@@ -41,12 +41,8 @@
CONFIGURE_ARGS+=--with-pic
PLIST_SUB+= JPEG="@comment " LIBTURBOJPEG=""
.else
-CONFIGURE_ARGS+=--program-suffix=-turbo --without-turbojpeg
+CONFIGURE_ARGS+=--without-turbojpeg
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: graphics/jpeg-turbo/pkg-plist
===================================================================
--- graphics/jpeg-turbo/pkg-plist
+++ 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: graphics/jpeg/Makefile
===================================================================
--- graphics/jpeg/Makefile
+++ graphics/jpeg/Makefile
@@ -13,10 +13,10 @@
DIST_SUBDIR= ${PORTNAME}${DISTVERSION2}
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
-MAINTAINER= portmgr@FreeBSD.org
+MAINTAINER= ports@FreeBSD.org
COMMENT= IJG's jpeg compression utilities
-#CONFLICTS= libjpeg-turbo-[0-9]*
+CONFLICTS= jpeg-turbo-[0-9]*
WRKSRC= ${WRKDIR}/${PORTNAME}-${DISTVERSION2}
DISTVERSION2= 8d
Index: graphics/seejpeg/files/patch-Makefile
===================================================================
--- graphics/seejpeg/files/patch-Makefile
+++ 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: multimedia/libmovtar/files/patch-movtar_play.c
===================================================================
--- multimedia/libmovtar/files/patch-movtar_play.c
+++ 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
Sat, Sep 12, 1:55 AM (57 m, 16 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
38751935
Default Alt Text
D2884.id6382.diff (7 KB)
Attached To
Mode
D2884: Switch from jpeg to jpeg-turbo
Attached
Detach File
Event Timeline
Log In to Comment