freebsd-ports/graphics/luminance-qt5/Makefile
Matthias Andree d1cfeab07e Update ilmbase and openexr to 2.3.0, rename OpenEXR to openexr.
Release notes: <https://github.com/openexr/openexr/releases/tag/v2.3.0>

Adjust LIB_DEPENDS of all ports that require ilmbase or openexr to chase
the new lower-case spelling of the name, and to omit the version from the
library name to ease future maintenance.

Bump PORTREVISION of all ports that depend on ilmbase or openexr directly,
so that they all get rebuilt on upgrades.

Add patches to graphics/ampasCTL to keep it alive, with (a) ilmbase now
that its Iex::BaseExc class is no longer derived from std::string,
details were given upstream through https://github.com/ampas/CTL/issues/71
and (b) to unwind semicolon/;-lists in cmake that stem from openexr/
ilmbase pkg-config variables.
(Note ampasCTL is unmaintained as FreeBSD port, and upstream,
and I cannot run-time test it.)

Poudriere build tests on 11.2-RELEASE-p1 amd64 of ALL ports depending
directly or indirectly on ilmbase and/or openexr have passed without
regressions.  Thus invoking due diligence, I believe I have done the
equivalent of an -exp run, and do not require approval for the dependency
chases to third-party ports.
2018-09-22 10:15:22 +00:00

62 lines
1.9 KiB
Makefile

# Created by: Yinghong Liu <relaxbsd@gmail.com>
# $FreeBSD$
PORTNAME= luminance-hdr
DISTVERSION= 2.4.0
PORTREVISION= 25
CATEGORIES= graphics
MASTER_SITES= SF/qtpfsgui/luminance/${DISTVERSION}
PKGNAMESUFFIX= -qt5
MAINTAINER= h2+fbsdports@fsfe.org
COMMENT= Complete open source solution for HDR photography
LICENSE= GPLv2
BUILD_DEPENDS= ${LOCALBASE}/include/fftw3.h:math/fftw3
LIB_DEPENDS= libfftw3f.so:math/fftw3-float \
libexiv2.so:graphics/exiv2 \
libIlmImf.so:graphics/openexr \
libtiff.so:graphics/tiff \
libgsl.so:math/gsl \
libraw_r.so:graphics/libraw \
libboost_system.so:devel/boost-libs
USES= cmake:outsource jpeg pkgconfig qt:5 tar:bzip2
USE_QT= concurrent gui printsupport sql webkit xml \
buildtools_build linguist_build qmake_build \
imageformats_run
INSTALLS_ICONS= yes
MAKE_JOBS_UNSAFE=yes
CONFLICTS_INSTALL= luminance-hdr-[0-9]*
OPTIONS_DEFINE= DOCS
post-patch:
# Remove the non-required dependency on Qt5 Declarative. This can be dropped
# once www/qt5-webengine lands in the portstree and this port can be updated to
# a version >= 2.5.0.
@${REINPLACE_CMD} -e '/Qt5Declarative/d' \
${WRKSRC}/CMakeLists.txt
# Do not install yet another copy of GPL (we use license framework instead)
# and fix installation path for docs (but not for internal help files)
@${REINPLACE_CMD} -e '/LICENSE/d ; \
/#info files/s,share/luminance-hdr,${DOCSDIR_REL},' \
${WRKSRC}/CMakeLists.txt
# Point to the right location for program where to look for GPL text
@${REINPLACE_CMD} -e 's,LICENSE,${LICENSE}, ; \
s,share/doc/luminance-hdr,share/licenses/${PKGNAME},' \
${WRKSRC}/src/UI/UMessageBox.cpp
# Allow builds from release distfile to display correct git hash in "About"
# dialog window
@${REINPLACE_CMD} -e \
's,@GIT_SHA1@,be5409f2ed028b0a509d3f4cd44a970a09d2ef6c,' \
${WRKSRC}/src/Common/GitSHA1.cpp.in
pre-install:
QT_BINDIR_REL=bin
.include <bsd.port.mk>