2013-04-23 12:47:02 +02:00
|
|
|
# Created by: nork@FreeBSD.org
|
2007-10-08 00:46:38 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= ampasCTL
|
2013-10-14 15:40:48 +02:00
|
|
|
PORTVERSION= 1.5
|
2014-09-10 22:50:31 +02:00
|
|
|
PORTREVISION= 4
|
2007-10-08 00:46:38 +02:00
|
|
|
CATEGORIES= graphics devel
|
|
|
|
|
2013-09-24 23:28:32 +02:00
|
|
|
MAINTAINER= nemysis@FreeBSD.org
|
2007-10-08 00:46:38 +02:00
|
|
|
COMMENT= Color Transformation Language interpreter
|
|
|
|
|
2013-01-17 04:26:03 +01:00
|
|
|
LICENSE= BSD
|
2007-10-08 00:46:38 +02:00
|
|
|
|
2013-10-14 15:40:48 +02:00
|
|
|
CONFLICTS= openexr_ctl-1.[0-4].*
|
2013-01-17 04:26:03 +01:00
|
|
|
|
2013-10-14 15:40:48 +02:00
|
|
|
LIB_DEPENDS= libImath.so:${PORTSDIR}/graphics/ilmbase \
|
|
|
|
libIlmImf.so:${PORTSDIR}/graphics/OpenEXR \
|
|
|
|
libtiff.so:${PORTSDIR}/graphics/tiff \
|
|
|
|
libAcesContainer.so:${PORTSDIR}/graphics/ampasACES-container
|
2013-09-24 23:28:32 +02:00
|
|
|
|
|
|
|
USE_GITHUB= yes
|
|
|
|
GH_ACCOUNT= ampas
|
|
|
|
GH_PROJECT= CTL
|
|
|
|
GH_TAGNAME= ${GH_COMMIT}
|
2013-11-20 15:25:28 +01:00
|
|
|
GH_COMMIT= afcff97
|
2013-09-24 23:28:32 +02:00
|
|
|
|
2013-10-14 15:40:48 +02:00
|
|
|
USES= cmake pkgconfig
|
2013-09-24 23:28:32 +02:00
|
|
|
USE_LDCONFIG= yes
|
|
|
|
|
|
|
|
PORTDOCS= *
|
2007-10-08 00:46:38 +02:00
|
|
|
|
2013-09-24 23:28:32 +02:00
|
|
|
DOCSRCDIR1= ${WRKSRC}
|
2013-10-14 15:40:48 +02:00
|
|
|
DOC_FILES1= AUTHORS CHANGELOG README.md
|
2013-09-24 23:28:32 +02:00
|
|
|
|
|
|
|
DOCSRCDIR2= ${WRKSRC}/doc
|
|
|
|
DOCSDIR2= ${DOCSDIR}/doc
|
|
|
|
DOC_FILES2= CtlManual.pdf CtlManual.doc
|
|
|
|
|
|
|
|
OPTIONS_DEFINE= DOCS
|
2013-01-17 04:26:03 +01:00
|
|
|
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
2013-09-24 23:28:32 +02:00
|
|
|
post-patch:
|
2013-10-14 15:40:48 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|#include <alloca.h>||' \
|
|
|
|
${WRKSRC}/lib/dpx/dpx_util.cc ${WRKSRC}/lib/IlmCtl/CtlExc.cpp \
|
|
|
|
${WRKSRC}/lib/IlmCtl/CtlTypeStorage.cpp ${WRKSRC}/ctlrender/tiff_file.cc
|
2013-09-24 23:28:32 +02:00
|
|
|
|
2013-10-14 15:40:48 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|lib/CMake|lib/cmake|' \
|
|
|
|
-e 's|add_subdirectory(doc)||' \
|
|
|
|
-e 's|lib/pkgconfig|libdata/pkgconfig|' \
|
|
|
|
${WRKSRC}/CMakeLists.txt
|
2007-10-08 00:46:38 +02:00
|
|
|
|
2013-10-14 15:40:48 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|lib/pkgconfig|libdata/pkgconfig|' \
|
|
|
|
${WRKSRC}/OpenEXR_CTL/CMakeLists.txt
|
2007-10-08 00:46:38 +02:00
|
|
|
|
2013-01-17 04:26:03 +01:00
|
|
|
post-install:
|
2013-10-14 15:40:48 +02:00
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${DOC_FILES1:S|^|${DOCSRCDIR1}/|} ${STAGEDIR}${DOCSDIR}
|
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR2}
|
|
|
|
${INSTALL_DATA} ${DOC_FILES2:S|^|${DOCSRCDIR2}/|} ${STAGEDIR}${DOCSDIR2}
|
2013-01-17 04:26:03 +01:00
|
|
|
|
2007-10-08 00:46:38 +02:00
|
|
|
.include <bsd.port.mk>
|