[SM-Commit] GIT changes to master grimoire by Eric Sandall (41a8e90a7ce69cbd0a068ef8fd4621502519e63f)

Eric Sandall scm at sourcemage.org
Fri May 23 22:30:37 EDT 2008


GIT changes to master grimoire by Eric Sandall <sandalle at sourcemage.org>:

 science/calc/HISTORY   |    3 +++
 science/calc/PRE_BUILD |   10 ++++++++++
 2 files changed, 13 insertions(+)

New commits:
commit 41a8e90a7ce69cbd0a068ef8fd4621502519e63f
Author: Eric Sandall <sandalle at sourcemage.org>
Commit: Eric Sandall <sandalle at sourcemage.org>

    calc: Actually enable readline support if wanted

commit 185070415f403a55c125055a012c9156a694abd2
Author: Eric Sandall <sandalle at sourcemage.org>
Commit: Eric Sandall <sandalle at sourcemage.org>

    calc: Disable debug flag and use our custom CFLAGS and LDFLAGS

diff --git a/science/calc/HISTORY b/science/calc/HISTORY
index 9ec2e68..ea75ed1 100644
--- a/science/calc/HISTORY
+++ b/science/calc/HISTORY
@@ -1,5 +1,8 @@
 2008-05-23 Eric Sandall <sandalle at sourcemage.org>
 	* DETAILS: Updated to 2.12.3.3
+	* PRE_BUILD: Disable debug code and hardcoding compiler flags
+	  Pass our custom CFLAGS/LDFLAGS
+	  Actually enable readline support if wanted
 
 2007-11-15 Remko van der Vossen <wich at sourcemage.org>
 	* DETAILS: 2.12.2.2
diff --git a/science/calc/PRE_BUILD b/science/calc/PRE_BUILD
new file mode 100755
index 0000000..9d044a6
--- /dev/null
+++ b/science/calc/PRE_BUILD
@@ -0,0 +1,10 @@
+default_pre_build  &&
+sedit  's:^DEBUG:#&:'                   $SOURCE_DIRECTORY/Makefile  &&
+sedit  "s:EXTRA_CFLAGS=:&${CFLAGS}:"    $SOURCE_DIRECTORY/Makefile  &&
+sedit  "s:EXTRA_LDFLAGS=:&${LDFLAGS}:"  $SOURCE_DIRECTORY/Makefile  &&
+
+if  is_depends_enabled $SPELL readline;  then
+  sedit 's:^USE_READLINE=:&-DUSE_READLINE:'  $SOURCE_DIRECTORY/Makefile  &&
+  sedit 's:^READLINE_LIB=:&-lreadline:'      $SOURCE_DIRECTORY/Makefile  &&
+  sedit 's:^READLINE_EXTRAS=:&-lhistory -lncurses:'  $SOURCE_DIRECTORY/Makefile
+fi



More information about the SM-Commit mailing list