add jbigkit port

-
A lossless image compression library
This commit is contained in:
brad 1999-05-08 19:17:39 +00:00
parent 7cb0135d69
commit 85cd7b492e
10 changed files with 223 additions and 0 deletions

31
graphics/jbigkit/Makefile Normal file
View File

@ -0,0 +1,31 @@
# $OpenBSD: Makefile,v 1.1.1.1 1999/05/08 19:17:39 brad Exp $
# $FreeBSD: Makefile,v 1.5 1998/09/14 22:19:05 smace Exp $
DISTNAME= jbigkit-1.0
CATEGORIES= graphics
MASTER_SITES= ftp://ftp.informatik.uni-erlangen.de/pub/doc/ISO/JBIG/
MAINTAINER= brad@openbsd.org
WRKSRC= ${WRKDIR}/jbigkit
# post-patch must be defined before bsd.port.mk is included so it will
# be called. However, we need to have the body of the target after
# bsd.port.mk is included so NO_SHARED_LIBS is defined.
# Define the target twice, using :
post-patch:
post-install:
${MKDIR} ${PREFIX}/share/doc/jbig
${INSTALL_DATA} ${WRKSRC}/libjbig/jbig.doc ${PREFIX}/share/doc/jbig
${LDCONFIG} -m ${PREFIX}/lib
.include <bsd.port.mk>
# The patches assumed shared libs would be build. If building
# on a host that does not support shared libs, e.g. the alpha,
# apply one more patch.
post-patch:
.if defined(NO_SHARED_LIBS)
@(cd ${DISTDIR}; ${PATCH} ${PATCH_DIST_ARGS} < ${FILESDIR}/patch)
.endif

View File

@ -0,0 +1,3 @@
MD5 (jbigkit-1.0.tar.gz) = 97676df72cd5a1f4b589c28cccf58162
RMD160 (jbigkit-1.0.tar.gz) = e84535b2330f6052a2ca3ea3941e21e291b7e916
SHA1 (jbigkit-1.0.tar.gz) = 04ed5b5a4e17465f8ef36e4631a281a5a99436b2

View File

@ -0,0 +1,42 @@
--- Makefile.orig2 Sat May 8 15:11:39 1999
+++ Makefile Sat May 8 15:11:59 1999
@@ -61,4 +61,3 @@
install -c -m 644 -o bin -g bin libjbig/jbig.h ${PREFIX}/include
mkdir -p ${PREFIX}/lib
install -c -m 644 -o bin -g bin libjbig/libjbig.a ${PREFIX}/lib
- install -c -m 644 -o bin -g bin libjbig/libjbig.so.1.0 ${PREFIX}/lib
--- libjbig/Makefile.orig2 Sat May 8 15:13:43 1999
+++ libjbig/Makefile Sat May 8 15:13:52 1999
@@ -7,9 +7,7 @@
# Options for the compiler: A high optimization level is suggested
#CFLAGS += -Wall -ansi -pedantic
-SOJBIGLIB=libjbig.so.1.0
-
-all: libjbig.a $(SOJBIGLIB)
+all: libjbig.a
tstcodec: tstcodec.c jbig.c jbig.h jbig_tab.o
$(CC) $(CFLAGS) -o tstcodec -DTEST_CODEC tstcodec.c jbig.c \
@@ -20,20 +18,10 @@
ar rc libjbig.a jbig.o jbig_tab.o
ranlib libjbig.a
-$(SOJBIGLIB): jbig.so jbig_tab.so
- rm -f ${.TARGET}
- ld -Bshareable -o ${.TARGET} ${.ALLSRC}
-
jbig.o: jbig.c jbig.h
-.SUFFIXES: .c .so
-.c.so:
- ${CC} -c -fPIC -DPIC ${CFLAGS} ${.IMPSRC} -o ${.TARGET}
-jbig.so: jbig.c jbig.h
-jbig_tab.so: jbig_tab.c
-
test: tstcodec
./tstcodec
clean:
- rm -f *.o *~ core gmon.out dbg_d\=??.pbm tstcodec libjbig.so.1.0 libjbig.a
+ rm -f *.o *~ core gmon.out dbg_d\=??.pbm tstcodec libjbig.a

View File

@ -0,0 +1,40 @@
--- Makefile.orig Mon Oct 12 12:12:48 1998
+++ Makefile Sat May 8 14:33:41 1999
@@ -2,13 +2,14 @@
# $Id: patch-aa,v 1.1.1.1 1999/05/08 19:17:39 brad Exp $
# Select an ANSI/ISO C compiler here, GNU gcc is recommended
-CC = gcc
+#CC = gcc
# Options for the compiler: A high optimization level is suggested
-CCFLAGS = -O2 -W
+#CCFLAGS = -O2 -W
#CCFLAGS = -O -g -W -Wall -ansi -pedantic #-DDEBUG # developer only
-CFLAGS = $(CCFLAGS) -I../libjbig
+CFLAGS += -I../libjbig
+
VERSION=1.0
@@ -45,3 +46,19 @@
scp ANNOUNCE \
$(DISTUID)@$(DISTHOST):$(DISTPATH)/jbigkit-$(VERSION)-announce.txt
mv ../jbigkit-$(VERSION).tar.gz $(HOME)/.www/download/
+
+install:
+ mkdir -p ${PREFIX}/bin
+ install -c -s -m 755 -o bin -g bin pbmtools/jbgtopbm ${PREFIX}/bin
+ install -c -s -m 755 -o bin -g bin pbmtools/pbmtojbg ${PREFIX}/bin
+ mkdir -p ${PREFIX}/man/man1
+ install -c -m 644 -o bin -g bin pbmtools/pbmtojbg.1 ${PREFIX}/man/man1
+ install -c -m 644 -o bin -g bin pbmtools/jbgtopbm.1 ${PREFIX}/man/man1
+ mkdir -p ${PREFIX}/man/man5
+ install -c -m 644 -o bin -g bin pbmtools/pbm.5 ${PREFIX}/man/man5
+ install -c -m 644 -o bin -g bin pbmtools/pgm.5 ${PREFIX}/man/man5
+ mkdir -p ${PREFIX}/include
+ install -c -m 644 -o bin -g bin libjbig/jbig.h ${PREFIX}/include
+ mkdir -p ${PREFIX}/lib
+ install -c -m 644 -o bin -g bin libjbig/libjbig.a ${PREFIX}/lib
+ install -c -m 644 -o bin -g bin libjbig/libjbig.so.1.0 ${PREFIX}/lib

View File

@ -0,0 +1,42 @@
--- libjbig/Makefile.orig Fri Apr 10 21:33:27 1998
+++ libjbig/Makefile Sat May 8 15:10:58 1999
@@ -2,12 +2,14 @@
# $Id: patch-ab,v 1.1.1.1 1999/05/08 19:17:39 brad Exp $
# Select an ANSI/ISO C compiler here, GNU gcc is recommended
-CC = gcc
+#CC = gcc
# Options for the compiler: A high optimization level is suggested
-CFLAGS = -O -Wall -ansi -pedantic
+#CFLAGS += -Wall -ansi -pedantic
-all: libjbig.a tstcodec
+SOJBIGLIB=libjbig.so.1.0
+
+all: libjbig.a $(SOJBIGLIB)
tstcodec: tstcodec.c jbig.c jbig.h jbig_tab.o
$(CC) $(CFLAGS) -o tstcodec -DTEST_CODEC tstcodec.c jbig.c \
@@ -18,10 +20,20 @@
ar rc libjbig.a jbig.o jbig_tab.o
ranlib libjbig.a
+$(SOJBIGLIB): jbig.so jbig_tab.so
+ rm -f ${.TARGET}
+ ld -Bshareable -o ${.TARGET} ${.ALLSRC}
+
jbig.o: jbig.c jbig.h
+.SUFFIXES: .c .so
+.c.so:
+ ${CC} -c -fPIC -DPIC ${CFLAGS} ${.IMPSRC} -o ${.TARGET}
+jbig.so: jbig.c jbig.h
+jbig_tab.so: jbig_tab.c
+
test: tstcodec
./tstcodec
clean:
- rm -f *.o *~ core gmon.out dbg_d\=??.pbm tstcodec
+ rm -f *.o *~ core gmon.out dbg_d\=??.pbm tstcodec libjbig.so.1.0 libjbig.a

View File

@ -0,0 +1,16 @@
--- pbmtools/Makefile.orig Thu Jun 25 13:30:38 1998
+++ pbmtools/Makefile Thu Jun 25 13:31:00 1998
@@ -5,11 +5,11 @@
CC = gcc
# Options for the compiler
-CFLAGS = -g -Wall -ansi -pedantic -I../libjbig
+CFLAGS += -Wall -ansi -pedantic -I../libjbig
.SUFFIXES: .1 .5 .txt $(SUFFIXES)
-all: pbmtojbg jbgtopbm pbmtojbg.txt jbgtopbm.txt pbm.txt pgm.txt
+all: pbmtojbg jbgtopbm
pbmtojbg: pbmtojbg.o ../libjbig/libjbig.a
$(CC) $(CFLAGS) -o pbmtojbg pbmtojbg.o -L../libjbig -ljbig

View File

@ -0,0 +1 @@
A lossless image compression library

View File

@ -0,0 +1,26 @@
JBIG-KIT implements a highly effective data compression algorithm for
bi-level high-resolution images such as fax pages or scanned
documents.
JBIG-KIT provides a portable library of compression and decompression
functions with a documented interface that you can very easily include
into your image or document processing software. In addition, JBIG-KIT
provides ready-to-use compression and decompression programs with a
simple command line interface (similar to the converters found in Jef
Poskanzer's PBM graphics file conversion package).
JBIG-KIT implements the specification
International Standard ISO/IEC 11544:1993 and ITU-T Recommendation
T.82(1993), "Information technology - Coded representation of picture
and audio information - progressive bi-level image compression",
<http://www.itu.ch/itudoc/itu-t/rec/t/t82_23822.html>,
which is commonly referred to as the "JBIG standard". JBIG (Joint
Bi-level Image experts Group) is the committee which developed this
international standard for the lossless compression of images using
arithmetic coding. Like the well-known compression algorithms JPEG and
MPEG, also JBIG has been developed and published by the International
Organization for Standardization (ISO) and the International
Telecommunication Union (ITU) (see also <http://www.iso.ch/> and
<http://www.itu.ch/>).

View File

@ -0,0 +1,12 @@
include/jbig.h
bin/pbmtojbg
bin/jbgtopbm
lib/libjbig.a
lib/libjbig.so.1.0
@exec /sbin/ldconfig -m %B
man/man1/jbgtopbm.1
man/man1/pbmtojbg.1
man/man5/pbm.5
man/man5/pgm.5
share/doc/jbig/jbig.doc
@dirrm share/doc/jbig

View File

@ -0,0 +1,10 @@
include/jbig.h
bin/pbmtojbg
bin/jbgtopbm
lib/libjbig.a
man/man1/jbgtopbm.1
man/man1/pbmtojbg.1
man/man5/pbm.5
man/man5/pgm.5
share/doc/jbig/jbig.doc
@dirrm share/doc/jbig