diff options
author | Kirill Ponomarev <krion@FreeBSD.org> | 2004-05-23 19:08:26 +0000 |
---|---|---|
committer | Kirill Ponomarev <krion@FreeBSD.org> | 2004-05-23 19:08:26 +0000 |
commit | 56f284e72825a295fe94d1d211aa19e4aaefae27 (patch) | |
tree | 8655c4d20d9c94a0f739c10ec19afe30ef0a6622 /graphics | |
parent | 0be207c7414d62e6d182bce5a1fea19371466c85 (diff) | |
download | ports-56f284e72825a295fe94d1d211aa19e4aaefae27.tar.gz ports-56f284e72825a295fe94d1d211aa19e4aaefae27.zip |
Notes
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/lcms/Makefile | 37 | ||||
-rw-r--r-- | graphics/lcms/distinfo | 4 | ||||
-rw-r--r-- | graphics/lcms/files/Makefile.bsd | 18 | ||||
-rw-r--r-- | graphics/lcms/files/patch-32bit | 4 | ||||
-rw-r--r-- | graphics/lcms/files/patch-config | 14 | ||||
-rw-r--r-- | graphics/lcms/files/patch-icc34 | 13 | ||||
-rw-r--r-- | graphics/lcms/pkg-plist | 18 |
7 files changed, 51 insertions, 57 deletions
diff --git a/graphics/lcms/Makefile b/graphics/lcms/Makefile index c737966f63ca..bdc6a6d76a06 100644 --- a/graphics/lcms/Makefile +++ b/graphics/lcms/Makefile @@ -6,33 +6,42 @@ # PORTNAME= lcms -PORTVERSION= 1.09 -PORTREVISION= 1 +PORTVERSION= 1.12 PORTEPOCH= 1 CATEGORIES= graphics MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \ http://www.littlecms.com/ -MASTER_SITE_SUBDIR=${PORTNAME} +MASTER_SITE_SUBDIR= ${PORTNAME} MAINTAINER= ports@FreeBSD.org COMMENT= Light Color Management System -- a color management library +LIB_DEPENDS= tiff.4:${PORTSDIR}/graphics/tiff + +USE_GNOME= gnometarget lthack +USE_REINPLACE= yes +USE_LIBTOOL_VER= 13 +CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ + LDFLAGS="-L${LOCALBASE}/lib" +CONFIGURE_ARGS= --without-jpeg --without-tiff INSTALLS_SHLIB= yes -MAKEFILE= ${FILESDIR}/Makefile.bsd -MAKE_ARGS+= -j2 -WRKSRC= ${WRKDIR}/${DISTNAME}/src -.ifndef NOPORTDOCS +post-patch: + @${REINPLACE_CMD} -e \ + 's|^SUBDIRS =.*$$|SUBDIRS = src include|g' ${WRKSRC}/Makefile.in + @${REINPLACE_CMD} -e \ + 's|-O3||g' ${WRKSRC}/src/Makefile.in + post-install: - ${MKDIR} ${PREFIX}/share/doc/lcms - ${CP} -rp ${WRKSRC}/../doc/* ${WRKSRC}/../tifficc/tifficc.c \ - ${WRKSRC}/../jpegicc/jpegicc.c ${WRKSRC}/../jpegicc/iccjpeg.c \ - ${WRKSRC}/../samples/wtpt.c ${WRKSRC}/../samples/icctrans.c \ - ${PREFIX}/share/doc/lcms/ +.if !defined(NOPORTDOCS) + @${MKDIR} ${DOCSDIR} +.for file in doc/LCMSAPI.TXT doc/TUTORIAL.TXT tifficc/tifficc.c \ + jpegicc/jpegicc.c jpegicc/iccjpeg.c samples/wtpt.c samples/icctrans.c + ${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR} +.endfor .endif post-build test: - cd ${WRKSRC}/../testbed && \ - ${SETENV} CFLAGS="${CFLAGS} -I../include" ${MAKE} -E CFLAGS test + cd ${WRKSRC}/testbed && ${SETENV} ${MAKE_ENV} ${MAKE} check .include <bsd.port.mk> diff --git a/graphics/lcms/distinfo b/graphics/lcms/distinfo index 91cfdfe9596e..f86e2be6c29d 100644 --- a/graphics/lcms/distinfo +++ b/graphics/lcms/distinfo @@ -1,2 +1,2 @@ -MD5 (lcms-1.09.tar.gz) = 8e8e2303351f3c7de335f02196820a4e -SIZE (lcms-1.09.tar.gz) = 192593 +MD5 (lcms-1.12.tar.gz) = ac377fc055cf50aa8a8505aedb13a125 +SIZE (lcms-1.12.tar.gz) = 567985 diff --git a/graphics/lcms/files/Makefile.bsd b/graphics/lcms/files/Makefile.bsd deleted file mode 100644 index 46bfc1f27a42..000000000000 --- a/graphics/lcms/files/Makefile.bsd +++ /dev/null @@ -1,18 +0,0 @@ -LIB=lcms -SHLIB_MAJOR= 1 -SHLIB_MINOR= 9 - -SRCS!= make -V SRCS - -NOPROFILE=YES - -INCS= ${.CURDIR}/../include/lcms.h ${.CURDIR}/../include/icc34.h - -CFLAGS+= -I${.CURDIR}/../include -LDADD+= -lm - -INCSDIR=${LOCALBASE}/include -INCDIR= ${INCSDIR} # for 4.x bsd.lib.mk -LIBDIR= ${LOCALBASE}/lib - -.include <bsd.lib.mk> diff --git a/graphics/lcms/files/patch-32bit b/graphics/lcms/files/patch-32bit index 1090667ce8e2..d46710470240 100644 --- a/graphics/lcms/files/patch-32bit +++ b/graphics/lcms/files/patch-32bit @@ -1,8 +1,8 @@ This patch fixes assumptions made in different parts of the code regarding the sizeof long and int. The original code appears to use them interchangeably, even though it expects them to be 32 bit wide. ---- cmsmtrx.c Tue Feb 13 12:08:06 2001 -+++ cmsmtrx.c Wed Sep 5 10:28:02 2001 +--- src/cmsmtrx.c Tue Feb 13 12:08:06 2001 ++++ src/cmsmtrx.c Wed Sep 5 10:28:02 2001 @@ -705,6 +705,6 @@ void VEC3scaleAndCut(LPWVEC3 r, LPVEC3 v, double d) { diff --git a/graphics/lcms/files/patch-config b/graphics/lcms/files/patch-config index 85e60a1d4ddb..9236abc18b51 100644 --- a/graphics/lcms/files/patch-config +++ b/graphics/lcms/files/patch-config @@ -1,15 +1,17 @@ ---- ../include/lcms.h Wed Aug 7 15:34:37 2002 -+++ ../include/lcms.h Wed Nov 6 01:23:21 2002 -@@ -66,5 +73,11 @@ +--- include/lcms.h.orig Sun Dec 21 00:00:11 2003 ++++ include/lcms.h Sun May 23 12:14:22 2004 +@@ -52,7 +52,13 @@ + // Uncomment this one if you are using big endian machines (only meaningful // when NON_WINDOWS is used) -// #define USE_BIG_ENDIAN 1 + -+#include <machine/endian.h> ++#include <sys/endian.h> +#if BYTE_ORDER == BIG_ENDIAN -+# define USE_BIG_ENDIAN 1 ++# define USE_BIG_ENDIAN 1 +#elif BYTE_ORDER != LITTLE_ENDIAN -+# error "Unexpected BYTE_ORDER on this architecture" ++# error "Unexpected BYTE_ORDER on this architecture" +#endif // Uncomment this one if your compiler/machine does support the + // "long long" type This will speedup fixed point math. (USE_C only) diff --git a/graphics/lcms/files/patch-icc34 b/graphics/lcms/files/patch-icc34 index 21b8d5b18cc0..6d7a4aa9b2e5 100644 --- a/graphics/lcms/files/patch-icc34 +++ b/graphics/lcms/files/patch-icc34 @@ -1,13 +1,14 @@ Try to use the int32 and friends on all Unixes -- not just SGI's Irix. ---- ../include/icc34.h Tue Feb 13 12:08:06 2001 -+++ ../include/icc34.h Wed Sep 5 10:08:42 2001 -@@ -144,7 +144,9 @@ - */ - +--- include/icc34.h.in.orig Tue Jul 22 06:10:02 2003 ++++ include/icc34.h.in Sun May 23 11:45:09 2004 +@@ -191,8 +191,10 @@ + typedef icUInt32Number icU16Fixed16Number; + + #else +#ifdef __unix__ #ifdef __sgi #include "sgidefs.h" +#endif - typedef __int32_t icSignature; + typedef __int32_t icSignature; diff --git a/graphics/lcms/pkg-plist b/graphics/lcms/pkg-plist index 31a6285eadf7..1bdf11a39e3b 100644 --- a/graphics/lcms/pkg-plist +++ b/graphics/lcms/pkg-plist @@ -2,12 +2,12 @@ include/icc34.h include/lcms.h lib/liblcms.a lib/liblcms.so -lib/liblcms.so.1.9 -%%PORTDOCS%%share/doc/lcms/LCMSAPI.TXT -%%PORTDOCS%%share/doc/lcms/TUTORIAL.TXT -%%PORTDOCS%%share/doc/lcms/iccjpeg.c -%%PORTDOCS%%share/doc/lcms/icctrans.c -%%PORTDOCS%%share/doc/lcms/jpegicc.c -%%PORTDOCS%%share/doc/lcms/tifficc.c -%%PORTDOCS%%share/doc/lcms/wtpt.c -%%PORTDOCS%%@dirrm share/doc/lcms +lib/liblcms.so.1 +%%PORTDOCS%%%%DOCSDIR%%/LCMSAPI.TXT +%%PORTDOCS%%%%DOCSDIR%%/TUTORIAL.TXT +%%PORTDOCS%%%%DOCSDIR%%/iccjpeg.c +%%PORTDOCS%%%%DOCSDIR%%/icctrans.c +%%PORTDOCS%%%%DOCSDIR%%/jpegicc.c +%%PORTDOCS%%%%DOCSDIR%%/tifficc.c +%%PORTDOCS%%%%DOCSDIR%%/wtpt.c +%%PORTDOCS%%@dirrm %%DOCSDIR%% |