diff options
author | tg <tg@FreeBSD.org> | 1996-12-23 15:12:29 +0800 |
---|---|---|
committer | tg <tg@FreeBSD.org> | 1996-12-23 15:12:29 +0800 |
commit | 5aeb814578d6d449ae18a21d9ebb67b8ed5647c9 (patch) | |
tree | 8e5005d43609145b191037686a9dcea8e36bad65 /graphics | |
parent | 44973fc000eda00109ede09c359a4c6b7600209d (diff) | |
download | freebsd-ports-gnome-5aeb814578d6d449ae18a21d9ebb67b8ed5647c9.tar.gz freebsd-ports-gnome-5aeb814578d6d449ae18a21d9ebb67b8ed5647c9.tar.zst freebsd-ports-gnome-5aeb814578d6d449ae18a21d9ebb67b8ed5647c9.zip |
Import of jbigkit, which contains yet another graphics library.
Closes PR 2066.
Submitted by: Mikhail Teterin <mi@aldan.ziplink.net>
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/jbigkit/Makefile | 31 | ||||
-rw-r--r-- | graphics/jbigkit/distinfo | 1 | ||||
-rw-r--r-- | graphics/jbigkit/files/patch-aa | 21 | ||||
-rw-r--r-- | graphics/jbigkit/files/patch-ab | 31 | ||||
-rw-r--r-- | graphics/jbigkit/pkg-comment | 1 | ||||
-rw-r--r-- | graphics/jbigkit/pkg-descr | 26 | ||||
-rw-r--r-- | graphics/jbigkit/pkg-plist | 11 |
7 files changed, 122 insertions, 0 deletions
diff --git a/graphics/jbigkit/Makefile b/graphics/jbigkit/Makefile new file mode 100644 index 000000000000..49c41a381679 --- /dev/null +++ b/graphics/jbigkit/Makefile @@ -0,0 +1,31 @@ +# New ports collection makefile for: jbig +# Version required: 0.9 +# Date created: 19 November 1996 +# Whom: mi +# +# $Id$ +# + +DISTNAME= jbigkit-0.9 +CATEGORIES= graphics +MASTER_SITES= ftp://ftp.informatik.uni-erlangen.de/pub/doc/ISO/JBIG/ + +MAINTAINER= mi@aldan.ziplink.net + +# Yes, CCFLAGS, not CFLAGS! -mi +MAKE_FLAGS= CCFLAGS="${CFLAGS}" CC="${CC}" +WRKSRC= work/jbigkit +MAN1= jbgtopbm.1 pbmtojbg.1 +MAN5= pbm.5 + +post-build: + cd $(WRKSRC); make test + +post-install: +.if !defined(NOPORTDOCS) + ${MKDIR} ${PREFIX}/share/doc/jbig + ${INSTALL_DATA} ${WRKSRC}/libjbig/jbig.doc ${PREFIX}/share/doc/jbig +.endif + /sbin/ldconfig -m ${PREFIX}/lib + +.include <bsd.port.mk> diff --git a/graphics/jbigkit/distinfo b/graphics/jbigkit/distinfo new file mode 100644 index 000000000000..668018b6ecd9 --- /dev/null +++ b/graphics/jbigkit/distinfo @@ -0,0 +1 @@ +MD5 (jbigkit-0.9.tar.gz) = fbc972a96f3e4e9c90eea96020085e2c diff --git a/graphics/jbigkit/files/patch-aa b/graphics/jbigkit/files/patch-aa new file mode 100644 index 000000000000..23836798c1ba --- /dev/null +++ b/graphics/jbigkit/files/patch-aa @@ -0,0 +1,21 @@ +--- Makefile.orig Tue Jan 9 16:26:33 1996 ++++ Makefile Tue Dec 3 18:33:09 1996 +@@ -30,3 +30,18 @@ + distribution: clean + rm -f libjbig/libjbig.a + (cd ..; tar -c -v --exclude RCS -f jbigkit.tar jbigkit) ++ ++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 ++ 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.0.9 ${PREFIX}/lib diff --git a/graphics/jbigkit/files/patch-ab b/graphics/jbigkit/files/patch-ab new file mode 100644 index 000000000000..20b6609121dc --- /dev/null +++ b/graphics/jbigkit/files/patch-ab @@ -0,0 +1,31 @@ +--- libjbig/Makefile.orig Tue Jan 9 16:18:50 1996 ++++ libjbig/Makefile Sat Dec 21 17:41:00 1996 +@@ -7,7 +7,7 @@ + # Options for the compiler: A high optimization level is suggested + CFLAGS = -O -Wall -ansi -pedantic + +-all: libjbig.a tstcodec ++all: libjbig.a libjbig.so.0.9 tstcodec + + tstcodec: tstcodec.c jbig.c jbig.h jbig_tab.o + $(CC) $(CFLAGS) -o tstcodec -DTEST_CODEC tstcodec.c jbig.c \ +@@ -18,7 +18,19 @@ + ar rc libjbig.a jbig.o jbig_tab.o + ranlib libjbig.a + ++libjbig.so.0.9: 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 diff --git a/graphics/jbigkit/pkg-comment b/graphics/jbigkit/pkg-comment new file mode 100644 index 000000000000..b687e5ae2052 --- /dev/null +++ b/graphics/jbigkit/pkg-comment @@ -0,0 +1 @@ +JBIG-KIT lossless image compression library diff --git a/graphics/jbigkit/pkg-descr b/graphics/jbigkit/pkg-descr new file mode 100644 index 000000000000..2fd920bc1d81 --- /dev/null +++ b/graphics/jbigkit/pkg-descr @@ -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/>). diff --git a/graphics/jbigkit/pkg-plist b/graphics/jbigkit/pkg-plist new file mode 100644 index 000000000000..43d7889e9e7e --- /dev/null +++ b/graphics/jbigkit/pkg-plist @@ -0,0 +1,11 @@ +include/jbig.h +bin/pbmtojbg +bin/jbgtopbm +man/man1/jbgtopbm.1.gz +man/man1/pbmtojbg.1.gz +man/man5/pbm.5.gz +lib/libjbig.a +@exec ranlib %D/%F +lib/libjbig.so.0.9 +@exec ldconfig -m %B +share/doc/jbig/jbig.doc |