[Lunar-commits] <moonbase-other> swi-prolog: Adjusting the BUILD to fix lunar fix trying to fix its

stumbles stumbles at lunar-linux.org
Mon Jun 10 17:27:13 CEST 2013


commit af0bdb6371e9ddd2f6e021eba91cefcde99d562f
Author: stumbles <stumbles at lunar-linux.org>
Date: Mon, 10 Jun 2013 08:25:47 -0700
URL: https://github.com/lunar-linux/moonbase-other/commit/af0bdb6371e9ddd2f6e021eba91cefcde99d562f

swi-prolog: Adjusting the BUILD to fix lunar fix trying to fix its

inability to find libjava.so, libjsig.so and libverify.so.
---
  compilers/swi-prolog/BUILD | +22/-0    
  1 file changed, 22 insertions(+)

--- /dev/null
+++ b/compilers/swi-prolog/BUILD
@@ -0,0 +1,22 @@
+  if [[ `arch` == "x86_64" ]] ; then
+    JAVA_ARCH=amd64
+   else
+    JAVA_ARCH=i586
+  fi &&
+
+  export LD_LIBRARY_PATH="/usr/lib/swipl-`lvu version swi-prolog`" &&
+  LDFLAGS+=" -Wl,-rpath,$JAVA_HOME/jre/lib/$JAVA_ARCH,-rpath,$JAVA_HOME/jre/lib/$JAVA_ARCH/server" &&
+
+  # looks like they use a different uudecode... don't use ours
+  sedit "s:^if uudecode.*$:if false; then:" packages/jpl/configure &&
+
+  OPTS+=" --with-world --enable-shared" &&
+
+  # no idea why they catch those flags here - this breaks
+  # a lot.. let's just remove the catch statement
+  sedit "/--without-/ { N;N;N;N;d }" configure &&
+
+  message "${MESSAGE_COLOR}The following 'unrecognized...' warning is alright${DEFAULT_COLOR}"
+  # The configure in src/ doesn't know any --without-XYZ flags,
+  # but we need to pass them on to packages/configure
+  default_build 




More information about the Lunar-commits mailing list