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

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

Patching for 4store added to deal with ncurses and readline lib linking problem on CentOS

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