mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-29 01:13:08 +00:00
5fbf0dc2f2
Upstream have changed Makefile.am and Makefile.in Reported by: mandree, danfe Approved by: pawel / wg (mentors, implicit)
73 lines
1.8 KiB
Makefile
73 lines
1.8 KiB
Makefile
# Created by: nork@FreeBSD.org
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= OpenEXR
|
|
PORTVERSION= 2.1.0
|
|
PORTREVISION= 1
|
|
CATEGORIES= graphics devel
|
|
MASTER_SITES= SAVANNAH/openexr/
|
|
DISTNAME= openexr-${DISTVERSION}
|
|
|
|
MAINTAINER= nemysis@FreeBSD.org
|
|
COMMENT= High dynamic-range (HDR) image file format
|
|
|
|
LICENSE= BSD
|
|
|
|
LIB_DEPENDS= libImath.so:${PORTSDIR}/graphics/ilmbase
|
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}
|
|
|
|
USES= gmake pathfix pkgconfig
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS+=--disable-ilmbasetest --enable-imfexamples
|
|
USE_AUTOTOOLS= libtool
|
|
USE_LDCONFIG= yes
|
|
|
|
# must be explicitely linked with -l{thr|pthread}
|
|
LDFLAGS+= ${PTHREAD_LIBS}
|
|
|
|
PORTDOCS= *
|
|
PORTEXAMPLES= *
|
|
|
|
DOCSRCDIR1= ${WRKSRC}
|
|
DOC_FILES1= AUTHORS ChangeLog NEWS README
|
|
|
|
DOCSRCDIR2= ${WRKSRC}/doc
|
|
DOCSDIR2= ${DOCSDIR}/doc
|
|
DOC_FILES2= *.pdf
|
|
|
|
OPTIONS_DEFINE= DOCS EXAMPLES LARGE_STACK
|
|
LARGE_STACK_DESC= Enable sys-dependant large stack optimizations
|
|
|
|
OPTIONS_SUB= yes
|
|
|
|
LARGE_STACK_CONFIGURE_ENABLE= large-stack
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
PLIST_SUB= MAJORVER=2_1
|
|
PLIST_SUB+= VER=21
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|== x|= x|g' ${WRKSRC}/configure
|
|
@${REINPLACE_CMD} -e 's|$$(datadir)/doc/OpenEXR-@OPENEXR_VERSION@/examples|$$(prefix)/share/examples/${PORTNAME}|' \
|
|
${WRKSRC}/IlmImfExamples/Makefile.in
|
|
@${REINPLACE_CMD} -e 's|$$(datadir)/doc/OpenEXR-@OPENEXR_VERSION@||' \
|
|
-e 's|$$(EXTRA_DIST)||' \
|
|
${WRKSRC}/doc/Makefile.am ${WRKSRC}/doc/Makefile.in
|
|
|
|
.if ! ${PORT_OPTIONS:MEXAMPLES}
|
|
EXTRA_PATCHES+=${FILESDIR}/extra-patch-IlmImfExamples-Makefile.in
|
|
.endif
|
|
|
|
regression-test regression test check: build
|
|
@(cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} check)
|
|
|
|
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>
|