diff options
author | nemysis <nemysis@FreeBSD.org> | 2013-10-14 21:40:48 +0800 |
---|---|---|
committer | nemysis <nemysis@FreeBSD.org> | 2013-10-14 21:40:48 +0800 |
commit | 3aacda10cbb571be8cb5811f1acf417fec3b4425 (patch) | |
tree | 6540827227e674c73f99844ba518a4a0238f2260 /graphics/ampasCTL/Makefile | |
parent | e6a3324c6e85ce7d576658bde5c09d9a0fc03df6 (diff) | |
download | freebsd-ports-gnome-3aacda10cbb571be8cb5811f1acf417fec3b4425.tar.gz freebsd-ports-gnome-3aacda10cbb571be8cb5811f1acf417fec3b4425.tar.zst freebsd-ports-gnome-3aacda10cbb571be8cb5811f1acf417fec3b4425.zip |
- Update to 1.5
- Merge ampasCTL-1.4.1 and openexr_ctl-1.0.1 into ampasCTL-1.5
- Add conflict with graphics/openexr_ctl
- Add dependencies for OpenEXR, tiff and ampasACES-container
- USES cmake pkgconfig
- Support STAGEDIR
- Change pkg-descr
Approved by: wg/pawel (mentors)
Diffstat (limited to 'graphics/ampasCTL/Makefile')
-rw-r--r-- | graphics/ampasCTL/Makefile | 50 |
1 files changed, 22 insertions, 28 deletions
diff --git a/graphics/ampasCTL/Makefile b/graphics/ampasCTL/Makefile index 46c445efc467..ae21c39c05fd 100644 --- a/graphics/ampasCTL/Makefile +++ b/graphics/ampasCTL/Makefile @@ -2,36 +2,34 @@ # $FreeBSD$ PORTNAME= ampasCTL -PORTVERSION= 1.4.1 -PORTREVISION= 1 +PORTVERSION= 1.5 CATEGORIES= graphics devel -DISTNAME= ctl-${DISTVERSION} MAINTAINER= nemysis@FreeBSD.org COMMENT= Color Transformation Language interpreter LICENSE= BSD -LIB_DEPENDS= libImath.so:${PORTSDIR}/graphics/ilmbase +CONFLICTS= openexr_ctl-1.[0-4].* -WRKSRC= ${WRKDIR}/ampas-CTL-${GH_COMMIT}/CTL +LIB_DEPENDS= libImath.so:${PORTSDIR}/graphics/ilmbase \ + libIlmImf.so:${PORTSDIR}/graphics/OpenEXR \ + libtiff.so:${PORTSDIR}/graphics/tiff \ + libAcesContainer.so:${PORTSDIR}/graphics/ampasACES-container USE_GITHUB= yes GH_ACCOUNT= ampas GH_PROJECT= CTL GH_TAGNAME= ${GH_COMMIT} -GH_COMMIT= ca179ca +GH_COMMIT= 9cb69b8 -USES= pathfix pkgconfig -PATHFIX_MAKEFILEIN= Makefile.am -GNU_CONFIGURE= yes -USE_AUTOTOOLS= aclocal libtool +USES= cmake pkgconfig USE_LDCONFIG= yes PORTDOCS= * DOCSRCDIR1= ${WRKSRC} -DOC_FILES1= AUTHORS ChangeLog NEWS README +DOC_FILES1= AUTHORS CHANGELOG README.md DOCSRCDIR2= ${WRKSRC}/doc DOCSDIR2= ${DOCSDIR}/doc @@ -39,29 +37,25 @@ DOC_FILES2= CtlManual.pdf CtlManual.doc OPTIONS_DEFINE= DOCS -NO_STAGE= yes .include <bsd.port.options.mk> -pre-configure: - @(cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} ./bootstrap) - post-patch: - @${REINPLACE_CMD} -e 's|CtlManual.pdf CtlManual.doc||' \ - ${WRKSRC}/doc/Makefile.am + @${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 -test check: build - @(cd ${WRKSRC} ; ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} check) + @${REINPLACE_CMD} -e 's|lib/CMake|lib/cmake|' \ + -e 's|add_subdirectory(doc)||' \ + -e 's|lib/pkgconfig|libdata/pkgconfig|' \ + ${WRKSRC}/CMakeLists.txt -.if defined(PACKAGE_BUILDING) -pre-install: test -.endif + @${REINPLACE_CMD} -e 's|lib/pkgconfig|libdata/pkgconfig|' \ + ${WRKSRC}/OpenEXR_CTL/CMakeLists.txt post-install: -.if ${PORT_OPTIONS:MDOCS} - @${MKDIR} ${DOCSDIR} - ${INSTALL_DATA} ${DOC_FILES1:S|^|${DOCSRCDIR1}/|} ${DOCSDIR} - @${MKDIR} ${DOCSDIR2} - ${INSTALL_DATA} ${DOC_FILES2:S|^|${DOCSRCDIR2}/|} ${DOCSDIR2} -.endif + @${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> |