diff options
author | danfe <danfe@FreeBSD.org> | 2011-09-02 16:58:57 +0800 |
---|---|---|
committer | danfe <danfe@FreeBSD.org> | 2011-09-02 16:58:57 +0800 |
commit | d36ba72a821107eac49c3a78cc11c2ca47601008 (patch) | |
tree | 1a3289e9ebadc66bc548f24d54eae81151597317 /graphics/luminance | |
parent | 2cb194493db71832e7620a53e31abdc1198edb65 (diff) | |
download | freebsd-ports-gnome-d36ba72a821107eac49c3a78cc11c2ca47601008.tar.gz freebsd-ports-gnome-d36ba72a821107eac49c3a78cc11c2ca47601008.tar.zst freebsd-ports-gnome-d36ba72a821107eac49c3a78cc11c2ca47601008.zip |
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)
Diffstat (limited to 'graphics/luminance')
-rw-r--r-- | graphics/luminance/Makefile | 30 |
1 files changed, 16 insertions, 14 deletions
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 <relaxbsd@gmail.com> +# New ports collection makefile for: Luminance HDR (nee Qtpfsgui) +# Date created: 28 Jul 2007 +# Whom: Yinghong Liu <relaxbsd@gmail.com> # # $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 <bsd.port.pre.mk> -.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 <bsd.port.post.mk> |