summaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authorstas <stas@FreeBSD.org>2006-10-08 17:07:23 +0000
committerstas <stas@FreeBSD.org>2006-10-08 17:07:23 +0000
commitc132cbb6882fe60a65fd05bb667dfbc28cf71103 (patch)
tree0640979336586a168dbe81003c60bbd5bd3ef7d4 /graphics
parentbdcbb34d8abfee0f77d39eed0d2b81120a1973f0 (diff)
downloadFreeBSD-ports-c132cbb6882fe60a65fd05bb667dfbc28cf71103.zip
FreeBSD-ports-c132cbb6882fe60a65fd05bb667dfbc28cf71103.tar.gz
- Add KNOBS to build supplimentary utilities
- Change my email PR: ports/76116 (based on) Suggested by: Raphael Langerhorst <raphael-langerhorst@gmx.at> Approved by: sem (mentor)
Diffstat (limited to 'graphics')
-rw-r--r--graphics/lcms/Makefile40
-rw-r--r--graphics/lcms/pkg-plist3
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
OpenPOWER on IntegriCloud