Date: Mon, 30 Oct 2000 10:23:32 -0500 (EST) From: Mikhail Teterin <mi@aldan.algebra.com> To: FreeBSD-gnats-submit@freebsd.org Cc: martim@abaforum.es Subject: ports/22420: new port graphics/lcms Message-ID: <200010301523.e9UFNWL66705@aldan.algebra.com>
next in thread | raw e-mail | index | archive | help
>Number: 22420 >Category: ports >Synopsis: new port graphics/lcms >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Mon Oct 30 07:30:00 PST 2000 >Closed-Date: >Last-Modified: >Originator: Mikhail Teterin >Release: FreeBSD 4.1.1-STABLE i386 >Organization: Virtual Estates, Inc. >Environment: >Description: This is the port of Light Color Management System. It is needed/desired by libmng, which is not ported yet, and, possibly, other software. WWW: http://www.abaforum.es/martim/download.htm Regretfully, the hand-optimized assembler will only build on Windoz/Pentium, but, may be, this will change in the future. This port also forces the use of int64 down configure's throat (see patches) and fixes the template used to determine whether -fomit-frame-pointer should be used. After the build, the compulsory make test is run. >How-To-Repeat: >Fix: # 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/files # lcms/files/patch-aa # lcms/files/patch-ab # lcms/Makefile # lcms/distinfo # lcms/pkg-comment # lcms/pkg-descr # lcms/pkg-plist # echo c - lcms mkdir -p lcms > /dev/null 2>&1 echo c - lcms/files mkdir -p lcms/files > /dev/null 2>&1 echo x - lcms/files/patch-aa sed 's/^X//' >lcms/files/patch-aa << 'END-of-lcms/files/patch-aa' X--- configure Thu May 18 20:08:40 2000 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-echo "configure:2268: checking for __int64 type" >&5 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-if { (eval echo configure:2277: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 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- echo "configure: failed program was:" >&5 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/files/patch-aa echo x - lcms/files/patch-ab sed 's/^X//' >lcms/files/patch-ab << 'END-of-lcms/files/patch-ab' X--- source/cmsmtrx.c Thu May 18 18:08:13 2000 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/files/patch-ab echo x - lcms/Makefile sed 's/^X//' >lcms/Makefile << 'END-of-lcms/Makefile' X# New ports collection makefile for: Light Color Management System X# Date created: October 30, 2000 X# Whom: mi X# X# $FreeBSD$ X# X XPORTNAME= lcms XPORTVERSION= 1.06 XCATEGORIES= graphics XMASTER_SITES= http://www.abaforum.es/martim/ X XMAINTAINER= mi@aldan.algebra.com X XINSTALLS_SHLIB= yes X XGNU_CONFIGURE= Yes X X#.if ${ARCH} == "i386" X# The assembler code is for Windows/Pentium only :( X#CONFIGURE_ARGS+= --with-optimization=assembler X#.endif X Xpost-build: test X Xtest: X cd ${WRKSRC}/profiles && ${WRKSRC}/testbed/testcms X X.ifndef NOPORTDOCS Xpost-install: X ${MKDIR} ${PREFIX}/share/doc/lcms X ${CP} -rp ${WRKSRC}/doc/* ${PREFIX}/share/doc/lcms/ X XPLIST_SUB= DOC="" X.else XPLIST_SUB= DOC="@comment " X.endif X X.include <bsd.port.mk> END-of-lcms/Makefile echo x - lcms/distinfo sed 's/^X//' >lcms/distinfo << 'END-of-lcms/distinfo' XMD5 (lcms-1.06.tar.gz) = 7e0a3642b42628b1fc40c1702a5e71e0 END-of-lcms/distinfo echo x - lcms/pkg-comment sed 's/^X//' >lcms/pkg-comment << 'END-of-lcms/pkg-comment' XLight Color Management System -- a color management library END-of-lcms/pkg-comment echo x - lcms/pkg-descr sed 's/^X//' >lcms/pkg-descr << 'END-of-lcms/pkg-descr' XWhat is lcms: X X lcms deals with color management stuff. X lcms is a CMM engine. Implements fast transforms between X ICC profiles. X lcms is a library FOR PROGRAMMERS ONLY.lcms is FREE and does X include SOURCE CODE.lcms is a standalone engine. X lcms intends to be PORTABLE across several platforms. X lcms is distributed under GNU Lesser license agreement. 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' Xinclude/lcms/lcms.h Xinclude/lcms/icc34.h X@dirrm include/lcms Xlib/liblcms.a Xlib/liblcms.so.1 Xlib/liblcms.so Xlib/liblcms.la Xbin/testcms X%%DOC%%share/doc/lcms/README.simple X%%DOC%%share/doc/lcms/filter.c X%%DOC%%share/doc/lcms/jpgemb.c X%%DOC%%share/doc/lcms/lcmsapi.txt X%%DOC%%share/doc/lcms/neutral.c X%%DOC%%share/doc/lcms/pngchrm.c X%%DOC%%share/doc/lcms/simple.c X%%DOC%%share/doc/lcms/tiffemb.c X%%DOC%%share/doc/lcms/tutorial.txt X%%DOC%%share/doc/lcms/wtpt.c X%%DOC%%@dirrm share/doc/lcms/ END-of-lcms/pkg-plist exit >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200010301523.e9UFNWL66705>