head 1.12; access; symbols pkgsrc-2026Q1:1.12.0.102 pkgsrc-2026Q1-base:1.12 pkgsrc-2025Q4:1.12.0.100 pkgsrc-2025Q4-base:1.12 pkgsrc-2025Q3:1.12.0.98 pkgsrc-2025Q3-base:1.12 pkgsrc-2025Q2:1.12.0.96 pkgsrc-2025Q2-base:1.12 pkgsrc-2025Q1:1.12.0.94 pkgsrc-2025Q1-base:1.12 pkgsrc-2024Q4:1.12.0.92 pkgsrc-2024Q4-base:1.12 pkgsrc-2024Q3:1.12.0.90 pkgsrc-2024Q3-base:1.12 pkgsrc-2024Q2:1.12.0.88 pkgsrc-2024Q2-base:1.12 pkgsrc-2024Q1:1.12.0.86 pkgsrc-2024Q1-base:1.12 pkgsrc-2023Q4:1.12.0.84 pkgsrc-2023Q4-base:1.12 pkgsrc-2023Q3:1.12.0.82 pkgsrc-2023Q3-base:1.12 pkgsrc-2023Q2:1.12.0.80 pkgsrc-2023Q2-base:1.12 pkgsrc-2023Q1:1.12.0.78 pkgsrc-2023Q1-base:1.12 pkgsrc-2022Q4:1.12.0.76 pkgsrc-2022Q4-base:1.12 pkgsrc-2022Q3:1.12.0.74 pkgsrc-2022Q3-base:1.12 pkgsrc-2022Q2:1.12.0.72 pkgsrc-2022Q2-base:1.12 pkgsrc-2022Q1:1.12.0.70 pkgsrc-2022Q1-base:1.12 pkgsrc-2021Q4:1.12.0.68 pkgsrc-2021Q4-base:1.12 pkgsrc-2021Q3:1.12.0.66 pkgsrc-2021Q3-base:1.12 pkgsrc-2021Q2:1.12.0.64 pkgsrc-2021Q2-base:1.12 pkgsrc-2021Q1:1.12.0.62 pkgsrc-2021Q1-base:1.12 pkgsrc-2020Q4:1.12.0.60 pkgsrc-2020Q4-base:1.12 pkgsrc-2020Q3:1.12.0.58 pkgsrc-2020Q3-base:1.12 pkgsrc-2020Q2:1.12.0.54 pkgsrc-2020Q2-base:1.12 pkgsrc-2020Q1:1.12.0.34 pkgsrc-2020Q1-base:1.12 pkgsrc-2019Q4:1.12.0.56 pkgsrc-2019Q4-base:1.12 pkgsrc-2019Q3:1.12.0.52 pkgsrc-2019Q3-base:1.12 pkgsrc-2019Q2:1.12.0.50 pkgsrc-2019Q2-base:1.12 pkgsrc-2019Q1:1.12.0.48 pkgsrc-2019Q1-base:1.12 pkgsrc-2018Q4:1.12.0.46 pkgsrc-2018Q4-base:1.12 pkgsrc-2018Q3:1.12.0.44 pkgsrc-2018Q3-base:1.12 pkgsrc-2018Q2:1.12.0.42 pkgsrc-2018Q2-base:1.12 pkgsrc-2018Q1:1.12.0.40 pkgsrc-2018Q1-base:1.12 pkgsrc-2017Q4:1.12.0.38 pkgsrc-2017Q4-base:1.12 pkgsrc-2017Q3:1.12.0.36 pkgsrc-2017Q3-base:1.12 pkgsrc-2017Q2:1.12.0.32 pkgsrc-2017Q2-base:1.12 pkgsrc-2017Q1:1.12.0.30 pkgsrc-2017Q1-base:1.12 pkgsrc-2016Q4:1.12.0.28 pkgsrc-2016Q4-base:1.12 pkgsrc-2016Q3:1.12.0.26 pkgsrc-2016Q3-base:1.12 pkgsrc-2016Q2:1.12.0.24 pkgsrc-2016Q2-base:1.12 pkgsrc-2016Q1:1.12.0.22 pkgsrc-2016Q1-base:1.12 pkgsrc-2015Q4:1.12.0.20 pkgsrc-2015Q4-base:1.12 pkgsrc-2015Q3:1.12.0.18 pkgsrc-2015Q3-base:1.12 pkgsrc-2015Q2:1.12.0.16 pkgsrc-2015Q2-base:1.12 pkgsrc-2015Q1:1.12.0.14 pkgsrc-2015Q1-base:1.12 pkgsrc-2014Q4:1.12.0.12 pkgsrc-2014Q4-base:1.12 pkgsrc-2014Q3:1.12.0.10 pkgsrc-2014Q3-base:1.12 pkgsrc-2014Q2:1.12.0.8 pkgsrc-2014Q2-base:1.12 pkgsrc-2014Q1:1.12.0.6 pkgsrc-2014Q1-base:1.12 pkgsrc-2013Q4:1.12.0.4 pkgsrc-2013Q4-base:1.12 pkgsrc-2013Q3:1.12.0.2 pkgsrc-2013Q3-base:1.12 pkgsrc-2013Q2:1.11.0.28 pkgsrc-2013Q2-base:1.11 pkgsrc-2012Q4:1.11.0.26 pkgsrc-2012Q4-base:1.11 pkgsrc-2011Q4:1.11.0.24 pkgsrc-2011Q4-base:1.11 pkgsrc-2011Q2:1.11.0.22 pkgsrc-2011Q2-base:1.11 pkgsrc-2009Q4:1.11.0.20 pkgsrc-2009Q4-base:1.11 pkgsrc-2008Q4:1.11.0.18 pkgsrc-2008Q4-base:1.11 pkgsrc-2008Q3:1.11.0.16 pkgsrc-2008Q3-base:1.11 cube-native-xorg:1.11.0.14 cube-native-xorg-base:1.11 pkgsrc-2008Q2:1.11.0.12 pkgsrc-2008Q2-base:1.11 pkgsrc-2008Q1:1.11.0.10 pkgsrc-2008Q1-base:1.11 pkgsrc-2007Q4:1.11.0.8 pkgsrc-2007Q4-base:1.11 pkgsrc-2007Q3:1.11.0.6 pkgsrc-2007Q3-base:1.11 pkgsrc-2007Q2:1.11.0.4 pkgsrc-2007Q2-base:1.11 pkgsrc-2007Q1:1.11.0.2 pkgsrc-2007Q1-base:1.11 pkgsrc-2006Q4:1.10.0.10 pkgsrc-2006Q4-base:1.10 pkgsrc-2006Q3:1.10.0.8 pkgsrc-2006Q3-base:1.10 pkgsrc-2006Q2:1.10.0.6 pkgsrc-2006Q2-base:1.10 pkgsrc-2006Q1:1.10.0.4 pkgsrc-2006Q1-base:1.10 pkgsrc-2005Q4:1.10.0.2 pkgsrc-2005Q4-base:1.10 pkgsrc-2005Q3:1.9.0.14 pkgsrc-2005Q3-base:1.9 pkgsrc-2005Q2:1.9.0.12 pkgsrc-2005Q2-base:1.9 pkgsrc-2005Q1:1.9.0.10 pkgsrc-2005Q1-base:1.9 pkgsrc-2004Q4:1.9.0.8 pkgsrc-2004Q4-base:1.9 pkgsrc-2004Q3:1.9.0.6 pkgsrc-2004Q3-base:1.9 pkgsrc-2004Q2:1.9.0.4 pkgsrc-2004Q2-base:1.9 pkgsrc-2004Q1:1.9.0.2 pkgsrc-2004Q1-base:1.9 pkgsrc-2003Q4:1.8.0.4 pkgsrc-2003Q4-base:1.8 netbsd-1-6-1:1.8.0.2 netbsd-1-6-1-base:1.8 netbsd-1-6:1.6.0.6 netbsd-1-6-RELEASE-base:1.6 pkgviews:1.6.0.2 pkgviews-base:1.6 buildlink2:1.4.0.2 buildlink2-base:1.6 netbsd-1-5-PATCH003:1.4 netbsd-1-5-PATCH001:1.1.1.1 pkgsrc-base:1.1.1.1 TNF:1.1.1; locks; strict; comment @# @; 1.12 date 2013.08.07.16.46.23; author drochner; state Exp; branches; next 1.11; commitid 0P19M8RYQSFUHx0x; 1.11 date 2007.01.06.21.52.14; author wiz; state dead; branches; next 1.10; 1.10 date 2005.12.07.17.47.06; author wiz; state Exp; branches; next 1.9; 1.9 date 2004.02.09.12.03.27; author seb; state dead; branches; next 1.8; 1.8 date 2002.10.08.22.57.38; author jschauma; state Exp; branches; next 1.7; 1.7 date 2002.08.25.18.39.15; author jlam; state Exp; branches; next 1.6; 1.6 date 2002.05.20.17.47.23; author cjep; state Exp; branches; next 1.5; 1.5 date 2002.05.14.22.06.57; author skrll; state Exp; branches; next 1.4; 1.4 date 2002.03.15.11.12.57; author markd; state Exp; branches 1.4.2.1; next 1.3; 1.3 date 2002.03.15.09.20.06; author agc; state Exp; branches; next 1.2; 1.2 date 2002.03.15.03.58.45; author markd; state Exp; branches; next 1.1; 1.1 date 2001.03.07.08.22.52; author skrll; state Exp; branches 1.1.1.1; next ; 1.4.2.1 date 2002.06.23.18.46.31; author jlam; state Exp; branches; next ; 1.1.1.1 date 2001.03.07.08.22.52; author skrll; state Exp; branches; next ; desc @@ 1.12 log @fix possible buffer overflows in cmd line tools found by Pedro Ribeiro (see Debian bug #718682) bump PKGREV @ text @$NetBSD$ buffer overflow --- tifficc/tiffdiff.c.orig 2009-10-30 15:57:46.000000000 +0000 +++ tifficc/tiffdiff.c @@@@ -633,7 +633,7 @@@@ void CreateCGATS(const char* TiffName1, cmsIT8SetSheetType(hIT8, "TIFFDIFF"); - sprintf(Buffer, "Differences between %s and %s", TiffName1, TiffName2); + snprintf(Buffer, sizeof(Buffer), "Differences between %s and %s", TiffName1, TiffName2); cmsIT8SetComment(hIT8, Buffer); @ 1.11 log @Update to 1.16: New in ver 1.16 =============== New features two different types of black preservation on CMYK-> CMYK transforms Ability to set adaptation state of observer on absolute colorimetric transforms. A rather advanced feature. Actually it only allows No adaptation (d=0) and observer fully adapted (d=1) lcms can now "fix" some broken 8-bit profiles that have gray axes misplaced. icctrans can now read CGATS/IT8 files. improved tifficc with tiff Lab8 support icclink now supports colorant table tag. New functions double cmsSetAdaptationState(cmsHTRANSFORM hTransform, double d); void cmsSetHeaderAttributes(cmsHPROFILE hProfile, DWORD Flags); DWORD cmsTakeHeaderAttributes(cmsHPROFILE hProfile); icInt32Number cmsGetTagCount(cmsHPROFILE hProfile); icTagSignature cmsGetTagSignature(cmsHPROFILE hProfile, icInt32Number n); int cmsSetCMYKPreservationStrategy(int n) BOOL cmsIT8SaveToMem(LCMSHANDLE hIT8, void *MemPtr, size_t* BytesNeeded); BOOL _cmsIsMatrixShaper(cmsHPROFILE hProfile); BOOL _cmsAddDateTimeTag(cmsHPROFILE hProfile, icTagSignature sig, struct tm *DateTime); BOOL _cmsAddColorantTableTag(cmsHPROFILE hProfile, icTagSignature sig, LPcmsNAMEDCOLORLIST nc); double cmsEvalLUTreverse(LPLUT Lut, WORD Target[], WORD Result[], LPWORD Hint); LPcmsNAMEDCOLORLIST cmsReadColorantTable(cmsHPROFILE hProfile, icTagSignature sig) LPcmsGAMUTEX cmsReadExtendedGamut(cmsHPROFILE hProfile, int index); void cmsFreeExtendedGamut(LPcmsGAMUTEX gex); New tags supported icSigColorantTableTag LPcmsNAMEDCOLORLIST icSigColorantTableOutTag LPcmsNAMEDCOLORLIST icSigCalibrationDateTimeTag const struct tm* New flags: cmsFLAGS_PRESERVEBLACK cmsFLAGS_GRIDPOINTS(n) And of course some bug fixing. @ text @d1 1 a1 1 $NetBSD: patch-ab,v 1.10 2005/12/07 17:47:06 wiz Exp $ d3 12 a14 10 --- include/lcms.h.orig 2005-11-26 15:23:47.000000000 +0100 +++ include/lcms.h @@@@ -134,7 +134,7 @@@@ #if defined(__OpenBSD__) || defined(__NetBSD__) || defined(__FreeBSD__) # include # define USE_INT64 1 -# define LCMSSLONGLONG int_64_t +# define LCMSSLONGLONG int64_t # define LCMSULONGLONG u_int64_t #endif @ 1.10 log @Update to 1.15. patch-ab has been sent upstream. New features Black preservation on CMYK-> CMYK transforms Ability to set adaptation state of observer on absolute colorimetric transforms. A rather advanced feature. Actually it only allows No adaptation (d=0) and observer fully adapted (d=1) lcms can now "fix" some broken 8-bit profiles that have gray axes misplaced. icctrans can now read CGATS/IT8 files. improved tifficc with tiff Lab8 support New functions LCMSAPI double LCMSEXPORT cmsSetAdaptationState(cmsHTRANSFORM hTransform, double d); LCMSAPI void LCMSEXPORT cmsSetHeaderAttributes(cmsHPROFILE hProfile, DWORD Flags); LCMSAPI DWORD LCMSEXPORT cmsTakeHeaderAttributes(cmsHPROFILE hProfile); LCMSAPI icInt32Number LCMSEXPORT cmsGetTagCount(cmsHPROFILE hProfile); LCMSAPI icTagSignature LCMSEXPORT cmsGetTagSignature(cmsHPROFILE hProfile, icInt32Number n); LCMSAPI BOOL LCMSEXPORT cmsIT8SaveToMem(LCMSHANDLE hIT8, void *MemPtr, size_t* BytesNeeded); BOOL _cmsIsMatrixShaper(cmsHPROFILE hProfile); BOOL _cmsAddDateTimeTag(cmsHPROFILE hProfile, icTagSignature sig, struct tm *DateTime); BOOL _cmsAddColorantTableTag(cmsHPROFILE hProfile, icTagSignature sig, LPcmsNAMEDCOLORLIST nc); double cmsEvalLUTreverse(LPLUT Lut, WORD Target[], WORD Result[], LPWORD Hint); LPcmsNAMEDCOLORLIST LCMSEXPORT cmsReadColorantTable(cmsHPROFILE hProfile, icTagSignature sig) LPcmsGAMUTEX cmsReadExtendedGamut(cmsHPROFILE hProfile, int index); void cmsFreeExtendedGamut(LPcmsGAMUTEX gex); New tags supported icSigColorantTableTag LPcmsNAMEDCOLORLIST icSigColorantTableOutTag LPcmsNAMEDCOLORLIST icSigCalibrationDateTimeTag const struct tm* New flags: cmsFLAGS_PRESERVEBLACK cmsFLAGS_GRIDPOINTS(n) And of course some bug fixing. @ text @d1 1 a1 1 $NetBSD$ @ 1.9 log @Update to version 1.12. Package changes: The include files moved from $PREFIX/include/lcms to $PREFIX/include. Support added to buildlink*.mk to provide compatibility symlinks include/lcms/*.h in BUILDLINK_DIR. No list of changes since the previously packaged version (1.06), I do not even know if there was any versions in between... Anyway changes in version 1.12 are (from the homepage): - Brightness/Contrast/Hue/Saturation/WhitePoint modification across abstract profile - License changed to MIT - pseq tag handling: cmsReadProfileSequenceDescription and cmsSEQ, cmsPSEQDESC structures - CRD generation now supports black point compensation, see cmsGetPostScriptCRDEx - cmsTakeManufacturer and cmsTakeModel for uncooked info on these tags - Writing 8 bit profiles is now supported - Named color profiles support. This turns lcms from a "wide subset" into a "full implementation" of ICC 3.4, with some ICC 4.0 support. - PostScript CSA, CRD generation - Ink-Limiting capabilities for CMYK - Devicelink profile generation. - Gray scale virtual profiles - Linearization virtual device link profiles - New ICCLINK and ICC2PS utilities - SWIG wrapper. This enables lcms from Python. - Floating-point formats are now accepted as well. - More ICC 4.0 compatibility. Some 4.0 profiles are now are fully understood (still experimental) - Profiles can now be saved to memory (thanks to Steven Greaves for providing the code) - Char Target data are now handled. Some profiles does store the data profiler has used. This is all information needed to rebuild the profile from scratch. - New low-resolution flag cmsFLAGS_LOWRESPRECALC to save memory. - User-defined encodings are now supported. - cmsChangeBuffersFormat() to change the encoding of buffers on runtime allows reuse of existing transforms. - Gamma estimation routines cmsEstimateGamma() and cmsEstimateGammaEx() - multilocalized unicode is now supported. Language and codepage is selected via cmsSetLanguage() (ICC 4.0 only) - LUT handling has been enhanced with enumerators. (SAMPLER_INSPECT) - Improved TIFFICC, JPEGICC and ICCTRANS utilities. - cmsOpenProfileFromMem() no longer creates temporary files. - Transforms does accept now a maximum of 8 channels on input and 16 on output. (last version did accept 6 on input) - 8 <-> 16 bits per sample are now always computed accurately. - Some minor bugs fixed @ text @d1 12 a12 5 $NetBSD: patch-ab,v 1.8 2002/10/08 22:57:38 jschauma Exp $ --- source/cmsmtrx.c.orig Thu May 18 23:08:13 2000 +++ source/cmsmtrx.c Tue May 14 22:38:58 2002 @@@@ -31,6 +31,7 @@@@ // Vector & Matrix stuff a13 25 #include "lcms.h" +#include void cdecl VEC3init(LPVEC3 r, double x, double y, double z); @@@@ -242,13 +243,18 @@@@ // support asm at all. Use with care, since this will slow down // all operations +#include Fixed32 FixedMul(Fixed32 a, Fixed32 b) { // If newest __int64 defined, then use it #ifdef USE_INT64 - __int64 l = (__int64) a * b + 0x8000i64; +#if (defined(BSD) && BSD >= 199506) || defined(linux) + u_int64_t l = (u_int64_t) a * b + (u_int64_t)0x8000; +#else + uint64_t l = (uint64_t) a * b + (uint64_t)0x8000; +#endif return (Fixed32) (l >> 16); #else return DOUBLE_TO_FIXED(FIXED_TO_DOUBLE(a) * FIXED_TO_DOUBLE(b)); @ 1.8 log @Linux also uses u_int64_t, not uint64_t; thus patch accordingly. @ text @d1 1 a1 1 $NetBSD: patch-ab,v 1.7 2002/08/25 18:39:15 jlam Exp $ @ 1.7 log @Merge changes in packages from the buildlink2 branch that have buildlink2.mk files back into the main trunk. This provides sufficient buildlink2 infrastructure to start merging other packages from the buildlink2 branch that have already been converted to use the buildlink2 framework. @ text @d1 1 a1 1 $NetBSD: patch-ab,v 1.4.2.1 2002/06/23 18:46:31 jlam Exp $ d24 1 a24 1 +#if (defined(BSD) && BSD >= 199506) @ 1.6 log @Add NetBSD tag. @ text @d1 1 a1 1 $NetBSD$ @ 1.5 log @Don't include in function scope. This make lcms compile when using nathanw_sa sources. @ text @d1 1 @ 1.4 log @Finish off the last patch by converting back the other two uint64_t's to u_int64_t's in the NetBSD case. @ text @d1 2 a2 4 $NetBSD: patch-ab,v 1.3 2002/03/15 09:20:06 agc Exp $ --- source/cmsmtrx.c Thu May 18 18:08:13 2000 +++ source/cmsmtrx.c Mon Oct 30 09:53:39 2000 d11 8 a18 1 @@@@ -248,7 +249,12 @@@@ a22 1 +#include @ 1.4.2.1 log @Merge from pkgsrc-current to buildlink2 branch. @ text @d1 4 a4 3 $NetBSD: patch-ab,v 1.6 2002/05/20 17:47:23 cjep Exp $ --- source/cmsmtrx.c.orig Thu May 18 23:08:13 2000 +++ source/cmsmtrx.c Tue May 14 22:38:58 2002 d13 1 a13 8 @@@@ -242,13 +243,18 @@@@ // support asm at all. Use with care, since this will slow down // all operations +#include Fixed32 FixedMul(Fixed32 a, Fixed32 b) { d18 1 @ 1.3 log @Do the previous change a bit differently. NetBSD 1.5.x (including 1.5.2) doesn't have the C99 types, so use u_int64_t if we're on a 4.4-based platform, uint64_t otherwise. @ text @d1 1 a1 1 $NetBSD: patch-ab,v 1.2 2002/03/15 03:58:45 markd Exp $ d20 1 a20 1 + u_int64_t l = (uint64_t) a * b + (uint64_t)0x8000; @ 1.2 log @u_int64_t -> uint64_t so that it also works on Solaris. Also drop the patch that is putting a newline on the end of the file as Solaris's patch doesn't like it and the compiler doesn't care. @ text @d1 1 a1 1 $NetBSD$ d5 3 a7 1 @@@@ -33,2 +33,3 @@@@ d11 5 a15 1 @@@@ -250,3 +251,3 @@@@ d18 4 d23 1 d25 2 @ 1.1 log @Initial revision @ text @d12 1 a12 1 + u_int64_t l = (u_int64_t) a * b + (u_int64_t)0x8000; a13 4 @@@@ -711,2 +712,2 @@@@ VEC3scaleAndCut(&r -> v[2], &v -> v[2], d); -} +} @ 1.1.1.1 log @Import of the Light Color Management System. From Nathan Ahlstrom in pkg/12342 with modifications from me. @ text @@