Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

New Formula: little-cms2 and New Alias: lcms2 #7345

Closed
wants to merge 1 commit into from

7 participants

@potatosalad

little-cms2 Formula and lcms2 Alias

@adamv
Owner

Just a note for other maintainers, little-cms 1.x and 2.x have incompatible APIs.

@fish2000

@potatosalad -- awesome.

@2bits

Indeed. I build lcms2 into my apps. Is this a candidate for devel do?

@jacknagel
Owner

Given the long wait for lcms2, I would say yes.

@jacknagel
Owner

@adamv @Sharpie @mistydemeo

Any objection to adding 2.x as the devel version here?

@adamv
Owner

I dunno, we can add it, but perhaps a side-by-side lcms and lcms2 is what we'll have to do, since stuff won't stop depending on version 1, right?

@jacknagel
Owner

I guess I'm fine with either.

@2bits

That's a good question adamv. I was wrong to think that lcms2 would work as a devel block.
It really is a different library, using a different library name and includes, i.e.

nibbles$ ls -l /usr/local/include/lcms*.h
lrwxr-xr-x  1 nibbles  staff  40 Dec 22 11:39 /usr/local/include/lcms.h -> ../Cellar/little-cms/1.19/include/lcms.h
lrwxr-xr-x  1 nibbles  staff  41 Nov 24 01:01 /usr/local/include/lcms2.h -> ../Cellar/little-cms2/2.2/include/lcms2.h
lrwxr-xr-x  1 nibbles  staff  48 Nov 24 01:01 /usr/local/include/lcms2_plugin.h -> ../Cellar/little-cms2/2.2/include/lcms2_plugin.h


nibbles$ ls -l /usr/local/lib/liblcms*
lrwxr-xr-x  1 nibbles  staff  50 Dec 22 11:39 /usr/local/lib/liblcms.1.0.19.dylib -> ../Cellar/little-cms/1.19/lib/liblcms.1.0.19.dylib
lrwxr-xr-x  1 nibbles  staff  45 Dec 22 11:39 /usr/local/lib/liblcms.1.dylib -> ../Cellar/little-cms/1.19/lib/liblcms.1.dylib
lrwxr-xr-x  1 nibbles  staff  39 Dec 22 11:39 /usr/local/lib/liblcms.a -> ../Cellar/little-cms/1.19/lib/liblcms.a
lrwxr-xr-x  1 nibbles  staff  43 Dec 22 11:39 /usr/local/lib/liblcms.dylib -> ../Cellar/little-cms/1.19/lib/liblcms.dylib
lrwxr-xr-x  1 nibbles  staff  46 Nov 24 01:01 /usr/local/lib/liblcms2.2.dylib -> ../Cellar/little-cms2/2.2/lib/liblcms2.2.dylib
lrwxr-xr-x  1 nibbles  staff  40 Nov 24 01:01 /usr/local/lib/liblcms2.a -> ../Cellar/little-cms2/2.2/lib/liblcms2.a
lrwxr-xr-x  1 nibbles  staff  44 Nov 24 01:01 /usr/local/lib/liblcms2.dylib -> ../Cellar/little-cms2/2.2/lib/liblcms2.dylib

Openjpeg, libraw, dcraw, devil, etc: some prefer v1, others v2. So maybe we want two formulas for these different libraries, which I guess are badly named.

@mistydemeo
Owner

Side-by-side seems like the best solution. Doesn't look like they clash.

@Sharpie
Collaborator

Doesn't look like they clash.

If they don't install any overlapping headers/libs, then I have no problems with a separate lcms2 formula.

@2bits

lcms2 is now at version 2.3 in case the OP wants to amend. It passes make check on Lion with both compilers.
@Sharpie I did a brew list of both packages, and there are no conflicts because they do more creative naming, e.g.:

/usr/local/Cellar/little-cms/1.19/bin/icclink
/usr/local/Cellar/little-cms/1.19/bin/icctrans
/usr/local/Cellar/little-cms/1.19/bin/jpegicc
/usr/local/Cellar/little-cms/1.19/bin/tiffdiff
/usr/local/Cellar/little-cms/1.19/bin/tifficc
/usr/local/Cellar/little-cms/1.19/bin/wtpt

/usr/local/Cellar/little-cms2/2.3/bin/jpgicc
/usr/local/Cellar/little-cms2/2.3/bin/linkicc
/usr/local/Cellar/little-cms2/2.3/bin/psicc
/usr/local/Cellar/little-cms2/2.3/bin/tificc
/usr/local/Cellar/little-cms2/2.3/bin/transicc
@jacknagel
Owner

Haha. But good on them.

@jacknagel
Owner

I'll bump it to 2.3 and pull this.

@jacknagel jacknagel closed this pull request from a commit
@potatosalad potatosalad New formula: little-cms2
Given the API incompatibilities between 1.x an 2.x, it is easier to
maintain separate formulae for the time being. Luckily, the developers
have made sure that the two can be installed alongside each other: the
binaries have different names, the library is versioned, &c.

Closes #7345.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
1880154
@jacknagel jacknagel closed this in 1880154
@MNeise MNeise referenced this pull request from a commit
@potatosalad potatosalad New formula: little-cms2
Given the API incompatibilities between 1.x an 2.x, it is easier to
maintain separate formulae for the time being. Luckily, the developers
have made sure that the two can be installed alongside each other: the
binaries have different names, the library is versioned, &c.

Closes #7345.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
89f8fe8
@cacoco cacoco referenced this pull request from a commit
@potatosalad potatosalad New formula: little-cms2
Given the API incompatibilities between 1.x an 2.x, it is easier to
maintain separate formulae for the time being. Luckily, the developers
have made sure that the two can be installed alongside each other: the
binaries have different names, the library is versioned, &c.

Closes #7345.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2096a38
@Sharpie Sharpie referenced this pull request from a commit in Sharpie/homebrew
@potatosalad potatosalad New formula: little-cms2
Given the API incompatibilities between 1.x an 2.x, it is easier to
maintain separate formulae for the time being. Luckily, the developers
have made sure that the two can be installed alongside each other: the
binaries have different names, the library is versioned, &c.

Closes #7345.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
5dac67c
@snakeyroc3 snakeyroc3 referenced this pull request from a commit in snakeyroc3/homebrew
@potatosalad potatosalad New formula: little-cms2
Given the API incompatibilities between 1.x an 2.x, it is easier to
maintain separate formulae for the time being. Luckily, the developers
have made sure that the two can be installed alongside each other: the
binaries have different names, the library is versioned, &c.

Closes #7345.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
bee29ea
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Aug 31, 2011
  1. @potatosalad
This page is out of date. Refresh to see the latest.
Showing with 13 additions and 0 deletions.
  1. +1 −0  Library/Aliases/lcms2
  2. +12 −0 Library/Formula/little-cms2.rb
View
1  Library/Aliases/lcms2
View
12 Library/Formula/little-cms2.rb
@@ -0,0 +1,12 @@
+require 'formula'
+
+class LittleCms2 < Formula
+ url 'http://sourceforge.net/projects/lcms/files/lcms/2.2/lcms2-2.2.tar.gz'
+ homepage 'http://www.littlecms.com/'
+ md5 'aaf33c7c25675e6163189ba488ae20f5'
+
+ def install
+ system "./configure", "--prefix=#{prefix}", "--disable-debug"
+ system "make install"
+ end
+end
Something went wrong with that request. Please try again.