aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/luminance/Makefile
blob: 0c7ba05b35bdfaa52452ef9739cf2eff6ea13daf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# New ports collection makefile for:    Luminance HDR (nee Qtpfsgui)
# Date created:             28 Jul 2007
# Whom:                 Yinghong Liu <relaxbsd@gmail.com>
#
# $FreeBSD$
#

PORTNAME=   luminance
DISTVERSION=    2.3.0
CATEGORIES= graphics
MASTER_SITES=   SF/qtpfsgui/${PORTNAME}/${DISTVERSION}
DISTNAME=   ${PORTNAME}-hdr-${DISTVERSION}

MAINTAINER= h2+fbsdports@fsfe.org
COMMENT=    Complete open source solution for HDR photography

LICENSE=    GPLv2

BUILD_DEPENDS=  ${LOCALBASE}/include/fftw3.h:${PORTSDIR}/math/fftw3
LIB_DEPENDS=    fftw3f:${PORTSDIR}/math/fftw3-float \
        exiv2:${PORTSDIR}/graphics/exiv2 \
        jpeg:${PORTSDIR}/graphics/jpeg \
        IlmImf:${PORTSDIR}/graphics/OpenEXR \
        tiff:${PORTSDIR}/graphics/tiff \
        gsl:${PORTSDIR}/math/gsl \
        raw_r:${PORTSDIR}/graphics/libraw

USE_BZIP2=  yes
USE_CMAKE=  yes
USE_QT4=    gui sql webkit xml linguist_build moc_build qmake_build \
        rcc_build uic_build imageformats_run
INSTALLS_ICONS= yes
MAKE_JOBS_SAFE= yes

DATADIR=    ${PREFIX}/share/${PORTNAME}-hdr
DOCSDIR=    ${PREFIX}/share/doc/${PORTNAME}-hdr

post-patch:
# 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
# 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

.include <bsd.port.mk>