diff options
-rw-r--r-- | graphics/Makefile | 1 | ||||
-rw-r--r-- | graphics/lcms2/Makefile | 89 | ||||
-rw-r--r-- | graphics/lcms2/distinfo | 2 | ||||
-rw-r--r-- | graphics/lcms2/pkg-descr | 10 | ||||
-rw-r--r-- | graphics/lcms2/pkg-plist | 14 |
5 files changed, 116 insertions, 0 deletions
diff --git a/graphics/Makefile b/graphics/Makefile index 89d9904215bb..5fc19b0e46ee 100644 --- a/graphics/Makefile +++ b/graphics/Makefile @@ -419,6 +419,7 @@ SUBDIR += lcdtest SUBDIR += lcms SUBDIR += lcms-python + SUBDIR += lcms2 SUBDIR += leafpak SUBDIR += lensfun SUBDIR += leptonlib 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%% |