4e1b79a0a6
With hat: portmgr Sponsored by: Absolight
58 lines
1.3 KiB
Makefile
58 lines
1.3 KiB
Makefile
# Created by: nork@FreeBSD.org
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= ampasCTL
|
|
PORTVERSION= 1.5
|
|
PORTREVISION= 4
|
|
CATEGORIES= graphics devel
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Color Transformation Language interpreter
|
|
|
|
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:graphics/ilmbase \
|
|
libIlmImf.so:graphics/OpenEXR \
|
|
libtiff.so:graphics/tiff \
|
|
libAcesContainer.so:graphics/ampasACES-container
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= ampas
|
|
GH_PROJECT= CTL
|
|
GH_TAGNAME= 57b48a2
|
|
|
|
USES= cmake pkgconfig
|
|
USE_LDCONFIG= yes
|
|
|
|
PORTDOCS= *
|
|
|
|
DOCSRCDIR1= ${WRKSRC}
|
|
DOC_FILES1= AUTHORS CHANGELOG README.md
|
|
|
|
DOCSRCDIR2= ${WRKSRC}/doc
|
|
DOCSDIR2= ${DOCSDIR}/doc
|
|
DOC_FILES2= CtlManual.pdf CtlManual.doc
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|lib/CMake|lib/cmake|' \
|
|
-e 's|add_subdirectory(doc)||' \
|
|
-e 's|lib/pkgconfig|libdata/pkgconfig|' \
|
|
${WRKSRC}/CMakeLists.txt
|
|
|
|
@${REINPLACE_CMD} -e 's|lib/pkgconfig|libdata/pkgconfig|' \
|
|
${WRKSRC}/OpenEXR_CTL/CMakeLists.txt
|
|
|
|
post-install:
|
|
@${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>
|