diff options
Diffstat (limited to 'media-libs/icclib')
-rw-r--r-- | media-libs/icclib/Manifest | 6 | ||||
-rw-r--r-- | media-libs/icclib/files/icclib-2.14-make.patch | 114 | ||||
-rw-r--r-- | media-libs/icclib/icclib-2.14.ebuild | 41 | ||||
-rw-r--r-- | media-libs/icclib/metadata.xml | 15 |
4 files changed, 176 insertions, 0 deletions
diff --git a/media-libs/icclib/Manifest b/media-libs/icclib/Manifest new file mode 100644 index 000000000000..8399232c4fe0 --- /dev/null +++ b/media-libs/icclib/Manifest @@ -0,0 +1,6 @@ +AUX icclib-2.14-make.patch 3074 SHA256 8ecebc6556780aa9c375d67bb0654763866e2932a09510483f5bc90f50153757 SHA512 e2245b6f7aa24fcb135e8ce7a4332b6a689822c6429cf48cab5cd61285e80c72ff50adb6d8e691b948e45b9dd5d3df42935b810e1a25aba4f2d9d51ac9b9a1eb WHIRLPOOL f48c348876d04b5bcec56b4aa24f257ce54156052275910ad71d9f5f2f3c041020cdd9ecad607c78e9d9f78d02734ff21ffb2cdc9d3903ca9bdfed6e70842934 +DIST icclib_V2.14.zip 158606 SHA256 e07cf9d3d7aec7ed4b1944a890300eba2272f2ce32deb51fb72c36e218f5a0aa SHA512 ed038c8655968c794491f30c295ef115900bfcc2e8bfd8607f12f73d6f2236fc339c1ed53a364524478273097ab9065a372bb26f38231bfc6dc02773a11546a3 WHIRLPOOL 698bb4b139e87f7d6a7ec9e531ee788c0ae3edd9e5ead6d237f49b697a72ea0d4d642a7ca83b7665f901977a2f1d965aa9be96b00a1a0f4bb98e6e613698bfee +EBUILD icclib-2.14.ebuild 842 SHA256 2e74ecc8d4f177ef8d60c2788f3d80e530ff7baeabf251270dbc53c11d8ce2e2 SHA512 6a755ecd016fc3cd7716fba06ce7819e76f40beb5a2900c44f42618a9e0db2f190c9e8606529acac2bc1807a16c81febc4163fe943a0ac8f26fc3bf01afbac59 WHIRLPOOL 66b3c8a28602ba40c8b13397bb9845562442732e78d249cfd569693fd064805150a4e49531b90ac5b8b669f1767365fcad961b844786b7468bd2fd796dc5c568 +MISC ChangeLog 2455 SHA256 5a5f53a1d6242377c19fa7acf352dea1fd0dc0404be2b10608127a253484bd2e SHA512 b2704f4f7271233394b5c37c14288e3365323b2b31c839d31468d533d724b479c0837a8dfd95aadd6c02cc74596a78d6f08ff1f7d8b506a332d79ec2bf0d10ba WHIRLPOOL bf3c4735658b3b792bf5eb25d6798539e285b44c3023212d18b11419065b8898a079af6743a03f1659bf2f97727d6554ff6bed635a6377e63739e30c3422769f +MISC ChangeLog-2015 811 SHA256 29581e22c9823781cb601e63bbba19d1d1a4e0a6c046a7f549de58955902cb69 SHA512 a384e7b6e3b47e93635218b1e12f22adbc942c3f2b79ed93a929a438fff3c6fedd97bc0680f736f6783b5816e171364502eecbe4bb37a4217dfe0ec56553ae1d WHIRLPOOL 2840211e29b25c4d93f0b49b2ecf28eabdcb0957d87518c3453b930e4445d979c6b3dae7ca2be87bc170005d58a5de624badc3f77e20fd93702146c1fc64fe72 +MISC metadata.xml 452 SHA256 a4e0cc90dd62ef1820aa88b0547e4949f57952188ba654be3cbd482241b8b4a7 SHA512 a95f4b878cfad5719ea1a161f0cda34b81982fd000f04da81a8dfcdd77c7592c6621d612eb6faf854deb78902ae31e36cc0b0b8e6e37b559ddbbd2b34e19b23b WHIRLPOOL 8bdcb562c608904ba153cfca31041214c3184272dd1ec491db2b16e041353c61eeef4119f2ac93ddbe1ee83ee8a581c8dd325777ae546a388f20505bf428c221 diff --git a/media-libs/icclib/files/icclib-2.14-make.patch b/media-libs/icclib/files/icclib-2.14-make.patch new file mode 100644 index 000000000000..14e69f17f21a --- /dev/null +++ b/media-libs/icclib/files/icclib-2.14-make.patch @@ -0,0 +1,114 @@ +--- icclib_V2.14/Makefile ++++ icclib_V2.14/Makefile +@@ -3,13 +3,13 @@ + # by uncommenting the appropriate line: + + # Microsoft C++, WinNT setup +-include Makefile.WNT ++#include Makefile.WNT + + # IBM C++, WinNT setup + #include Makefile.IBMNT + + # Generic UNIX setup +-#include Makefile.UNIX ++include Makefile.UNIX + + # Apple OSX + #include Makefile.OSX +@@ -32,7 +32,7 @@ + + + icc$(SUFOBJ): icc.c icc.h +- $(CC) $(CCOF)icc$(SUFOBJ) icc.c ++ $(CC) $(CFLAGS) $(CCOF)icc$(SUFOBJ) icc.c + + libicc$(SUFLIB): icc$(SUFOBJ) + $(LIBU) $(LIBOF)libicc$(SUFLIB) icc$(SUFOBJ) +@@ -41,39 +41,39 @@ + + # Separate for executables + iccstd$(SUFOBJ): iccstd.c icc.h +- $(CC) $(CCOF)iccstd$(SUFOBJ) iccstd.c ++ $(CC) $(CFLAGS) $(CCOF)iccstd$(SUFOBJ) iccstd.c + + + icctest$(SUFOBJ): icctest.c icc.h +- $(CC) $(CCOF)icctest$(SUFOBJ) icctest.c ++ $(CC) $(CFLAGS) $(CCOF)icctest$(SUFOBJ) icctest.c + + icctest$(SUFEXE): icctest$(SUFOBJ) iccstd$(SUFOBJ) libicc$(SUFLIB) + $(LINK) $(LINKOF)icctest$(SUFEXE) icctest$(SUFOBJ) iccstd$(SUFOBJ) libicc$(SUFLIB) + + + lutest$(SUFOBJ): lutest.c icc.h +- $(CC) $(CCOF)lutest$(SUFOBJ) lutest.c ++ $(CC) $(CFLAGS) $(CCOF)lutest$(SUFOBJ) lutest.c + + lutest$(SUFEXE): lutest$(SUFOBJ) iccstd$(SUFOBJ) libicc$(SUFLIB) + $(LINK) $(LINKOF)lutest$(SUFEXE) lutest$(SUFOBJ) iccstd$(SUFOBJ) libicc$(SUFLIB) + + + icclu$(SUFOBJ): icclu.c icc.h +- $(CC) $(CCOF)icclu$(SUFOBJ) icclu.c ++ $(CC) $(CFLAGS) $(CCOF)icclu$(SUFOBJ) icclu.c + + icclu$(SUFEXE): icclu$(SUFOBJ) iccstd$(SUFOBJ) libicc$(SUFLIB) + $(LINK) $(LINKOF)icclu$(SUFEXE) icclu$(SUFOBJ) iccstd$(SUFOBJ) libicc$(SUFLIB) + + + iccdump$(SUFOBJ): iccdump.c icc.h +- $(CC) $(CCOF)iccdump$(SUFOBJ) iccdump.c ++ $(CC) $(CFLAGS) $(CCOF)iccdump$(SUFOBJ) iccdump.c + + iccdump$(SUFEXE): iccdump$(SUFOBJ) iccstd$(SUFOBJ) libicc$(SUFLIB) + $(LINK) $(LINKOF)iccdump$(SUFEXE) iccdump$(SUFOBJ) iccstd$(SUFOBJ) libicc$(SUFLIB) + + + iccrw$(SUFOBJ): iccrw.c icc.h +- $(CC) $(CCOF)iccrw$(SUFOBJ) iccrw.c ++ $(CC) $(CFLAGS) $(CCOF)iccrw$(SUFOBJ) iccrw.c + + iccrw$(SUFEXE): iccrw$(SUFOBJ) iccstd$(SUFOBJ) libicc$(SUFLIB) + $(LINK) $(LINKOF)iccrw$(SUFEXE) iccrw$(SUFOBJ) iccstd$(SUFOBJ) libicc$(SUFLIB) +--- icclib_V2.14/Makefile.UNIX ++++ icclib_V2.14/Makefile.UNIX +@@ -1,7 +1,7 @@ + # Generic UNIX setup + + SLASH = / +-SUFLIB = .a ++SUFLIB = .so + SUFOBJ = .o + SUFEXE = + CMDSEP = ; +@@ -18,21 +18,22 @@ + STDHDRSDEF = /usr/include + + MAKEU = make +-LIBU = ar -r +-LIBOF = -o ++LIBOF = + RANLIB = echo + AS = as +-CCFLAGSDEF = -DUNIX -c +-CC = cc $(CCFLAGS) $(INCFLAG)$(STDHDRS) ++CCFLAGSDEF = -DUNIX -fPIC -c ++CFLAGS += $(CCFLAGSDEF) $(INCFLAG)$(STDHDRS) ++CC = cc + CCOF = -o +-LINKFLAGSDEF = -lm ++LINKFLAGSDEF = -shared + LINKLIBS = +-LINK = cc $(LINKFLAGS) $(LINKLIBS) ++LINK = $(CC) $(LINKFLAGSDEF) $(LDFLAGS) $(LINKLIBS) + LINKOF = -o ++LIBU = $(CC) $(LINKFLAGSDEF) $(LDFLAGS) -Wl,-soname,libicc.so.$(ICCLIB_SOVERSION) $(LINKLIBS) -o + + .SUFFIXES: + .SUFFIXES: .c $(SUFLIB) $(SUFOBJ) $(SUFEXE) + + .c$(SUFOBJ): +- $(CC) $(CCOF)$*$(SUFOBJ) $< ++ $(CC) $(CFLAGS) $(CCOF)$*$(SUFOBJ) $< + diff --git a/media-libs/icclib/icclib-2.14.ebuild b/media-libs/icclib/icclib-2.14.ebuild new file mode 100644 index 000000000000..0c032a1773c1 --- /dev/null +++ b/media-libs/icclib/icclib-2.14.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=4 + +inherit base multilib toolchain-funcs + +MY_P="${PN}_V${PV}" +DESCRIPTION="Library for reading and writing ICC color profile files" +HOMEPAGE="http://freecode.com/projects/icclib" +SRC_URI="http://www.argyllcms.com/${MY_P}.zip" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="app-arch/unzip" + +S=${WORKDIR} + +ICCLIB_SOVERSION="0" + +PATCHES=( + "${FILESDIR}/${P}-make.patch" +) + +src_compile() { + emake CC="$(tc-getCC)" ICCLIB_SOVERSION=${ICCLIB_SOVERSION} +} + +src_install() { + mv libicc.so libicc.so.${ICCLIB_SOVERSION} || die + dolib.so libicc.so.${ICCLIB_SOVERSION} + dosym libicc.so.${ICCLIB_SOVERSION} /usr/$(get_libdir)/libicc.so + dobin iccdump + dodoc Readme.txt todo.txt log.txt + + insinto /usr/include + doins icc*.h +} diff --git a/media-libs/icclib/metadata.xml b/media-libs/icclib/metadata.xml new file mode 100644 index 000000000000..d13235b93d4e --- /dev/null +++ b/media-libs/icclib/metadata.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>graphics@gentoo.org</email> + <name>Gentoo Graphics Project</name> + </maintainer> + <maintainer type="project"> + <email>printing@gentoo.org</email> + <name>Gentoo Printing Project</name> + </maintainer> + <upstream> + <remote-id type="freecode">icclib</remote-id> + </upstream> +</pkgmetadata> |