diff options
Diffstat (limited to 'graphics/OpenEXR/Makefile')
-rw-r--r-- | graphics/OpenEXR/Makefile | 53 |
1 files changed, 38 insertions, 15 deletions
diff --git a/graphics/OpenEXR/Makefile b/graphics/OpenEXR/Makefile index 0c70c1c0e4ee..b537a6c029b5 100644 --- a/graphics/OpenEXR/Makefile +++ b/graphics/OpenEXR/Makefile @@ -6,42 +6,65 @@ # PORTNAME= OpenEXR -PORTVERSION= 1.7.0 -DISTNAME= ${PORTNAME:L}-${PORTVERSION} +PORTVERSION= 1.7.1 CATEGORIES= graphics devel -MASTER_SITES= ${MASTER_SITE_SAVANNAH} -MASTER_SITE_SUBDIR= ${PORTNAME:L} +MASTER_SITES= http://cloud.github.com/downloads/openexr/openexr/ +DISTNAME= ${PORTNAME:L}-${DISTVERSION} -MAINTAINER= ports@FreeBSD.org -COMMENT= A high dynamic-range (HDR) image file format +MAINTAINER= nemysis@gmx.ch +COMMENT= High dynamic-range (HDR) image file format -LIB_DEPENDS= Half.6:${PORTSDIR}/graphics/ilmbase +LICENSE= BSD + +LIB_DEPENDS= Imath:${PORTSDIR}/graphics/ilmbase + +WRKSRC= ${WRKDIR}/${DISTNAME} USE_GMAKE= yes -USE_GNOME= pkgconfig +USE_PKGCONFIG= build USE_LDCONFIG= yes USE_AUTOTOOLS= libtool GNU_CONFIGURE= YES CONFIGURE_ARGS+=--enable-imfexamples -OPTIONS_DEFINE= LARGE_STACK +# must be explicitely linked with -l{thr|pthread} +LDFLAGS+= ${PTHREAD_LIBS} + +DOCSRCDIR1= ${WRKSRC} +DOC_FILES1= AUTHORS ChangeLog NEWS README + +DOCSRCDIR2= ${WRKSRC}/doc +DOC_FILES2= MultiViewOpenEXR.pdf OpenEXRFileLayout.pdf \ + ReadingAndWritingImageFiles.pdf TechnicalIntroduction.pdf + +OPTIONS_DEFINE= LARGE_STACK LARGE_STACK_DESC= Enable sys-dependant large stack optimizations -.include <bsd.port.pre.mk> +.include <bsd.port.options.mk> .if ${PORT_OPTIONS:MLARGE_STACK} CONFIGURE_ARGS+=--enable-large-stack .endif -# must be explicitely linked with -l{thr|pthread} -LDFLAGS+= ${PTHREAD_LIBS} - -WRKSRC= ${WRKDIR}/${DISTNAME} +post-patch: + @${REINPLACE_CMD} -e 's|examplesdir = $$(datadir)/doc/OpenEXR-@OPENEXR_VERSION@/examples|examplesdir = $$(prefix)/share/examples/OpenEXR|' \ + ${WRKSRC}/IlmImfExamples/Makefile.in + @${REINPLACE_CMD} -e 's|pkgconfigdir = $$(libdir)/pkgconfig|pkgconfigdir = $$(prefix)/libdata/pkgconfig|' \ + ${WRKSRC}/Makefile.in + @${REINPLACE_CMD} -e 's|docdir=$$(datadir)/doc/OpenEXR-@OPENEXR_VERSION@|docdir = $$(datadir)/doc/OpenEXR|' \ + -e 's|doc_DATA = $$(EXTRA_DIST)|doc_DATA =|' ${WRKSRC}/doc/Makefile.am ${WRKSRC}/doc/Makefile.in regression-test regression test check: build @(cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} check) +post-install: +.if ${PORT_OPTIONS:MDOCS} + ${MKDIR} ${DOCSDIR} + ${INSTALL_DATA} ${DOC_FILES1:S|^|${DOCSRCDIR1}/|} ${DOCSDIR} + ${INSTALL_DATA} ${DOC_FILES2:S|^|${DOCSRCDIR2}/|} ${DOCSDIR} +.endif + # IlmImfTest hangs indefinitely # #.if defined(PACKAGE_BUILDING) @@ -52,4 +75,4 @@ regression-test regression test check: build #.endif #.endif -.include <bsd.port.post.mk> +.include <bsd.port.mk> |