Subject: pkg/12342: new pkg graphics/lcms
To: None <gnats-bugs@gnats.netbsd.org>
From: None <nrahlstr@winternet.com>
List: netbsd-bugs
Date: 03/06/2001 14:52:54
>Number:         12342
>Category:       pkg
>Synopsis:       new pkg graphics/lcms
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Tue Mar 06 18:44:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Nathan Ahlstrom
>Release:        NetBSD-1.5
>Organization:
	Me
>Environment:
	
System: NetBSD games 1.5 NetBSD 1.5 (GENERIC) #1: Thu Feb 8 16:57:35 CST 2001 root@games:/a/src/sys/arch/i386/compile/GENERIC i386


>Description:
	This is a new pkg of the Light Color Management System.
	It is taken from FreeBSD and is required for the forthcoming
	libmng pkg, which is utilized by the qt2 pkgs.
>How-To-Repeat:
	Unshar the attached files.  I have also attached here the 
	Release Notes/README of the lcms development team.  I am
	uncertain if this is necessary for new ports, so here it is. ;-)

  New in ver 1.06
  ===============

  lcms is now more portable.

  Some functions has been promoted to API, and a lot of new formats
  has been added. New functions includes

        cmsxyY2XYZ()
        cmsXYZ2xyY()
        cmsBuildRGB2XYZtransferMatrix()
        cmsAdaptToIlluminant()

  For a explanation of these functions, see the api reference.


   History
   =======

     May/20/2000: Revision 1.06 released. It intends to be fully
                  portable. Fixed a bug that slows down matrix
                  shaper profiler processing. A lot of formats added.

     Mar/30/2000: Revision 1.04 released. It includes a full MSVC port
                  and a preliminar linux port.

     Feb/04/2000: Revision 1.03 released. Added Ted Ferenc's C++ wrapper

     Jan/20/2000: Fixed a bug that appairs when absolute intents
                  are used between two matrix-shaper profiles.
     Jan/15/2000: Added grayscale + alpha format handling.
     Jan/07/2000: Fixed cmsCreateRGBProfile() bug. Thanks to
                  Steven Greaves for hunting and fixing.

     Dec/21/1999: Revision 1.02 released.
     Dec/13/1999: Killed a nasty bug in absolute colorimetric intents.
                  Some images got bluish. Hopefully fixed.

     Nov/2/1999:  First public version 1.0, then 1.01 for LGPL

     Oct/19/1999: Fixed inter pcs conversion bug. Now cube root is
                  faster and there is no need of precomputed tables
                  (DLL is now about 100K)

     August/23/1999: Added device-link profile support (read only)
     August/16/1999: Changed Manufacturer/Model order on cmsTakeProductName()
                      Fixed some composite/separation bugs

     July/20/1999: - Added a more detailed documentation
     Juny/05/1999: - Added some examples
     Juny/01/1999: - First beta

     [..Alpha information stripped..]


>Fix:
	Run attached shar archive, commit.

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	lcms
#	lcms/patches
#	lcms/patches/patch-aa
#	lcms/patches/patch-ab
#	lcms/Makefile
#	lcms/pkg
#	lcms/pkg/DESCR
#	lcms/pkg/PLIST
#	lcms/files
#	lcms/files/md5
#	lcms/files/patch-sum
#
echo c - lcms
mkdir -p lcms > /dev/null 2>&1
echo c - lcms/patches
mkdir -p lcms/patches > /dev/null 2>&1
echo x - lcms/patches/patch-aa
sed 's/^X//' >lcms/patches/patch-aa << 'END-of-lcms/patches/patch-aa'
X$NetBSD$
X
X+++ configure	Mon Oct 30 09:40:41 2000
X@@ -2259,35 +2259,13 @@
X 
X case "$host" in
X-  i?86-pc-*)
X+  i?86-*-*)
X     CFLAGS="$CFLAGS -fomit-frame-pointer"
X     ;;
X esac
X 
X-echo $ac_n "checking for __int64 type""... $ac_c" 1>&6
X-if test "$cross_compiling" = yes; then
X-  echo "$ac_t""assuming no" 1>&6
X-else
X-  cat > conftest.$ac_ext <<EOF
X-#line 2273 "configure"
X-#include "confdefs.h"
X-int main (void) { __int64 i = 0; return (i == 0);}
X-EOF
X-then
X+echo "using int64 on BSD" 1>&6
X   cat >> confdefs.h <<\EOF
X #define USE_INT64 1
X EOF
X-
X-  	echo "$ac_t""ok" 1>&6
X-else
X-  cat conftest.$ac_ext >&5
X-  rm -fr conftest*
X-  echo "$ac_t""no" 1>&6
X-fi
X-rm -fr conftest*
X-fi
X-
X 
X echo $ac_n "checking for optimization""... $ac_c" 1>&6
END-of-lcms/patches/patch-aa
echo x - lcms/patches/patch-ab
sed 's/^X//' >lcms/patches/patch-ab << 'END-of-lcms/patches/patch-ab'
X$NetBSD$
X
X+++ source/cmsmtrx.c	Mon Oct 30 09:53:39 2000
X@@ -33,2 +33,3 @@
X #include "lcms.h"
X+#include <sys/types.h>
X 
X@@ -250,3 +251,3 @@
X #ifdef USE_INT64
X-       __int64 l = (__int64) a * b + 0x8000i64;
X+       u_int64_t l = (u_int64_t) a * b + (u_int64_t)0x8000;
X        return (Fixed32) (l >> 16);
X@@ -711,2 +712,2 @@
X        VEC3scaleAndCut(&r -> v[2], &v -> v[2], d);
X-}
X+}
END-of-lcms/patches/patch-ab
echo x - lcms/Makefile
sed 's/^X//' >lcms/Makefile << 'END-of-lcms/Makefile'
X# $NetBSD$
X# FreeBSD: ports/graphics/lcms/Makefile,v 1.2 2000/12/19 15:36:26 sobomax Exp
X
XDISTNAME=	lcms-1.06
XPKGNAME=	${DISTNAME}
XCATEGORIES=	graphics
XMASTER_SITES=	http://www.littlecms.com/ \
X		http://www.abaforum.es/martim/
X
XMAINTAINER=	packages@NetBSD.org
XHOMEPAGE=	http://www.littlecms.com/
XCOMMENT=	"Light Color Management System -- a color management library"
X
XUSE_LIBTOOL=	yes
XGNU_CONFIGURE=	yes
XINSTALLS_SHLIB=	yes
X
Xpost-install:
X	${INSTALL_DATA_DIR} ${PREFIX}/share/doc/lcms
X	${CP} -rp ${WRKSRC}/doc/* ${PREFIX}/share/doc/lcms/
X
X.include "../../mk/bsd.pkg.mk"
END-of-lcms/Makefile
echo c - lcms/pkg
mkdir -p lcms/pkg > /dev/null 2>&1
echo x - lcms/pkg/DESCR
sed 's/^X//' >lcms/pkg/DESCR << 'END-of-lcms/pkg/DESCR'
XLCMS is the Little Color Management System, a Color Matching Method
X(CMM) library which implements fast transforms between ICC profiles.
XIt is released under LGPL with source code and meant to be portable.
X
XColor management refers to techniques that ensure consistent color
Xas images are transferred from scanners or cameras to monitors and
Xprinters.
X
XWWW: http://www.abaforum.es/martim/lcms.htm
END-of-lcms/pkg/DESCR
echo x - lcms/pkg/PLIST
sed 's/^X//' >lcms/pkg/PLIST << 'END-of-lcms/pkg/PLIST'
X@comment $NetBSD$
Xbin/testcms
Xinclude/lcms/icc34.h
Xinclude/lcms/lcms.h
Xlib/liblcms.a
Xlib/liblcms.la
Xlib/liblcms.so
Xlib/liblcms.so.1
Xlib/liblcms.so.1.6
Xshare/doc/lcms/README.simple
Xshare/doc/lcms/filter.c
Xshare/doc/lcms/jpgemb.c
Xshare/doc/lcms/lcmsapi.txt
Xshare/doc/lcms/neutral.c
Xshare/doc/lcms/pngchrm.c
Xshare/doc/lcms/simple.c
Xshare/doc/lcms/tiffemb.c
Xshare/doc/lcms/tutorial.txt
Xshare/doc/lcms/wtpt.c
X@dirrm share/doc/lcms
X@dirrm include/lcms
END-of-lcms/pkg/PLIST
echo c - lcms/files
mkdir -p lcms/files > /dev/null 2>&1
echo x - lcms/files/md5
sed 's/^X//' >lcms/files/md5 << 'END-of-lcms/files/md5'
X$NetBSD$
X
XMD5 (lcms-1.06.tar.gz) = 7e0a3642b42628b1fc40c1702a5e71e0
END-of-lcms/files/md5
echo x - lcms/files/patch-sum
sed 's/^X//' >lcms/files/patch-sum << 'END-of-lcms/files/patch-sum'
X$NetBSD$
X
XMD5 (patch-aa) = f4b8f650fc71e7f4d42083520aaa0f4f
XMD5 (patch-ab) = 3118acfbbd104306fefcae21dcd82eb2
END-of-lcms/files/patch-sum
exit

>Release-Note:
>Audit-Trail:
>Unformatted: