Update graphics/cimg to version 1.7.5,3
[dports.git] / graphics / luminance-qt5 / Makefile
1 # Created by: Yinghong Liu <relaxbsd@gmail.com>
2 # $FreeBSD$
3
4 PORTNAME=       luminance-hdr
5 DISTVERSION=    2.4.0
6 PORTREVISION=   8
7 CATEGORIES=     graphics
8 MASTER_SITES=   SF/qtpfsgui/luminance/${DISTVERSION}
9 PKGNAMESUFFIX=  -qt5
10
11 MAINTAINER=     h2+fbsdports@fsfe.org
12 COMMENT=        Complete open source solution for HDR photography
13
14 LICENSE=        GPLv2
15
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 \
21                 libgsl.so:math/gsl \
22                 libraw_r.so:graphics/libraw \
23                 libboost_system.so:devel/boost-libs
24
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 \
28                 imageformats_run
29 INSTALLS_ICONS= yes
30
31 MAKE_JOBS_UNSAFE=yes
32
33 CONFLICTS_INSTALL=      luminance-hdr-[0-9]*
34
35 OPTIONS_DEFINE= DOCS
36
37 .include <bsd.port.pre.mk>
38
39 .if ${OSVERSION} < 1000024
40 USE_GCC=        yes
41 .endif
42
43 post-patch:
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
53
54 # Allow builds from release distfile to display correct git hash in "About"
55 # dialog window
56         @${REINPLACE_CMD} -e \
57                 's,@GIT_SHA1@,be5409f2ed028b0a509d3f4cd44a970a09d2ef6c,' \
58                         ${WRKSRC}/src/Common/GitSHA1.cpp.in
59
60 pre-install:
61         QT_BINDIR_REL=bin
62
63 .include <bsd.port.post.mk>