aboutsummaryrefslogblamecommitdiff
path: root/graphics/luminance-qt5/Makefile
blob: 3ab27d9c33660d5de0f906c4a10aaab76723bd2f (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
                                               

                             
                       
                 







                                                                 
                                                       
                                        
                                          
                                             



                                               
                                        
                                                
                                                      
 

                                            
                                                                              

                                                                  
                                                                
 
                                                





                                                                 
                                        
 





                                                         
 



                                                                           
                                                                         


                                                                    
                                                                       

                                                        




                                                                          
                      
# Created by: Yinghong Liu <relaxbsd@gmail.com>

PORTNAME=	luminance-hdr
DISTVERSION=	2.6.1.1
PORTREVISION=	7
CATEGORIES=	graphics
MASTER_SITES=	SF/qtpfsgui/luminance/${DISTVERSION}

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

LICENSE=	GPLv2

BUILD_DEPENDS=	${LOCALBASE}/include/fftw3.h:math/fftw3
LIB_DEPENDS=	libImath.so:math/Imath \
		libtiff.so:graphics/tiff \
		libraw_r.so:graphics/libraw \
		libfftw3f.so:math/fftw3-float \
		libgsl.so:math/gsl \
		libexiv2.so:graphics/exiv2 \
		liblcms2.so:graphics/lcms2 \
		libpng.so:graphics/png \
		libOpenEXR.so:graphics/openexr \
		libboost_date_time.so:devel/boost-libs

CFLAGS+=	-I${LOCALBASE}/include/Imath

USES=		cmake desktop-file-utils eigen:3 jpeg pkgconfig qt:5 tar:bzip2
USE_QT=		concurrent core declarative gui location network \
		printsupport sql svg widgets xml \
		buildtools_build linguisttools_build qmake_build

OPTIONS_DEFINE=		CFITSIO DOCS HELPBROWSER
OPTIONS_DEFAULT=	CFITSIO HELPBROWSER

CFITSIO_LIB_DEPENDS=	libcfitsio.so:astro/cfitsio

HELPBROWSER_DESC=	Build help browser (requires QtWebEngine)
HELPBROWSER_USE=	QT=webchannel,webengine
HELPBROWSER_CMAKE_BOOL=	WITH_HELPBROWSER

.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MHELPBROWSER}
DEPRECATED=	Uses EoL Python 2.7 via www/qt5-webengine
EXPIRATION_DATE=	2021-06-23
.endif

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/doc,${DOCSDIR_REL},' \
			${WRKSRC}/CMakeLists.txt
# Point to the right location for program where to look for GPL text
	@${REINPLACE_CMD} -e 's,LICENSE,${LICENSE}, ; \
		s,share/luminance-hdr/doc,share/licenses/${PKGNAME},' \
			${WRKSRC}/src/UI/UMessageBox.cpp

post-patch-HELPBROWSER-off:
	@${REINPLACE_CMD} -e 's,name="documentationAction">,& \
		<property name="enabled"><bool>false</bool></property>,' \
			${WRKSRC}/src/MainWindow/MainWindow.ui

.include <bsd.port.mk>