add jasper 1.701.0

--
The JasPer Project is a collaborative effort between Image Power,
Inc.  and the University of British Columbia. The objective of this
project is to develop a software-based reference implementation of
the codec specified in the JPEG-2000 Part-1 standard (i.e., ISO/IEC
15444-1). This software has also been submitted to the ISO for
inclusion in the JPEG-2000 Part-5 standard (as an official reference
implementation).
This commit is contained in:
brad 2004-05-14 05:33:57 +00:00
parent e9771081e4
commit 2d67390878
10 changed files with 136 additions and 0 deletions

24
graphics/jasper/Makefile Normal file
View File

@ -0,0 +1,24 @@
# $OpenBSD: Makefile,v 1.1.1.1 2004/05/14 05:33:57 brad Exp $
COMMENT= "software-based reference implementation of the JPEG-2000 codec"
DISTNAME= jasper-1.701.0
CATEGORIES= graphics
MASTER_SITES= ${HOMEPAGE}software/
EXTRACT_SUFX= .zip
HOMEPAGE= http://www.ece.uvic.ca/~mdadams/jasper/
MAINTAINER= Brad Smith <brad@openbsd.org>
# MIT
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS+= ${CONFIGURE_SHARED}
CONFIGURE_ARGS+= --without-x --disable-opengl
.include <bsd.port.mk>

3
graphics/jasper/distinfo Normal file
View File

@ -0,0 +1,3 @@
MD5 (jasper-1.701.0.zip) = 22a9f74fc880e38dd125c60aa4e4ce97
RMD160 (jasper-1.701.0.zip) = 3f93bcabccd8461155f4fefc9b1be306b8c1451e
SHA1 (jasper-1.701.0.zip) = e304457a3973c3a926792c3e25e16f05818634e4

View File

@ -0,0 +1,11 @@
$OpenBSD: patch-src_libjasper_Makefile_in,v 1.1.1.1 2004/05/14 05:33:57 brad Exp $
--- src/libjasper/Makefile.in.orig 2004-04-22 21:58:42.000000000 -0400
+++ src/libjasper/Makefile.in 2004-04-22 21:59:07.000000000 -0400
@@ -186,7 +186,6 @@ libjasper_la_LIBADD = \
ras/libras.la
libjasper_la_LDFLAGS = \
- -release $(LT_RELEASE) \
-version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
subdir = src/libjasper

View File

@ -0,0 +1,22 @@
$OpenBSD: patch-src_libjasper_jp2_jp2_cod_c,v 1.1.1.1 2004/05/14 05:33:57 brad Exp $
--- src/libjasper/jp2/jp2_cod.c.orig 2004-02-08 20:34:40.000000000 -0500
+++ src/libjasper/jp2/jp2_cod.c 2004-04-22 21:37:19.000000000 -0400
@@ -774,11 +774,15 @@ static void jp2_cmap_dumpdata(jp2_box_t
jp2_cmap_t *cmap = &box->data.cmap;
unsigned int i;
jp2_cmapent_t *ent;
- fprintf(out, "numchans = %d\n", (int) cmap->numchans);
+ if (jas_getdbglevel() >= 1) {
+ fprintf(out, "numchans = %d\n", (int) cmap->numchans);
+ }
for (i = 0; i < cmap->numchans; ++i) {
ent = &cmap->ents[i];
- fprintf(out, "cmptno=%d; map=%d; pcol=%d\n",
- (int) ent->cmptno, (int) ent->map, (int) ent->pcol);
+ if (jas_getdbglevel() >= 1) {
+ fprintf(out, "cmptno=%d; map=%d; pcol=%d\n",
+ (int) ent->cmptno, (int) ent->map, (int) ent->pcol);
+ }
}
}

View File

@ -0,0 +1,14 @@
$OpenBSD: patch-src_libjasper_jp2_jp2_dec_c,v 1.1.1.1 2004/05/14 05:33:57 brad Exp $
--- src/libjasper/jp2/jp2_dec.c.orig 2004-02-08 20:34:40.000000000 -0500
+++ src/libjasper/jp2/jp2_dec.c 2004-04-22 21:37:19.000000000 -0400
@@ -293,7 +293,9 @@ jas_image_t *jp2_decode(jas_stream_t *in
dec->colr->data.colr.iccplen);
assert(iccprof);
jas_iccprof_gethdr(iccprof, &icchdr);
- jas_eprintf("ICC Profile CS %08x\n", icchdr.colorspc);
+ if (jas_getdbglevel() >= 1) {
+ jas_eprintf("ICC Profile CS %08x\n", icchdr.colorspc);
+ }
jas_image_setclrspc(dec->image, fromiccpcs(icchdr.colorspc));
dec->image->cmprof_ = jas_cmprof_createfromiccprof(iccprof);
assert(dec->image->cmprof_);

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-src_libjasper_jpc_jpc_cs_c,v 1.1.1.1 2004/05/14 05:33:57 brad Exp $
--- src/libjasper/jpc/jpc_cs.c.orig 2004-02-08 20:34:40.000000000 -0500
+++ src/libjasper/jpc/jpc_cs.c 2004-04-22 21:37:19.000000000 -0400
@@ -639,7 +639,7 @@ static int jpc_cod_dumpparms(jpc_ms_t *m
cod->compparms.cblksty);
if (cod->csty & JPC_COX_PRT) {
for (i = 0; i < cod->compparms.numrlvls; ++i) {
- fprintf(stderr, "prcwidth[%d] = %d, prcheight[%d] = %d\n",
+ fprintf(out, "prcwidth[%d] = %d, prcheight[%d] = %d\n",
i, cod->compparms.rlvls[i].parwidthval,
i, cod->compparms.rlvls[i].parheightval);
}

View File

@ -0,0 +1,14 @@
$OpenBSD: patch-src_libjasper_jpc_jpc_dec_c,v 1.1.1.1 2004/05/14 05:33:57 brad Exp $
--- src/libjasper/jpc/jpc_dec.c.orig 2004-02-08 20:34:40.000000000 -0500
+++ src/libjasper/jpc/jpc_dec.c 2004-04-22 21:37:19.000000000 -0400
@@ -1472,7 +1472,9 @@ static int jpc_dec_process_unk(jpc_dec_t
dec = 0;
fprintf(stderr, "warning: ignoring unknown marker segment\n");
- jpc_ms_dump(ms, stderr);
+ if (jas_getdbglevel() >= 1) {
+ jpc_ms_dump(ms, stderr);
+ }
return 0;
}

View File

@ -0,0 +1,7 @@
The JasPer Project is a collaborative effort between Image Power,
Inc. and the University of British Columbia. The objective of this
project is to develop a software-based reference implementation of
the codec specified in the JPEG-2000 Part-1 standard (i.e., ISO/IEC
15444-1). This software has also been submitted to the ISO for
inclusion in the JPEG-2000 Part-5 standard (as an official reference
implementation).

View File

@ -0,0 +1,3 @@
@comment $OpenBSD: PFRAG.shared,v 1.1.1.1 2004/05/14 05:33:57 brad Exp $
lib/libjasper.so.1.0
DYNLIBDIR(%D/lib)

26
graphics/jasper/pkg/PLIST Normal file
View File

@ -0,0 +1,26 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2004/05/14 05:33:57 brad Exp $
bin/imgcmp
bin/imginfo
bin/jasper
include/jasper/jas_cm.h
include/jasper/jas_config.h
include/jasper/jas_config2.h
include/jasper/jas_debug.h
include/jasper/jas_fix.h
include/jasper/jas_getopt.h
include/jasper/jas_icc.h
include/jasper/jas_image.h
include/jasper/jas_init.h
include/jasper/jas_malloc.h
include/jasper/jas_math.h
include/jasper/jas_seq.h
include/jasper/jas_stream.h
include/jasper/jas_string.h
include/jasper/jas_tvp.h
include/jasper/jas_types.h
include/jasper/jas_version.h
include/jasper/jasper.h
lib/libjasper.a
lib/libjasper.la
%%SHARED%%
@dirrm include/jasper