View | Details | Raw Unified | Return to bug 191964
Collapse All | Expand All

(-)Makefile (-7 / +4 lines)
Lines 2-13 Link Here
2
# $FreeBSD$
2
# $FreeBSD$
3
3
4
PORTNAME=	mozjpeg
4
PORTNAME=	mozjpeg
5
PORTVERSION=	1.0.1
5
PORTVERSION=	2.0.1
6
PORTREVISION=	1
7
CATEGORIES=	graphics
6
CATEGORIES=	graphics
8
7
9
MAINTAINER=	horia@racoviceanu.com
8
MAINTAINER=	horia@racoviceanu.com
10
COMMENT=	Fork of libjpeg-turbo with 'jpgcrush' functionality
9
COMMENT=	Advanced JPEG encoder for the Web
11
10
12
LICENSE=	BSD3CLAUSE
11
LICENSE=	BSD3CLAUSE
13
12
Lines 14-20 Link Here
14
USE_GITHUB=	yes
13
USE_GITHUB=	yes
15
GH_ACCOUNT=	mozilla
14
GH_ACCOUNT=	mozilla
16
GH_TAGNAME=	${GH_COMMIT}
15
GH_TAGNAME=	${GH_COMMIT}
17
GH_COMMIT=	0c7449c
16
GH_COMMIT=	e7a135b
18
17
19
USES=		libtool:oldver
18
USES=		libtool:oldver
20
USE_AUTOTOOLS=	aclocal autoconf autoheader automake libtoolize
19
USE_AUTOTOOLS=	aclocal autoconf autoheader automake libtoolize
Lines 52-58 Link Here
52
OPTIONS_SINGLE=	API_ABI_EMULATION
51
OPTIONS_SINGLE=	API_ABI_EMULATION
53
OPTIONS_SINGLE_API_ABI_EMULATION=	JPEG6B JPEG7 JPEG8
52
OPTIONS_SINGLE_API_ABI_EMULATION=	JPEG6B JPEG7 JPEG8
54
53
55
OPTIONS_DEFAULT=	DECODING ENCODING GCC JPEG8 SHARED STATIC TURBOJPEG
54
OPTIONS_DEFAULT=	DECODING ENCODING GCC JPEG8 SHARED TURBOJPEG
56
55
57
OPTIONS_SUB=	yes
56
OPTIONS_SUB=	yes
58
57
Lines 99-106 Link Here
99
	@${REINPLACE_CMD} -e 's|docdir = $$(datadir)/doc|&/mozjpeg|; \
98
	@${REINPLACE_CMD} -e 's|docdir = $$(datadir)/doc|&/mozjpeg|; \
100
		/^exampledir/s|=.*|= ${EXAMPLESDIR}|' \
99
		/^exampledir/s|=.*|= ${EXAMPLESDIR}|' \
101
			${WRKSRC}/Makefile.am
100
			${WRKSRC}/Makefile.am
102
	@${REINPLACE_CMD} -e 's|__attribute__((always_inline))",|inline &|' \
103
			${WRKSRC}/configure.ac
104
101
105
post-install:
102
post-install:
106
.if ${PORT_OPTIONS:MDOCS}
103
.if ${PORT_OPTIONS:MDOCS}
(-)distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
SHA256 (mozjpeg-1.0.1.tar.gz) = f3ddbdc323ef3daf6b6958ba1365fc869819d07b201727be1ab3fdaa3213b0c4
1
SHA256 (mozjpeg-2.0.1.tar.gz) = 3384bdb7ee89d1cf620c3a092f52ded6cf048ad828f85e357f310ab944503662
2
SIZE (mozjpeg-1.0.1.tar.gz) = 1039871
2
SIZE (mozjpeg-2.0.1.tar.gz) = 1046685
(-)pkg-descr (-13 / +9 lines)
Lines 1-19 Link Here
1
MozJPEG is a fork of libjpeg-turbo with 'jpgcrush' functionality built in.
1
MozJPEG is a fork of libjpeg-turbo with 'jpgcrush' functionality built in.
2
2
3
The goal is to provide a production-quality JPEG encoder that improves
3
This project's goal is to reduce the size of JPEG files without reducing quality
4
compression while maintaining compatibility with the vast majority of deployed
4
or compatibility with the vast majority of the world's deployed decoders.
5
decoders.
6
5
7
The 'jpgcrush' feature finds the progressive coding configuration which uses the
6
The idea is to reduce transfer times for JPEGs on the Web, thus reducing page
8
fewest bits. This most frequently reduces file size by 2-10%, but those are not
7
load times.
9
hard limits. Significantly greater reductions have been observed.
10
8
11
Library configuration defaults are the same as for libjpeg-turbo, in order to
9
'mozjpeg' is not intended to be a general JPEG library replacement. It makes
12
make transitions as painless as possible. There are new configuration options
10
tradeoffs that are intended to benefit Web use cases and focuses solely on
13
for new features, but they are not enabled by default.
11
improving encoding. It is best used as part of a Web encoding workflow. For a
12
general JPEG library (e.g. your system libjpeg), especially if you care about
13
decoding, we recommend graphics/libjpeg-turbo port.
14
14
15
The 'cjpeg' program defaults are not the same as for the equivalent program in
16
libjpeg-turbo. The 'cjpeg' defaults for mozjpeg are set to aggressively optimize
17
for smaller file sizes.
18
19
WWW: https://github.com/mozilla/mozjpeg/
15
WWW: https://github.com/mozilla/mozjpeg/

Return to bug 191964