2012-10-07 17:08:52 +02:00
|
|
|
# Created by: Mikhail Teterin <mi@aldan.algebra.com>
|
2000-11-03 18:03:33 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= lcms
|
2009-12-15 06:20:19 +01:00
|
|
|
PORTVERSION= 1.19
|
2010-02-05 12:46:55 +01:00
|
|
|
PORTREVISION= 1
|
2003-05-22 00:39:38 +02:00
|
|
|
PORTEPOCH= 1
|
2000-11-03 18:03:33 +01:00
|
|
|
CATEGORIES= graphics
|
2012-10-07 17:08:52 +02:00
|
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTVERSION} \
|
2002-11-06 06:29:10 +01:00
|
|
|
http://www.littlecms.com/
|
2009-08-22 02:23:13 +02:00
|
|
|
|
2011-11-14 03:17:21 +01:00
|
|
|
MAINTAINER= sunpoet@FreeBSD.org
|
2003-03-07 07:14:21 +01:00
|
|
|
COMMENT= Light Color Management System -- a color management library
|
2000-11-03 18:03:33 +01:00
|
|
|
|
2012-10-07 17:08:52 +02:00
|
|
|
OPTIONS_DEFINE= DOCS JPEGICC TIFFICC
|
|
|
|
JPEGICC_DESC= Build color profile applier for JPEG
|
|
|
|
TIFFICC_DESC= Build color profile applier for TIFF
|
|
|
|
|
2011-09-24 00:26:39 +02:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
2012-10-07 17:08:52 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2011-09-24 00:26:39 +02:00
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
2012-10-07 17:08:52 +02:00
|
|
|
USE_GNOME= gnomehack lthack
|
2006-08-10 22:59:53 +02:00
|
|
|
USE_LDCONFIG= yes
|
2006-10-08 19:07:23 +02:00
|
|
|
|
2012-10-07 17:08:52 +02:00
|
|
|
.include <bsd.port.options.mk>
|
2006-10-08 19:07:23 +02:00
|
|
|
|
2012-10-07 17:08:52 +02:00
|
|
|
.if ${PORT_OPTIONS:MJPEGICC}
|
|
|
|
LIB_DEPENDS+= jpeg:${PORTSDIR}/graphics/jpeg
|
|
|
|
CONFIGURE_ARGS+=--with-jpeg=${LOCALBASE}
|
|
|
|
MAN1+= jpegicc.1
|
|
|
|
PLIST_SUB+= JPEGICC=""
|
2006-10-08 19:07:23 +02:00
|
|
|
.else
|
2012-10-07 17:08:52 +02:00
|
|
|
CONFIGURE_ARGS+=--without-jpeg
|
|
|
|
PLIST_SUB+= JPEGICC="@comment "
|
2006-10-08 19:07:23 +02:00
|
|
|
.endif
|
|
|
|
|
2012-10-07 17:08:52 +02:00
|
|
|
.if ${PORT_OPTIONS:MTIFFICC}
|
|
|
|
LIB_DEPENDS+= tiff:${PORTSDIR}/graphics/tiff
|
|
|
|
CONFIGURE_ARGS= --with-tiff=${LOCALBASE}
|
|
|
|
MAN1+= tifficc.1
|
|
|
|
PLIST_SUB+= TIFFICC=""
|
2006-10-08 19:07:23 +02:00
|
|
|
.else
|
2012-10-07 17:08:52 +02:00
|
|
|
CONFIGURE_ARGS+=--without-tiff
|
|
|
|
PLIST_SUB+= TIFFICC="@comment "
|
2006-10-08 19:07:23 +02:00
|
|
|
.endif
|
|
|
|
|
2004-05-23 21:08:26 +02:00
|
|
|
post-patch:
|
2012-10-07 17:08:52 +02:00
|
|
|
@${REINPLACE_CMD} -e '/^SUBDIRS = / s| python samples||' ${WRKSRC}/Makefile.in
|
|
|
|
@${REINPLACE_CMD} -e 's|^testcms_LDFLAGS = .*$$|& -static|' ${WRKSRC}/testbed/Makefile.in
|
|
|
|
.if empty(PORT_OPTIONS:MJPEGICC)
|
|
|
|
@${REINPLACE_CMD} -e '/^SUBDIRS = / s| jpegicc||' ${WRKSRC}/Makefile.in
|
|
|
|
.endif
|
|
|
|
.if empty(PORT_OPTIONS:MTIFFICC)
|
|
|
|
@${REINPLACE_CMD} -e '/^SUBDIRS = / s| tifficc||' ${WRKSRC}/Makefile.in
|
|
|
|
.endif
|
2004-05-23 21:08:26 +02:00
|
|
|
|
2009-04-07 14:19:01 +02:00
|
|
|
post-configure:
|
2012-10-07 17:08:52 +02:00
|
|
|
# Get rid of .la and static library files
|
|
|
|
@${REINPLACE_CMD} -E -e '/Install the pseudo-library/,/staticlibs=/s,^,#,' ${WRKSRC}/libtool
|
2009-04-07 14:19:01 +02:00
|
|
|
|
2000-11-03 18:03:33 +01:00
|
|
|
post-install:
|
2012-10-07 17:08:52 +02:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
|
|
${MKDIR} ${DOCSDIR}/
|
|
|
|
cd ${WRKSRC}/ && ${INSTALL_DATA} doc/LCMSAPI.TXT doc/TUTORIAL.TXT tifficc/tifficc.c \
|
|
|
|
jpegicc/jpegicc.c jpegicc/iccjpeg.c samples/wtpt.c samples/icctrans.c ${DOCSDIR}/
|
2006-10-08 19:07:23 +02:00
|
|
|
.endif
|
|
|
|
|
2012-10-07 17:08:52 +02:00
|
|
|
regression-test test: build
|
|
|
|
cd ${WRKSRC}/testbed/ && ${SETENV} ${MAKE_ENV} ${MAKE} check
|
2001-04-11 01:14:05 +02:00
|
|
|
|
2012-10-07 17:08:52 +02:00
|
|
|
.include <bsd.port.mk>
|