- Add port for graphics/lcms2, a second version of Little CMS.

This is a separate port, because lcms2 is not API compatible with
  lcms1.

  WWW:	http://www.littlecms.com/
This commit is contained in:
Stanislav Sedov 2010-12-05 08:32:42 +00:00
parent fd7647d025
commit 830f06af34
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=265704
5 changed files with 116 additions and 0 deletions

View file

@ -419,6 +419,7 @@
SUBDIR += lcdtest
SUBDIR += lcms
SUBDIR += lcms-python
SUBDIR += lcms2
SUBDIR += leafpak
SUBDIR += lensfun
SUBDIR += leptonlib

89
graphics/lcms2/Makefile Normal file
View file

@ -0,0 +1,89 @@
# New ports collection makefile for: lcms2
# Date created: 12/04/2010
# Whom: stas
#
# $FreeBSD$
#
PORTNAME= lcms2
PORTVERSION= 2.1
CATEGORIES= graphics
MASTER_SITES= SF/lcms/lcms/${PORTVERSION} \
http://www.littlecms.com/
MAINTAINER= stas@FreeBSD.org
COMMENT= Light Color Management System -- a color management library
USE_GNOME= gnomehack gnometarget lthack
GNU_CONFIGURE= yes
CONFIGURE_ENV= CFLAGS="${CFLAGS} -I${LOCALBASE}/include" \
CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include" \
LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib"
USE_LDCONFIG= yes
OPTIONS= TIFFICC "Build color profile applier for TIFF" off \
JPEGICC "Build color profile applier for JPEG" off
UTILS= transicc psicc linkicc
MAN1= transicc.1 psicc.1 linkicc.1
.include <bsd.port.pre.mk>
.if defined(WITH_TIFFICC)
LIB_DEPENDS+= tiff.4:${PORTSDIR}/graphics/tiff
PLIST_SUB+= TIFFICC=""
MAN1+= tificc.1
UTILS+= tificc
.else
CONFIGURE_ARGS= --without-tiff
PLIST_SUB+= TIFFICC="@comment "
.endif
.if defined(WITH_JPEGICC)
LIB_DEPENDS+= jpeg.11:${PORTSDIR}/graphics/jpeg
PLIST_SUB+= JPEGICC=""
MAN1+= jpgicc.1
UTILS+= jpgicc
.else
CONFIGURE_ARGS= --without-jpeg
PLIST_SUB+= JPEGICC="@comment "
.endif
post-patch:
@${REINPLACE_CMD} -e \
's|^SUBDIRS =.*$$|SUBDIRS = src include|g' ${WRKSRC}/Makefile.in
@${REINPLACE_CMD} -e \
's|-O3||g' ${WRKSRC}/src/Makefile.in
#
# Get rid of .la and static library files
#
post-configure:
@${REINPLACE_CMD} -E -e \
'/Install the pseudo-library/,/staticlibs=/s,^,#,' ${WRKSRC}/libtool
post-build:
.for DIR in ${UTILS}
@(cd ${WRKSRC}/utils/${DIR} && ${SETENV} ${MAKE_ENV} ${MAKE} \
${MAKE_FLAGS} Makefile all)
.endfor
post-install:
.for DIR in ${UTILS}
@(cd ${WRKSRC}/utils/${DIR} && ${SETENV} ${MAKE_ENV} ${MAKE} \
${MAKE_FLAGS} Makefile install)
.endfor
${INSTALL_MAN} ${WRKSRC}/utils/linkicc/linkicc.1 ${MAN1PREFIX}/man/man1/
${INSTALL_MAN} ${WRKSRC}/utils/psicc/psicc.1 ${MAN1PREFIX}/man/man1/
${INSTALL_MAN} ${WRKSRC}/utils/transicc/transicc.1 ${MAN1PREFIX}/man/man1/
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/doc/*.pdf ${DOCSDIR}
.endif
test:
cd ${WRKSRC}/testbed && ${SETENV} ${MAKE_ENV} ${MAKE} check
.include <bsd.port.post.mk>

2
graphics/lcms2/distinfo Normal file
View file

@ -0,0 +1,2 @@
SHA256 (lcms2-2.1.tar.gz) = 8b367bd60add7806c9aac970594dae636c24ba28dc774c00f8067644994e9c30
SIZE (lcms2-2.1.tar.gz) = 3752136

10
graphics/lcms2/pkg-descr Normal file
View file

@ -0,0 +1,10 @@
LCMS is the Little Color Management System, a Color Matching Method
(CMM) library which implements fast transforms between ICC profiles.
It is released under LGPL with source code and meant to be portable.
Color management refers to techniques that ensure consistent color
as images are transferred from scanners or cameras to monitors and
printers.
Author: Marti Maria
WWW: http://www.littlecms.com/

14
graphics/lcms2/pkg-plist Normal file
View file

@ -0,0 +1,14 @@
%%JPEGICC%%bin/jpgicc
bin/linkicc
bin/psicc
%%TIFFICC%%bin/tificc
bin/transicc
include/lcms2.h
include/lcms2_plugin.h
lib/liblcms2.so
lib/liblcms2.so.2
libdata/pkgconfig/lcms2.pc
%%PORTDOCS%%%%DOCSDIR%%/LittleCMS2.1 API.pdf
%%PORTDOCS%%%%DOCSDIR%%/LittleCMS2.1 Plugin API.pdf
%%PORTDOCS%%%%DOCSDIR%%/LittleCMS2.1 tutorial.pdf
%%PORTDOCS%%@dirrm %%DOCSDIR%%