1db83699fd
- Add missed manpage entries [1] PR: ports/107173 Submitted by: Radim Kolar SF.NET <hsn@sendmail.cz> [1]
79 lines
1.9 KiB
Makefile
79 lines
1.9 KiB
Makefile
# New ports collection makefile for: lcms
|
|
# Date created: October 30, 2000
|
|
# Whom: Mikhail Teterin <mi@aldan.algebra.com>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= lcms
|
|
PORTVERSION= 1.16
|
|
PORTREVISION= 0
|
|
PORTEPOCH= 1
|
|
CATEGORIES= graphics
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \
|
|
http://www.littlecms.com/
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
|
|
|
MAINTAINER= stas@FreeBSD.org
|
|
COMMENT= Light Color Management System -- a color management library
|
|
|
|
USE_GNOME= gnomehack gnometarget lthack
|
|
GNU_CONFIGURE= yes
|
|
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=""
|
|
MAN1+= tifficc.1
|
|
.else
|
|
CONFIGURE_ARGS= --without-tiff
|
|
PLIST_SUB+= TIFFICC="@comment "
|
|
.endif
|
|
|
|
.if defined(WITH_JPEGICC)
|
|
LIB_DEPENDS+= jpeg.9:${PORTSDIR}/graphics/jpeg
|
|
PLIST_SUB+= JPEGICC=""
|
|
MAN1+= jpegicc.1
|
|
.else
|
|
CONFIGURE_ARGS= --without-jpeg
|
|
PLIST_SUB+= JPEGICC="@comment "
|
|
.endif
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e \
|
|
's|^SUBDIRS =.*$$|SUBDIRS = src include|g' ${WRKSRC}/Makefile.in
|
|
@${REINPLACE_CMD} -e \
|
|
's|-O3||g' ${WRKSRC}/src/Makefile.in
|
|
|
|
post-install:
|
|
.if !defined(NOPORTDOCS)
|
|
@${MKDIR} ${DOCSDIR}
|
|
.for file in doc/LCMSAPI.TXT doc/TUTORIAL.TXT tifficc/tifficc.c \
|
|
jpegicc/jpegicc.c jpegicc/iccjpeg.c samples/wtpt.c samples/icctrans.c
|
|
${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
|
|
.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.post.mk>
|