aboutsummaryrefslogtreecommitdiff
path: root/graphics/lcms2
diff options
context:
space:
mode:
authorStanislav Sedov <stas@FreeBSD.org>2010-12-05 08:32:42 +0000
committerStanislav Sedov <stas@FreeBSD.org>2010-12-05 08:32:42 +0000
commit830f06af3482a0d884dae6c59c176923d3df7d78 (patch)
treed67b58bd2ac172b87798082888ab46c5ed2cb1e6 /graphics/lcms2
parentfd7647d025e062b54d7451e76f6fc76992fc946b (diff)
downloadports-830f06af3482a0d884dae6c59c176923d3df7d78.tar.gz
ports-830f06af3482a0d884dae6c59c176923d3df7d78.zip
- 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/
Notes
Notes: svn path=/head/; revision=265704
Diffstat (limited to 'graphics/lcms2')
-rw-r--r--graphics/lcms2/Makefile89
-rw-r--r--graphics/lcms2/distinfo2
-rw-r--r--graphics/lcms2/pkg-descr10
-rw-r--r--graphics/lcms2/pkg-plist14
4 files changed, 115 insertions, 0 deletions
diff --git a/graphics/lcms2/Makefile b/graphics/lcms2/Makefile
new file mode 100644
index 000000000000..7a83563e9193
--- /dev/null
+++ b/graphics/lcms2/Makefile
@@ -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>
diff --git a/graphics/lcms2/distinfo b/graphics/lcms2/distinfo
new file mode 100644
index 000000000000..1039def910fa
--- /dev/null
+++ b/graphics/lcms2/distinfo
@@ -0,0 +1,2 @@
+SHA256 (lcms2-2.1.tar.gz) = 8b367bd60add7806c9aac970594dae636c24ba28dc774c00f8067644994e9c30
+SIZE (lcms2-2.1.tar.gz) = 3752136
diff --git a/graphics/lcms2/pkg-descr b/graphics/lcms2/pkg-descr
new file mode 100644
index 000000000000..d701ce3f4117
--- /dev/null
+++ b/graphics/lcms2/pkg-descr
@@ -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/
diff --git a/graphics/lcms2/pkg-plist b/graphics/lcms2/pkg-plist
new file mode 100644
index 000000000000..c50a08936aa0
--- /dev/null
+++ b/graphics/lcms2/pkg-plist
@@ -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%%