diff options
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/lcms/Makefile | 40 | ||||
-rw-r--r-- | graphics/lcms/pkg-plist | 3 |
2 files changed, 40 insertions, 3 deletions
diff --git a/graphics/lcms/Makefile b/graphics/lcms/Makefile index 88f27b3..7fe7705 100644 --- a/graphics/lcms/Makefile +++ b/graphics/lcms/Makefile @@ -7,20 +7,44 @@ PORTNAME= lcms PORTVERSION= 1.15 +PORTREVISION= 1 PORTEPOCH= 1 CATEGORIES= graphics MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \ http://www.littlecms.com/ MASTER_SITE_SUBDIR= ${PORTNAME} -MAINTAINER= ssedov@mbsd.msk.ru +MAINTAINER= stas@FreeBSD.org COMMENT= Light Color Management System -- a color management library USE_GNOME= gnomehack gnometarget lthack GNU_CONFIGURE= yes -CONFIGURE_ARGS= --without-jpeg --without-tiff +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 + +.include <bsd.port.pre.mk> + +.if defined(WITH_TIFFICC) +LIB_DEPENDS+= tiff.4:${PORTSDIR}/graphics/tiff +PLIST_SUB+= TIFFICC="" +.else +CONFIGURE_ARGS= --without-tiff +PLIST_SUB+= TIFFICC="@comment " +.endif + +.if defined(WITH_TIFFICC) +LIB_DEPENDS+= jpeg.9:${PORTSDIR}/graphics/jpeg +PLIST_SUB+= JPEGICC="" +.else +CONFIGURE_ARGS= --without-jpeg +PLIST_SUB+= JPEGICC="@comment " +.endif + post-patch: @${REINPLACE_CMD} -e \ 's|^SUBDIRS =.*$$|SUBDIRS = src include|g' ${WRKSRC}/Makefile.in @@ -36,7 +60,17 @@ post-install: .endfor .endif +.if defined(WITH_TIFFICC) + @(cd ${WRKSRC}/tifficc && ${SETENV} ${MAKE_ENV} ${MAKE} \ + ${MAKE_FLAGS} Makefile all install) +.endif + +.if defined(WITH_JPEGICC) + @(cd ${WRKSRC}/jpegicc && ${SETENV} ${MAKE_ENV} ${MAKE} \ + ${MAKE_FLAGS} Makefile all install) +.endif + post-build test: cd ${WRKSRC}/testbed && ${SETENV} ${MAKE_ENV} ${MAKE} check -.include <bsd.port.mk> +.include <bsd.port.post.mk> diff --git a/graphics/lcms/pkg-plist b/graphics/lcms/pkg-plist index b8e8611..06cdb655 100644 --- a/graphics/lcms/pkg-plist +++ b/graphics/lcms/pkg-plist @@ -1,3 +1,6 @@ +%%JPEGICC%%bin/jpegicc +%%TIFFICC%%bin/tiffdiff +%%TIFFICC%%bin/tifficc include/icc34.h include/lcms.h lib/liblcms.a |