1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-22 04:17:44 +00:00
freebsd-ports/graphics/lcms2/Makefile
Tijl Coosemans 4072ee0553 Revert r356926 and r356927. Not all ports that depend on lcms* have been
converted to USES=libtool yet, so their .la files may still refer to the
lcms* .la files.
2014-06-09 07:49:58 +00:00

47 lines
1.3 KiB
Makefile

# Created by: Stanislav Sedov <stas@FreeBSD.org>
# $FreeBSD$
PORTNAME= lcms2
PORTVERSION= 2.6
PORTREVISION= 3
CATEGORIES= graphics
MASTER_SITES= SF/lcms/lcms/${PORTVERSION} \
http://www.littlecms.com/
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Accurate, fast, and small-footprint color management engine
LICENSE= MIT
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
CPPFLAGS+= -I${LOCALBASE}/include
GNU_CONFIGURE= yes
LDFLAGS+= -L${LOCALBASE}/lib
USE_LDCONFIG= yes
USES= libtool:keepla pathfix
PORTDOCS= *
JPEGICC_CONFIGURE_OFF= --without-jpeg
JPEGICC_CONFIGURE_ON= --with-jpeg=${LOCALBASE}
JPEGICC_LIB_DEPENDS= libjpeg.so:${PORTSDIR}/graphics/jpeg
TIFFICC_CONFIGURE_OFF= --without-tiff
TIFFICC_CONFIGURE_ON= --with-tiff=${LOCALBASE}
TIFFICC_LIB_DEPENDS= libtiff.so:${PORTSDIR}/graphics/tiff
post-install:
cd ${WRKSRC}/utils/ && ${INSTALL_MAN} linkicc/linkicc.1 psicc/psicc.1 transicc/transicc.1 ${STAGEDIR}${PREFIX}/man/man1/
${MKDIR} ${STAGEDIR}${DOCSDIR}/
${INSTALL_DATA} ${WRKSRC}/doc/*.pdf ${STAGEDIR}${DOCSDIR}/
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/liblcms2.so.2.0.6
regression-test test: build
cd ${WRKSRC}/testbed/ && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} check
.include <bsd.port.mk>