2011-09-02 10:58:57 +02:00
|
|
|
# New ports collection makefile for: Luminance HDR (nee Qtpfsgui)
|
|
|
|
# Date created: 28 Jul 2007
|
|
|
|
# Whom: Yinghong Liu <relaxbsd@gmail.com>
|
2007-09-09 14:15:34 +02:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2012-09-22 17:17:45 +02:00
|
|
|
PORTNAME= luminance-hdr
|
2012-09-21 17:19:13 +02:00
|
|
|
DISTVERSION= 2.3.0
|
2007-09-09 14:15:34 +02:00
|
|
|
CATEGORIES= graphics
|
2012-09-21 17:19:13 +02:00
|
|
|
MASTER_SITES= SF/qtpfsgui/${PORTNAME}/${DISTVERSION}
|
2007-09-09 14:15:34 +02:00
|
|
|
|
2012-09-21 17:19:13 +02:00
|
|
|
MAINTAINER= h2+fbsdports@fsfe.org
|
|
|
|
COMMENT= Complete open source solution for HDR photography
|
2011-09-02 10:58:57 +02:00
|
|
|
|
|
|
|
LICENSE= GPLv2
|
2007-09-09 14:15:34 +02:00
|
|
|
|
2008-07-04 20:51:09 +02:00
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/include/fftw3.h:${PORTSDIR}/math/fftw3
|
2012-09-21 17:19:13 +02:00
|
|
|
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
|
2008-07-04 20:51:09 +02:00
|
|
|
INSTALLS_ICONS= yes
|
2012-09-21 17:19:13 +02:00
|
|
|
MAKE_JOBS_SAFE= yes
|
2007-09-09 14:15:34 +02:00
|
|
|
|
2008-03-17 18:55:18 +01:00
|
|
|
post-patch:
|
2012-09-21 17:19:13 +02:00
|
|
|
# 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
|
2012-09-22 17:17:45 +02:00
|
|
|
# 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
|
|
|
|
|
2012-09-21 17:19:13 +02:00
|
|
|
# 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>
|