blob: 1a53babaa91040ab357d7947ec108f66acf84413 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
# Created by: Mikhail Teterin <mi@aldan.algebra.com>
# $FreeBSD$
PORTNAME= lcms
PORTVERSION= 1.19
PORTREVISION= 6
PORTEPOCH= 1
CATEGORIES= graphics
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTVERSION} \
http://www.littlecms.com/
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Light Color Management System -- a color management library
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/COPYING
OPTIONS_DEFINE= DOCS JPEGICC TIFFICC
OPTIONS_DEFAULT=JPEGICC TIFFICC
OPTIONS_SUB= yes
JPEGICC_DESC= Build color profile applier for JPEG
TIFFICC_DESC= Build color profile applier for TIFF
GNU_CONFIGURE= yes
INSTALL_TARGET= install-strip
TEST_TARGET= check
USE_LDCONFIG= yes
USES= libtool localbase pathfix
PORTDOCS= *
JPEGICC_CONFIGURE_WITH= jpeg
JPEGICC_USES= jpeg
TIFFICC_CONFIGURE_WITH= tiff
TIFFICC_LIB_DEPENDS= libtiff.so:${PORTSDIR}/graphics/tiff
post-patch:
@${REINPLACE_CMD} -e '/^SUBDIRS = / s| python samples||' ${WRKSRC}/Makefile.in
@${REINPLACE_CMD} -e '/^#ifdef __sgi/ s|__sgi|__unix__|; /^#include "sgidefs.h"/d' ${WRKSRC}/include/icc34.h.in
@${REINPLACE_CMD} -e '/^testcms_LDFLAGS = / s|$$| -static|' ${WRKSRC}/testbed/Makefile.in
post-install-DOCS-on:
${MKDIR} ${STAGEDIR}${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 ${STAGEDIR}${DOCSDIR}/
.include <bsd.port.mk>
|