freebsd-ports/graphics/ampasCTL/Makefile
Matthias Andree 1b4453302b *: Bump PORTREVISION for OpenEXR users
Because OpenEXR's SONAME has changed with the 3.2.0 update.
New SONAME: libOpenEXR-3_2.so.31
2023-09-10 13:44:32 +02:00

51 lines
1.3 KiB
Makefile

PORTNAME= ampasCTL
PORTVERSION= 1.5.2
PORTREVISION= 20
CATEGORIES= graphics devel
MAINTAINER= ports@FreeBSD.org
COMMENT= Color Transformation Language interpreter
WWW= https://github.com/ampas/CTL
LICENSE= AMPAS
LICENSE_NAME= AMPAS
LICENSE_FILE= ${WRKSRC}/LICENSE
LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
LIB_DEPENDS= libImath.so:math/Imath \
libOpenEXR.so:graphics/openexr \
libtiff.so:graphics/tiff \
libAcesContainer.so:graphics/ampasACES-container
USES= cmake compiler:c++11-lang localbase:ldflags pathfix pkgconfig
USE_CXXSTD= c++11
USE_GITHUB= yes
GH_ACCOUNT= ampas
GH_PROJECT= CTL
GH_TAGNAME= 57b48a2
USE_LDCONFIG= yes
CFLAGS+= -I${LOCALBASE}/include/OpenEXR -I${LOCALBASE}/include/Imath
PORTDOCS= *
OPTIONS_DEFINE= DOCS
DOCSRCDIR1= ${WRKSRC}
DOC_FILES1= AUTHORS CHANGELOG README.md
DOCSRCDIR2= ${WRKSRC}/doc
DOCSDIR2= ${DOCSDIR}/doc
DOC_FILES2= CtlManual.pdf CtlManual.doc
post-patch:
@${REINPLACE_CMD} -e 's|lib/CMake|lib/cmake|' \
-e 's|add_subdirectory(doc)||' \
${WRKSRC}/CMakeLists.txt
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${DOC_FILES1:S|^|${DOCSRCDIR1}/|} ${STAGEDIR}${DOCSDIR}
@${MKDIR} ${STAGEDIR}${DOCSDIR2}
${INSTALL_DATA} ${DOC_FILES2:S|^|${DOCSRCDIR2}/|} ${STAGEDIR}${DOCSDIR2}
.include <bsd.port.mk>