source: gs2-extensions/afrepo/trunk/src/packages/CASCADE-MAKE/4STORE.sh@ 27746

Last change on this file since 27746 was 27746, checked in by davidb, 11 years ago

Move to newer version of source code for 4store

  • Property svn:executable set to *
File size: 1.6 KB
RevLine 
[27269]1#!/bin/bash
2
3package=4store
[27746]4#version=-v1.1.5
5version=-git-june2013
[27269]6
7progname=$0
8
9source ../cascade-make/lib/cascade-lib.bash GEXT_AFREPO ../.. $*
10
11prefix=$GEXT_AFREPO_INSTALLED
12
[27271]13
[27269]14opt_run_untar $force_untar $auto_untar $package $version
[27271]15
16# Doing "-lreadline -lncurses" OK
17# But the otherway around "-lncurses -lreadline" (on CentOS) leads to linking errors,
18# requiring '-ltermcap' to be explicitly listed
19# => Only one Makefile.in has it the wrong way around => patch that one
20
21if [ "x$1" = "xtarclean" ] ; then
22 /bin/rm -f .PATCH-DONE.$package
23elif [ ! -f .PATCH-DONE.$package ] ; then
24
25 echo "*******"
26 echo "* Applying $package patch"
27 echo "*******"
28
29 cd "$package$version" && patch -p0 < ../patches/$package.patch && cd ..
30
31 if [ $? = 0 ] ; then
32 echo "Patch applied" > .PATCH-DONE.$package
33 fi
34
35fi
36
37
[27288]38#opt_run_configure $force_config $auto_config $package $version $prefix \
[27269]39
[27609]40ac_cv_func_malloc_0_nonnull=yes \
[27288]41RAPTOR_CFLAGS=-I$GEXT_AFREPO_INSTALLED/include/raptor2 RAPTOR_LIBS="$GEXT_AFREPO_INSTALLED/lib/libraptor2.so" \
42RASQAL_CFLAGS=-I$GEXT_AFREPO_INSTALLED/include/rasqal RASQAL_LIBS="$GEXT_AFREPO_INSTALLED/lib/librasqal.so" \
43 opt_run_configure $force_config $auto_config $package $version $prefix \
44 --with-storage-path=$prefix/var/lib/4store --with-config-path=$prefix/etc/4store.conf
45
46
[27269]47opt_run_make $compile $package $version
[27288]48#opt_run_make $install $package $version "install" DESTDIR=$prefix
49opt_run_make $install $package $version "install"
[27269]50opt_run_make $clean $package $version "clean"
51opt_run_make $distclean $package $version "distclean"
52
53opt_run_tarclean $tarclean $package $version
54
Note: See TracBrowser for help on using the repository browser.