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 |
|
---|
3 | package=4store
|
---|
4 | version=-v1.1.5
|
---|
5 |
|
---|
6 | progname=$0
|
---|
7 |
|
---|
8 | source ../cascade-make/lib/cascade-lib.bash GEXT_AFREPO ../.. $*
|
---|
9 |
|
---|
10 | prefix=$GEXT_AFREPO_INSTALLED
|
---|
11 |
|
---|
12 |
|
---|
13 | opt_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 |
|
---|
20 | if [ "x$1" = "xtarclean" ] ; then
|
---|
21 | /bin/rm -f .PATCH-DONE.$package
|
---|
22 | elif [ ! -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 |
|
---|
34 | fi
|
---|
35 |
|
---|
36 |
|
---|
37 | opt_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 |
|
---|
42 | opt_run_make $compile $package $version
|
---|
43 | opt_run_make $install $package $version "install" DESTDIR=$prefix
|
---|
44 | opt_run_make $clean $package $version "clean"
|
---|
45 | opt_run_make $distclean $package $version "distclean"
|
---|
46 |
|
---|
47 | opt_run_tarclean $tarclean $package $version
|
---|
48 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.