Changeset View
Changeset View
Standalone View
Standalone View
math/sage/files/patch-build_pkgs_gfan_spkg-install
Property | Old Value | New Value |
---|---|---|
fbsd:nokeywords | null | yes \ No newline at end of property |
svn:eol-style | null | native \ No newline at end of property |
svn:mime-type | null | text/plain \ No newline at end of property |
--- build/pkgs/gfan/spkg-install.orig 2020-01-01 11:03:10 UTC | |||||
arrowd: There is `math/gfan` port in our tree. Installing it and running Sage's `configure` script… | |||||
thierryAuthorUnsubmitted Not Done Inline ActionsAFAIK for a system package to be picked up, a sage_require_xxx=no must be set for configure (unless patching Sage's build mechanism), and there is no sage_require_gfan in 9.0. Meanwhile, it has been added in their ticket #28985 (See https://trac.sagemath.org/ticket/28985 ) and should be available in 9.1. Many others are planned, and the full list is available at https://trac.sagemath.org/ticket/27330 . thierry: AFAIK for a system package to be picked up, a sage_require_xxx=no must be set for configure… | |||||
arrowdUnsubmitted Not Done Inline ActionsOh, right, I'm building it from git. Ok, let's keep this in mind and try to make a switch in 9.1 arrowd: Oh, right, I'm building it from git. Ok, let's keep this in mind and try to make a switch in 9.1 | |||||
+++ build/pkgs/gfan/spkg-install | |||||
@@ -4,6 +4,9 @@ export CC CXX CFLAGS CXXFLAGS LDFLAGS | |||||
cd src | |||||
+echo "Patching for FreeBSD..." | |||||
+/usr/bin/sed -i.bak 's,log2,gfan_log2,g' src/*.h src/*.cpp | |||||
+ | |||||
echo "Now building gfan..." | |||||
# We don't use the makefile to install gfan so we don't need to set PREFIX | |||||
sdh_make CPPFLAGS="-I$SAGE_LOCAL/include" |
There is math/gfan port in our tree. Installing it and running Sage's configure script makes it picked up:
I haven't tried building Sage with system gfan yet. Maybe dependending on this package will make this patch not needed.