Add Little CMS 2 color correction package.

This commit is contained in:
jakllsch 2011-07-25 17:48:55 +00:00
parent b98e367d4a
commit d495037e87
5 changed files with 78 additions and 0 deletions

7
graphics/lcms2/DESCR Normal file
View file

@ -0,0 +1,7 @@
LittleCMS is a CMM, a color management engine; it implements fast
transforms between ICC profiles. "Little" stands for its small
overhead. With a typical footprint of about 100K including C runtime,
you can color-enable your application without the pain of ActiveX,
OCX, redistributables or binaries of any kind. We are using little cms
in several commercial projects, however, we are offering lcms library
free for anybody under an extremely liberal open source license.

28
graphics/lcms2/Makefile Normal file
View file

@ -0,0 +1,28 @@
# $NetBSD: Makefile,v 1.1.1.1 2011/07/25 17:48:55 jakllsch Exp $
DISTNAME= lcms2-2.2
CATEGORIES= graphics
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=lcms/2.2/}
MAINTAINER= gdt@NetBSD.org
HOMEPAGE= http://www.littlecms.com/
COMMENT= Little Color Management System -- a color management library
# This is very MIT-like, but perhaps not the exact text.
#LICENSE= lcms-license
PKG_INSTALLATION_TYPES= overwrite pkgviews
PKG_DESTDIR_SUPPORT= user-destdir
GNU_CONFIGURE= yes
USE_LIBTOOL= yes
TEST_TARGET= check
# lcms does not need zlib, but will look for it and link it to tifficc
# if present. Therefore, we don't enjoin lcms from finding zlib, but
# don't include it via bl3.
PKGCONFIG_OVERRIDE= lcms.pc.in
.include "../../mk/jpeg.buildlink3.mk"
.include "../../graphics/tiff/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"

13
graphics/lcms2/PLIST Normal file
View file

@ -0,0 +1,13 @@
@comment $NetBSD: PLIST,v 1.1.1.1 2011/07/25 17:48:55 jakllsch Exp $
bin/jpgicc
bin/linkicc
bin/psicc
bin/tificc
bin/transicc
include/lcms2.h
include/lcms2_plugin.h
lib/liblcms2.la
lib/pkgconfig/lcms2.pc
man/man1/jpgicc.1
man/man1/tificc.1
@pkgdir share/doc/lcms

View file

@ -0,0 +1,25 @@
# $NetBSD: buildlink3.mk,v 1.1.1.1 2011/07/25 17:48:55 jakllsch Exp $
BUILDLINK_TREE+= lcms2
.if !defined(LCMS2_BUILDLINK3_MK)
LCMS2_BUILDLINK3_MK:=
BUILDLINK_API_DEPENDS.lcms2+= lcms2>=2.2
BUILDLINK_PKGSRCDIR.lcms?= ../../jakllsch/lcms2
BUILDLINK_TARGETS+= buildlink-include-lcms2
.PHONY: buildlink-include-lcms2
buildlink-include-lcms2:
.for _h_ in lcms2.h
${RUN} \
if [ ! -f ${BUILDLINK_DIR}/include/lcms2/${_h_} ]; then \
${MKDIR} ${BUILDLINK_DIR}/include/lcms2; \
${ECHO_BUILDLINK_MSG} "Linking lcms2/${_h_} to ${_h_} in ${BUILDLINK_DIR}/include"; \
${LN} -s ${BUILDLINK_PREFIX.lcms2}/include/${_h_} ${BUILDLINK_DIR}/include/lcms2/${_h_}; \
fi
.endfor
.endif # LCMS2_BUILDLINK3_MK
BUILDLINK_TREE+= -lcms2

5
graphics/lcms2/distinfo Normal file
View file

@ -0,0 +1,5 @@
$NetBSD: distinfo,v 1.1.1.1 2011/07/25 17:48:55 jakllsch Exp $
SHA1 (lcms2-2.2.tar.gz) = 55ae4884a92c7fbd491c118aa3b356814b1014df
RMD160 (lcms2-2.2.tar.gz) = 8e35a351c9549e53ebe4f120cdc5cf35e8b693fc
Size (lcms2-2.2.tar.gz) = 4193353 bytes