1 # Created by: Yinghong Liu <relaxbsd@gmail.com>
4 PORTNAME= luminance-hdr
8 MASTER_SITES= SF/qtpfsgui/luminance/${DISTVERSION}
11 MAINTAINER= h2+fbsdports@fsfe.org
12 COMMENT= Complete open source solution for HDR photography
16 BUILD_DEPENDS= ${LOCALBASE}/include/fftw3.h:math/fftw3
17 LIB_DEPENDS= libfftw3f.so:math/fftw3-float \
18 libexiv2.so:graphics/exiv2 \
19 libIlmImf.so:graphics/OpenEXR \
20 libtiff.so:graphics/tiff \
22 libraw_r.so:graphics/libraw \
23 libboost_system.so:devel/boost-libs
25 USES= cmake:outsource jpeg pkgconfig tar:bzip2
26 USE_QT5= concurrent declarative gui printsupport sql webkit xml \
27 buildtools_build linguist_build qmake_build \
33 CONFLICTS_INSTALL= luminance-hdr-[0-9]*
37 .include <bsd.port.pre.mk>
39 .if ${OSVERSION} < 1000024
44 # Do not install yet another copy of GPL (we use license framework instead)
45 # and fix installation path for docs (but not for internal help files)
46 @${REINPLACE_CMD} -e '/LICENSE/d ; \
47 /#info files/s,share/luminance-hdr,${DOCSDIR_REL},' \
48 ${WRKSRC}/CMakeLists.txt
49 # Point to the right location for program where to look for GPL text
50 @${REINPLACE_CMD} -e 's,LICENSE,${LICENSE}, ; \
51 s,share/doc/luminance-hdr,share/licenses/${PKGNAME},' \
52 ${WRKSRC}/src/UI/UMessageBox.cpp
54 # Allow builds from release distfile to display correct git hash in "About"
56 @${REINPLACE_CMD} -e \
57 's,@GIT_SHA1@,be5409f2ed028b0a509d3f4cd44a970a09d2ef6c,' \
58 ${WRKSRC}/src/Common/GitSHA1.cpp.in
63 .include <bsd.port.post.mk>