diff options
author | Stanislav Sedov <stas@FreeBSD.org> | 2006-10-08 17:07:23 +0000 |
---|---|---|
committer | Stanislav Sedov <stas@FreeBSD.org> | 2006-10-08 17:07:23 +0000 |
commit | e5bed1ffa3bffa718c1063c26d19f8a9dc1f4d33 (patch) | |
tree | 6790902752e7de08825306fd2cef421dfff656db /graphics | |
parent | 56f7cc65e273b91d03315aec0704ab8cc578a786 (diff) | |
download | ports-e5bed1ffa3bffa718c1063c26d19f8a9dc1f4d33.tar.gz ports-e5bed1ffa3bffa718c1063c26d19f8a9dc1f4d33.zip |
Notes
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 88f27b31be30..7fe770526dfb 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 b8e86117a979..06cdb6551be0 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 |