OpenJPEG 1.1
The OpenJPEG library is an open-source JPEG 2000 codec written in C language. It has been developed in order to promote the use of JPEG 2000, the new still-image compression standard from the Joint Photographic Experts Group (JPEG).
This commit is contained in:
parent
b0d87f22e5
commit
084716e2fd
27
graphics/openjpeg/Makefile
Normal file
27
graphics/openjpeg/Makefile
Normal file
@ -0,0 +1,27 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2007/02/08 00:29:22 todd Exp $
|
||||
|
||||
COMMENT= "open-source JPEG 2000 codec library"
|
||||
|
||||
DISTNAME= openjpeg_v1_1
|
||||
PKGNAME= openjpeg-1.1p0
|
||||
|
||||
SHARED_LIBS= openjpeg 1.0
|
||||
|
||||
CATEGORIES= graphics
|
||||
|
||||
HOMEPAGE= http://www.openjpeg.org/
|
||||
|
||||
MAINTAINER= Todd T. Fries <todd@OpenBSD.org>
|
||||
|
||||
# BSD
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
PERMIT_PACKAGE_FTP= Yes
|
||||
PERMIT_DISTFILES_CDROM= Yes
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
|
||||
MASTER_SITES= ${HOMEPAGE}
|
||||
|
||||
MAKE_ENV= LIBopenjpeg_VERSION=${LIBopenjpeg_VERSION}
|
||||
WRKDIST= ${WRKDIR}/OpenJPEG
|
||||
|
||||
.include <bsd.port.mk>
|
4
graphics/openjpeg/distinfo
Normal file
4
graphics/openjpeg/distinfo
Normal file
@ -0,0 +1,4 @@
|
||||
MD5 (openjpeg_v1_1.tar.gz) = 6bf7768d7a37b25b13994f455760ef90
|
||||
RMD160 (openjpeg_v1_1.tar.gz) = 2ddd339dcf7d4f28438abcab0a5fb7d2062f5a99
|
||||
SHA1 (openjpeg_v1_1.tar.gz) = c46e45dfc4faa11ee7b5175669b3c2076b939e01
|
||||
SIZE (openjpeg_v1_1.tar.gz) = 1419311
|
61
graphics/openjpeg/patches/patch-Makefile
Normal file
61
graphics/openjpeg/patches/patch-Makefile
Normal file
@ -0,0 +1,61 @@
|
||||
$OpenBSD: patch-Makefile,v 1.1.1.1 2007/02/08 00:29:22 todd Exp $
|
||||
--- Makefile.orig Wed Feb 1 15:25:11 2006
|
||||
+++ Makefile Mon Jan 8 18:26:27 2007
|
||||
@@ -1,7 +1,7 @@
|
||||
# Linux makefile for OpenJPEG
|
||||
|
||||
-VER_MAJOR = 1
|
||||
-VER_MINOR = 0.0
|
||||
+VER_MAJOR ?= 1
|
||||
+VER_MINOR ?= 0.0
|
||||
|
||||
SRCS = ./libopenjpeg/bio.c ./libopenjpeg/cio.c ./libopenjpeg/dwt.c ./libopenjpeg/event.c ./libopenjpeg/image.c ./libopenjpeg/j2k.c ./libopenjpeg/j2k_lib.c ./libopenjpeg/jp2.c ./libopenjpeg/jpt.c ./libopenjpeg/mct.c ./libopenjpeg/mqc.c ./libopenjpeg/openjpeg.c ./libopenjpeg/pi.c ./libopenjpeg/raw.c ./libopenjpeg/t1.c ./libopenjpeg/t2.c ./libopenjpeg/tcd.c ./libopenjpeg/tgt.c
|
||||
INCLS = ./libopenjpeg/bio.h ./libopenjpeg/cio.h ./libopenjpeg/dwt.h ./libopenjpeg/event.h ./libopenjpeg/fix.h ./libopenjpeg/image.h ./libopenjpeg/int.h ./libopenjpeg/j2k.h ./libopenjpeg/j2k_lib.h ./libopenjpeg/jp2.h ./libopenjpeg/jpt.h ./libopenjpeg/mct.h ./libopenjpeg/mqc.h ./libopenjpeg/openjpeg.h ./libopenjpeg/pi.h ./libopenjpeg/raw.h ./libopenjpeg/t1.h ./libopenjpeg/t2.h ./libopenjpeg/tcd.h ./libopenjpeg/tgt.h ./libopenjpeg/opj_includes.h
|
||||
@@ -11,7 +11,7 @@ INCLUDE = -Ilibopenjpeg
|
||||
CC = gcc
|
||||
AR = ar
|
||||
|
||||
-INSTALLDIR = /usr/lib
|
||||
+INSTALLDIR = ${PREFIX}/lib
|
||||
|
||||
# Converts cr/lf to just lf
|
||||
DOS2UNIX = dos2unix
|
||||
@@ -24,7 +24,7 @@ CFLAGS = $(COMPILERFLAGS) $(INCLUDE)
|
||||
|
||||
TARGET = openjpeg
|
||||
STATICLIB = lib$(TARGET).a
|
||||
-SHAREDLIB = lib$(TARGET)-$(VER_MAJOR).$(VER_MINOR).so
|
||||
+SHAREDLIB = lib$(TARGET).so.$(LIBopenjpeg_VERSION)
|
||||
LIBNAME = lib$(TARGET).so.$(VER_MAJOR)
|
||||
|
||||
|
||||
@@ -34,9 +34,9 @@ default: all
|
||||
all: dist
|
||||
|
||||
dist: OpenJPEG
|
||||
- mkdir dist
|
||||
+ mkdir -p dist
|
||||
cp *.a dist/
|
||||
- cp *.so dist/
|
||||
+ cp *.so.* dist/
|
||||
cp libopenjpeg/openjpeg.h dist/
|
||||
|
||||
dos2unix:
|
||||
@@ -51,13 +51,12 @@ $(STATICLIB): $(MODULES)
|
||||
$(AR) r $@ $(MODULES)
|
||||
|
||||
$(SHAREDLIB): $(MODULES)
|
||||
- $(CC) -s -shared -Wl,-soname,$(LIBNAME) -o $@ $(MODULES) $(LIBRARIES)
|
||||
+ $(CC) -s -shared -o $@ $(MODULES) $(LIBRARIES)
|
||||
|
||||
install:
|
||||
- install -m 644 -o root -g root $(STATICLIB) $(INSTALLDIR)
|
||||
- install -m 755 -o root -g root $(SHAREDLIB) $(INSTALLDIR)
|
||||
- ln -sf $(SHAREDLIB) $(INSTALLDIR)/$(LIBNAME)
|
||||
- ldconfig
|
||||
+ ${BSD_INSTALL_DATA} $(STATICLIB) $(INSTALLDIR)
|
||||
+ ${BSD_INSTALL_DATA} $(SHAREDLIB) $(INSTALLDIR)
|
||||
+ ${BSD_INSTALL_DATA} dist/openjpeg.h ${PREFIX}/include
|
||||
|
||||
clean:
|
||||
rm -rf core dist/ u2dtmp* $(MODULES) $(STATICLIB) $(SHAREDLIB) $(LIBNAME)
|
12
graphics/openjpeg/patches/patch-libopenjpeg_openjpeg_c
Normal file
12
graphics/openjpeg/patches/patch-libopenjpeg_openjpeg_c
Normal file
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-libopenjpeg_openjpeg_c,v 1.1.1.1 2007/02/08 00:29:22 todd Exp $
|
||||
--- libopenjpeg/openjpeg.c.orig Fri Jan 19 19:34:21 2007
|
||||
+++ libopenjpeg/openjpeg.c Fri Jan 19 19:34:34 2007
|
||||
@@ -261,7 +261,7 @@ void OPJ_CALLCONV opj_set_default_encode
|
||||
parameters->jpwl_sens_TPH[i] = -1; /* absent */
|
||||
}
|
||||
};
|
||||
-#endif USE_JPWL
|
||||
+#endif /* USE_JPWL */
|
||||
/* <<UniPG */
|
||||
}
|
||||
}
|
15
graphics/openjpeg/patches/patch-libopenjpeg_openjpeg_h
Normal file
15
graphics/openjpeg/patches/patch-libopenjpeg_openjpeg_h
Normal file
@ -0,0 +1,15 @@
|
||||
$OpenBSD: patch-libopenjpeg_openjpeg_h,v 1.1.1.1 2007/02/08 00:29:22 todd Exp $
|
||||
--- libopenjpeg/openjpeg.h.orig Fri Jan 19 18:20:04 2007
|
||||
+++ libopenjpeg/openjpeg.h Fri Jan 19 18:21:57 2007
|
||||
@@ -89,8 +89,10 @@ braindamage below.
|
||||
==========================================================
|
||||
*/
|
||||
|
||||
+#include <sys/types.h>
|
||||
+#include <sys/param.h>
|
||||
#ifndef MAX_PATH
|
||||
-#define MAX_PATH 260 /**< Maximum allowed size for filenames */
|
||||
+#define MAX_PATH PATH_MAX
|
||||
#endif /* MAX_PATH */
|
||||
|
||||
#define J2K_MAXRLVLS 33 /**< Number of maximum resolution level authorized */
|
4
graphics/openjpeg/pkg/DESCR
Normal file
4
graphics/openjpeg/pkg/DESCR
Normal file
@ -0,0 +1,4 @@
|
||||
The OpenJPEG library is an open-source JPEG 2000 codec written
|
||||
in C language. It has been developed in order to promote the
|
||||
use of JPEG 2000, the new still-image compression standard
|
||||
from the Joint Photographic Experts Group (JPEG).
|
2
graphics/openjpeg/pkg/PFRAG.shared
Normal file
2
graphics/openjpeg/pkg/PFRAG.shared
Normal file
@ -0,0 +1,2 @@
|
||||
@comment $OpenBSD: PFRAG.shared,v 1.1.1.1 2007/02/08 00:29:22 todd Exp $
|
||||
@lib lib/libopenjpeg.so.${LIBopenjpeg_VERSION}
|
4
graphics/openjpeg/pkg/PLIST
Normal file
4
graphics/openjpeg/pkg/PLIST
Normal file
@ -0,0 +1,4 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2007/02/08 00:29:22 todd Exp $
|
||||
%%SHARED%%
|
||||
include/openjpeg.h
|
||||
lib/libopenjpeg.a
|
Loading…
Reference in New Issue
Block a user