1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00
freebsd-ports/graphics/luminance/Makefile
Brendan Fabeny 4fd0a4b1c1 Update math/gsl to 1.15, and adjust PORTREVISION
and LIB_DEPENDS of dependent ports
2011-05-09 16:42:27 +00:00

62 lines
1.8 KiB
Makefile

# New ports collection makefile for: qtpfsgui
# Date created: 28 Jul 2007
# Whom: Yinghong.Liu <relaxbsd@gmail.com>
#
# $FreeBSD$
#
PORTNAME= luminance
DISTVERSION= 2.0.1-1
PORTREVISION= 2
CATEGORIES= graphics
MASTER_SITES= SF/qtpfsgui/luminance/${DISTVERSION:S/-1//}/
DISTNAME= ${PORTNAME}-v${DISTVERSION}
MAINTAINER= goffredo@gmail.com
COMMENT= A graphical user interface that provides a workflow for HDR imaging
BUILD_DEPENDS= ${LOCALBASE}/include/fftw3.h:${PORTSDIR}/math/fftw3
LIB_DEPENDS= exiv2.10:${PORTSDIR}/graphics/exiv2 \
jpeg.11:${PORTSDIR}/graphics/jpeg \
IlmImf.6:${PORTSDIR}/graphics/OpenEXR \
tiff.4:${PORTSDIR}/graphics/tiff \
fftw3f.5:${PORTSDIR}/math/fftw3-float \
gsl.16:${PORTSDIR}/math/gsl
USE_QT_VER= 4
QT_COMPONENTS= gui xml webkit imageformats_run linguist_build \
moc_build qmake_build rcc_build uic_build
QMAKE_ARGS= PREFIX=${PREFIX} DOCDIR=${DOCSDIR} I18NDIR=${DATADIR}/i18n
MAKE_JOBS_SAFE= yes
INSTALLS_ICONS= yes
LRELEASE= ${QT_PREFIX}/bin/lrelease-qt4
.include <bsd.port.pre.mk>
.if ${OSVERSION} >= 900000
BROKEN= does not compile on 9.X
.endif
post-patch:
cd ${WRKSRC}/src && ${REINPLACE_CMD} \
-e 's|/usr/share/luminance|${DOCSDIR}|g' \
-e 's|/usr/local/share/luminance|${DATADIR}|g' \
MainWindow/MainWindow.cpp \
Preferences/PreferencesDialog.cpp \
TonemappingWindow/TonemappingWindow.cpp \
TransplantExif/TransplantExifDialog.cpp
${REINPLACE_CMD} -e 's|%%HELPDIR%%|${DOCSDIR}|g' \
${WRKSRC}/src/HelpBrowser/LuminancePaths.cpp
.if defined(NOPORTDOCS)
${REINPLACE_CMD} -e '/INSTALL/s,help,,' \
-e '/INSTALL/s,docs,,' \
${WRKSRC}/project.pro
.endif
do-configure:
@${LRELEASE} ${WRKSRC}/project.pro
@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${QMAKE} ${QMAKE_ARGS} ${QMAKEFLAGS}
.include <bsd.port.post.mk>