1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-28 05:29:48 +00:00

math/gecode: Fix build for the GIST option.

This commit is contained in:
Yuri Victorovich 2021-12-17 20:41:24 -08:00
parent e7c3f55f83
commit 57856f23e9
3 changed files with 32 additions and 0 deletions

View File

@ -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

View File

@ -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

View File

@ -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