1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-02 01:20:54 +00:00
freebsd-ports/graphics/lcms/Makefile
Sunpoet Po-Chuan Hsieh 10ba13c7ec Cosmetic change
2020-01-19 11:09:51 +00:00

49 lines
1.3 KiB
Makefile

# Created by: Mikhail Teterin <mi@aldan.algebra.com>
# $FreeBSD$
PORTNAME= lcms
PORTVERSION= 1.19
PORTREVISION= 6
PORTEPOCH= 1
CATEGORIES= graphics
MASTER_SITES= SF \
LOCAL/sunpoet
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Light Color Management System -- a color management library
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/COPYING
USES= libtool localbase:ldflags pathfix
GNU_CONFIGURE= yes
INSTALL_TARGET= install-strip
TEST_TARGET= check
USE_LDCONFIG= yes
PORTDOCS= *
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
JPEGICC_CONFIGURE_WITH= jpeg
JPEGICC_USES= jpeg
TIFFICC_CONFIGURE_WITH= tiff
TIFFICC_LIB_DEPENDS= libtiff.so: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>