Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Jun 2022 04:53:52 GMT
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-branches@FreeBSD.org
Subject:   git: bb202c55afc9 - 2022Q2 - graphics/engauge-digitizer: Fix build
Message-ID:  <202206230453.25N4rqVt024813@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch 2022Q2 has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=bb202c55afc9c2dc00e731623f879349468ce96f

commit bb202c55afc9c2dc00e731623f879349468ce96f
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2022-06-22 21:11:37 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-06-23 04:53:50 +0000

    graphics/engauge-digitizer: Fix build
    
    openjpeg.h wasn't found.
    
    Reported by:    fallout
    
    (cherry picked from commit 77dff5bd868790fb078f8d2a38a5ad783daadd8c)
---
 graphics/engauge-digitizer/Makefile | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/graphics/engauge-digitizer/Makefile b/graphics/engauge-digitizer/Makefile
index f91120b9c311..43cc75d640b4 100644
--- a/graphics/engauge-digitizer/Makefile
+++ b/graphics/engauge-digitizer/Makefile
@@ -15,7 +15,7 @@ LIB_DEPENDS=	libfftw3.so:math/fftw3 \
 		libopenjp2.so:graphics/openjpeg \
 		libpoppler-qt5.so:graphics/poppler-qt5
 
-USES=		compiler:c++11-lang desktop-file-utils gl qmake qt:5
+USES=		compiler:c++11-lang desktop-file-utils gl pkgconfig qmake qt:5 # pkgconfig is for https://github.com/markummitchell/engauge-digitizer/issues/423
 USE_GITHUB=	yes
 GH_ACCOUNT=	markummitchell
 USE_QT=		core gui printsupport sql xml widgets buildtools_build
@@ -24,6 +24,8 @@ CONFIGURE_ENV=	OPENJPEG_INCLUDE=${PREFIX}/include/openjpeg-2.4 OPENJPEG_LIB=${PR
 		POPPLER_INCLUDE=${PREFIX}/include/poppler/qt5 POPPLER_LIB=${PREFIX}/lib
 QMAKE_ARGS=	"CONFIG+=jpeg2000 pdf"
 
+CXXFLAGS+=	`pkg-config --cflags libopenjp2` # workaround for https://github.com/markummitchell/engauge-digitizer/issues/423
+
 OPTIONS_DEFINE=	NLS DOCS
 OPTIONS_SUB=	yes
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202206230453.25N4rqVt024813>