Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 18 Dec 2021 04:42:29 GMT
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 57856f23e9fc - main - math/gecode: Fix build for the GIST option.
Message-ID:  <202112180442.1BI4gTT6051803@gitrepo.freebsd.org>

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

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

commit 57856f23e9fc79801a2115f0026e12f9c9fa286b
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2021-12-18 04:41:24 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2021-12-18 04:42:27 +0000

    math/gecode: Fix build for the GIST option.
---
 math/gecode/Makefile                |  1 +
 math/gecode/files/patch-Makefile.in | 11 +++++++++++
 math/gecode/files/patch-configure   | 20 ++++++++++++++++++++
 3 files changed, 32 insertions(+)

diff --git a/math/gecode/Makefile b/math/gecode/Makefile
index 7ebbcd10dabd..419c2c92831b 100644
--- a/math/gecode/Makefile
+++ b/math/gecode/Makefile
@@ -49,6 +49,7 @@ GIST_CONFIGURE_ENABLE=		gist qt
 GIST_USES=			gl qt:5
 GIST_USE=			gl=gl qt=core,gui,printsupport,widgets,qmake_build,buildtools_build
 GIST_IMPLIES=			SHARED # because Qt must be built in a special way: error: "You must build your code with position independent code if Qt was built with -reduce-relocations"
+GIST_MAKE_ARGS=			FREEBSD_LDFLAGS=-L${LOCALBASE}/lib
 
 PEAKHEAP_DESC=			Peak heap size tracking
 PEAKHEAP_CONFIGURE_ENABLE=	peakheap
diff --git a/math/gecode/files/patch-Makefile.in b/math/gecode/files/patch-Makefile.in
new file mode 100644
index 000000000000..683ca3df1eaa
--- /dev/null
+++ b/math/gecode/files/patch-Makefile.in
@@ -0,0 +1,11 @@
+--- Makefile.in.orig	2021-12-18 04:22:38 UTC
++++ Makefile.in
+@@ -77,7 +77,7 @@ export QT_CPPFLAGS = @QTDEFINES@ @QTINCLUDES@
+ export LINKQT = @QTLIBS@
+ export MPFR_CPPFLAGS = @GMP_CPPFLAGS@ @MPFR_CPPFLAGS@
+ ifeq "@enable_mpfr@" "yes"
+-export LINKMPFR = @MPFR_LIB_PATH@ @GMP_LIB_PATH@ @MPFR_LINK@ @GMP_LINK@
++export LINKMPFR = $(FREEBSD_LDFLAGS) @MPFR_LIB_PATH@ @GMP_LIB_PATH@ @MPFR_LINK@ @GMP_LINK@
+ else
+ export LINKMPFR =
+ endif
diff --git a/math/gecode/files/patch-configure b/math/gecode/files/patch-configure
new file mode 100644
index 000000000000..c494bdabbf39
--- /dev/null
+++ b/math/gecode/files/patch-configure
@@ -0,0 +1,20 @@
+--- configure.orig	2021-05-20 06:12:58 UTC
++++ configure
+@@ -12552,7 +12552,7 @@ if test "${enable_qt+set}" = set; then :
+   enableval=$enable_qt;
+ fi
+ 
+-  for ac_prog in qmake-qt4 qmake
++  for ac_prog in qmake-qt5 qmake
+ do
+   # Extract the first word of "$ac_prog", so it can be a program name with args.
+ set dummy $ac_prog; ac_word=$2
+@@ -12594,7 +12594,7 @@ fi
+   test -n "$QMAKE" && break
+ done
+ 
+-  for ac_prog in moc-qt4 moc
++  for ac_prog in moc-qt5 moc
+ do
+   # Extract the first word of "$ac_prog", so it can be a program name with args.
+ set dummy $ac_prog; ac_word=$2



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