freebsd-ports/graphics/ilmbase/Makefile
Matthias Andree 515db2ed10 Upgrade OpenEXR and ilmbase to 2.2.0.
GCC 4.2 in FreeBSD 8.X/9.X base is now too old to compile OpenEXR, so
GCC-based systems will upgrade to the default ports compiler (GCC 4.7
currently.)

Add two patches to OpenEXR to permit building it in a live system with
the older OpenEXR version installed. Bug report filed to upstream Github
at https://github.com/openexr/openexr/issues/130

Couple OpenEXR more tightly to ilmbase and require its exact .so
version.

Add UPDATING note, and bump PORTREVISION of all dependent ports.

Proto-STAGE hugin-devel, and mark it IGNORE because hugin is newer.

Approved by:	portmgr (implicit for bumping PORTREVISION on unstaged ports)
2014-08-15 20:37:31 +00:00

51 lines
1.2 KiB
Makefile

# Created by: nork@FreeBSD.org
# $FreeBSD$
PORTNAME= ilmbase
PORTVERSION= 2.2.0
CATEGORIES= graphics devel
MASTER_SITES= SAVANNAH/openexr/
DISTNAME= ilmbase-${PORTVERSION}
MAINTAINER= mandree@FreeBSD.org
COMMENT= ILM Base libraries a.k.a. Half, IlmThread, Imath, and Iex
LICENSE= BSD3CLAUSE
USES= cmake pkgconfig
USE_LDCONFIG= yes
PORTDOCS= AUTHORS ChangeLog README
OPTIONS_DEFINE= DOCS
OPTIONS_SUB= yes
THREAD_CONFIGURE_ENABLE= threading
MAJORVER= 2_2
VER= 12
PLIST_SUB= MAJORVER=${MAJORVER}
PLIST_SUB+= VER=${VER}
HALF_BIN= eLut toFloat
regression-test regression test check: build
@(cd ${WRKSRC}; ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} check)
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libHalf.so.${VER}
${RM} -f ${STAGEDIR}${PREFIX}/lib/*.la
.for l in libIex libIexMath libImath libIlmThread
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/${l}-${MAJORVER}.so.${VER}
${LN} -s ${l}-${MAJORVER}.so.${VER} ${STAGEDIR}${PREFIX}/lib/${l}.so
.endfor
.for e in ${HALF_BIN}
${INSTALL_PROGRAM} ${WRKSRC}/Half/${e} ${STAGEDIR}${PREFIX}/bin/${e}
.endfor
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>