From cecbb8bb6f7c6ef291f40242e8f2446a4628d6b7 Mon Sep 17 00:00:00 2001 From: Alexey Dokuchaev Date: Fri, 2 Sep 2011 08:58:57 +0000 Subject: In sight of anticipated update, cleanup things slightly: - Shorten COMMENT - Add LICENCE (GPLv2) - Canonicalize Makefile header - Unbreak on FreeBSD versions older than 802501 - Mute and optimize sed(1) commands, fix line wrapping Approved by: maintainer (timeout since 14 May) --- graphics/luminance/Makefile | 30 ++++++++++++++++-------------- 1 file changed, 16 insertions(+), 14 deletions(-) (limited to 'graphics/luminance') diff --git a/graphics/luminance/Makefile b/graphics/luminance/Makefile index 395f48ec3fef..4883c75f6205 100644 --- a/graphics/luminance/Makefile +++ b/graphics/luminance/Makefile @@ -1,6 +1,6 @@ -# New ports collection makefile for: qtpfsgui -# Date created: 28 Jul 2007 -# Whom: Yinghong.Liu +# New ports collection makefile for: Luminance HDR (nee Qtpfsgui) +# Date created: 28 Jul 2007 +# Whom: Yinghong Liu # # $FreeBSD$ # @@ -13,7 +13,9 @@ 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 +COMMENT= An open source workflow for HDR imaging + +LICENSE= GPLv2 BUILD_DEPENDS= ${LOCALBASE}/include/fftw3.h:${PORTSDIR}/math/fftw3 LIB_DEPENDS= exiv2.10:${PORTSDIR}/graphics/exiv2 \ @@ -34,28 +36,28 @@ LRELEASE= ${QT_PREFIX}/bin/lrelease-qt4 .include -.if ${OSVERSION} >= 900000 -BROKEN= does not compile on 9.X -.endif - post-patch: - cd ${WRKSRC}/src && ${REINPLACE_CMD} \ +# FreeBSD has log2() since recently, remove local #define's which conflict +# with prototypes in /usr/include/math.h (when applicable) +.if ${OSVERSION} > 802501 + @${REINPLACE_CMD} -e '/log2/d' ${WRKSRC}/src/arch/freebsd/math.h +.endif + @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' \ + @${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 + @${REINPLACE_CMD} -E '/INSTALLS/s,help|docs,,g' ${WRKSRC}/project.pro .endif do-configure: @${LRELEASE} ${WRKSRC}/project.pro - @cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${QMAKE} ${QMAKE_ARGS} ${QMAKEFLAGS} + @cd ${WRKSRC} && \ + ${SETENV} ${MAKE_ENV} ${QMAKE} ${QMAKE_ARGS} ${QMAKEFLAGS} .include -- cgit v1.2.3