Update of /cvsroot/fink/dists/10.2/unstable/main/finkinfo/graphics
In directory usw-pr-cvs1:/tmp/cvs-serv28099/graphics
Added Files:
lcms-1.09-1.info lcms-1.09-1.patch
Log Message:
10.2 OK
--- NEW FILE: lcms-1.09-1.info ---
Package: lcms
Version: 1.09
Revision: 1
Source: http://www.littlecms.com/%n-%v.tar.gz
Source-MD5: 8e8e2303351f3c7de335f02196820a4e
License: LGPL
Depends: %N-shlibs (= %v-%r)
Patch: %f.patch
CompileScript: make PREFIX=%p
InstallScript: make install PREFIX=%p DESTDIR=%d
Docfiles: AUTHORS COPYING README
SplitOff: <<
Package: %N-shlibs
Files: lib/lib%N.1.0.9.dylib lib/lib%N.1.dylib
DocFiles: AUTHORS COPYING README doc/LCMSAPI.TXT doc/TUTORIAL.TXT
<<
Description: Free color management engine in 100K
DescDetail: <<
Little cms intends to be a small-footprint, speed optimized color
management engine in open source form. Since the initial release,
back in 1998, lcms has been continuously evolving, mostly thanks
to contributions done by skilled programmers, who generously donated
their valuable time to review the engine and the documentation.
For now, little cms has been ported to a big number of platforms and
is currently used in many open source and commercial products, as well
as being distributed in major linux enviroments.
<<
DescPort: <<
Doesn't use configure. Has to be configured by hand, including
additional header includes and making of dylibs.
<<
Maintainer: Martin Costabel <[EMAIL PROTECTED]>
Homepage: http://www.littlecms.com
--- NEW FILE: lcms-1.09-1.patch ---
diff -ur lcms-1.09.ori/include/lcms.h lcms-1.09/include/lcms.h
--- lcms-1.09.ori/include/lcms.h Wed Aug 7 21:34:37 2002
+++ lcms-1.09/include/lcms.h Thu Aug 8 12:20:57 2002
@@ -112,7 +112,7 @@
# define USE_C 1
#endif
-#if defined(__sgi__) || defined(__sgi) || defined(__powerpc__)
+#if defined(__sgi__) || defined(__sgi) || defined(__powerpc__) || defined(__ppc__)
# define USE_BIG_ENDIAN 1
#endif
@@ -128,7 +128,7 @@
# define USE_BIG_ENDIAN 1
#endif
-#if defined(__OpenBSD__) || defined(__NetBSD__) || defined(__FreeBSD__)
+#if defined(__OpenBSD__) || defined(__NetBSD__) || defined(__FreeBSD__) ||
+defined(__Apple__)
# include <sys/types.h>
# define USE_INT64 1
# undef LONGLONG
diff -ur lcms-1.09.ori/samples/icctrans.c lcms-1.09/samples/icctrans.c
--- lcms-1.09.ori/samples/icctrans.c Fri Jun 14 17:17:36 2002
+++ lcms-1.09/samples/icctrans.c Tue Aug 6 23:24:10 2002
@@ -31,6 +31,9 @@
#include "lcms.h"
#include <stdarg.h>
#include <ctype.h>
+#ifdef __APPLE__
+#include <unistd.h>
+#endif
// xgetopt() interface -----------------------------------------------------
diff -ur lcms-1.09.ori/src/cmsio1.c lcms-1.09/src/cmsio1.c
--- lcms-1.09.ori/src/cmsio1.c Fri Jun 14 17:06:25 2002
+++ lcms-1.09/src/cmsio1.c Wed Aug 7 18:20:41 2002
@@ -38,6 +38,9 @@
#include <stdlib.h>
#include <time.h>
+#ifdef __APPLE__
+#include <unistd.h>
+#endif
cmsHPROFILE LCMSEXPORT cmsOpenProfileFromFile(const char *ICCProfile, const char
*sAccess);
cmsHPROFILE LCMSEXPORT cmsOpenProfileFromMem(LPVOID MemPtr, DWORD dwSize);
Only in lcms-1.09/src: cmsio1.c~
diff -ur lcms-1.09.ori/src/makefile lcms-1.09/src/makefile
--- lcms-1.09.ori/src/makefile Mon Jun 17 16:29:45 2002
+++ lcms-1.09/src/makefile Wed Aug 7 18:19:35 2002
@@ -2,7 +2,7 @@
CFLAGS = -g -O4 -I../include -fomit-frame-pointer -Wall
LDFLAGS = -lm
-BASEDIR = $(DESTDIR)/usr
+BASEDIR = $(DESTDIR)/$(PREFIX)
BINDIR = $(BASEDIR)/bin
LIBDIR = $(BASEDIR)/lib
INCDIR = $(BASEDIR)/include
@@ -21,7 +21,7 @@
-all: liblcms.a liblcms.so.${VERSION}
+all: liblcms.a liblcms.${VERSION}.dylib
#
@@ -32,19 +32,22 @@
$(AR) liblcms.a $(OBJS)
$(RANLIB) liblcms.a
-liblcms.so.${VERSION}: $(OBJS)
- -$(CC) $(CFLAGS) $(LDFLAGS) -shared -o liblcms.so.${VERSION} $(OBJS)
- -ln -s liblcms.so.${VERSION} liblcms.so.1
- -ln -s liblcms.so.1 liblcms.so
+liblcms.${VERSION}.dylib: $(OBJS)
+ $(CC) $(CFLAGS) $(LDFLAGS) -prebind -dynamiclib \
+ -install_name $(PREFIX)/lib/liblcms.1.dylib \
+ -compatibility_version $(VERSION) -current_version $(VERSION) \
+ -o liblcms.${VERSION}.dylib $(OBJS)
+ ln -s liblcms.${VERSION}.dylib liblcms.1.dylib
+ ln -s liblcms.1.dylib liblcms.dylib
#
# Installation
#
-install: liblcms.a liblcms.so.${VERSION}
+install: liblcms.a liblcms.${VERSION}.dylib
mkdir -p $(BINDIR) $(LIBDIR) $(INCDIR)
- -cp -a liblcms.so* $(LIBDIR)
- cp -a liblcms.a $(LIBDIR)
+ -cp -R liblcms*.dylib $(LIBDIR)
+ cp -R liblcms.a $(LIBDIR)
cp ../include/lcms.h ../include/icc34.h $(INCDIR)
#
@@ -61,4 +64,4 @@
#
clean:
- -rm $(OBJS) liblcms.a liblcms.so.${VERSION} liblcms.so.1 liblcms.so
+ -rm $(OBJS) liblcms.a liblcms.${VERSION}.dylib liblcms.1.dylib liblcms.dylib
-------------------------------------------------------
This sf.net email is sponsored by: Jabber - The world's fastest growing
real-time communications platform! Don't just IM. Build it in!
http://www.jabber.com/osdn/xim
_______________________________________________
Fink-commits mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-commits