[27269] | 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 |
|
---|
[27271] | 12 |
|
---|
[27269] | 13 | opt_run_untar $force_untar $auto_untar $package $version
|
---|
[27271] | 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 |
|
---|
[27288] | 37 | #opt_run_configure $force_config $auto_config $package $version $prefix \
|
---|
[27269] | 38 |
|
---|
[27271] | 39 |
|
---|
[27288] | 40 | RAPTOR_CFLAGS=-I$GEXT_AFREPO_INSTALLED/include/raptor2 RAPTOR_LIBS="$GEXT_AFREPO_INSTALLED/lib/libraptor2.so" \
|
---|
| 41 | RASQAL_CFLAGS=-I$GEXT_AFREPO_INSTALLED/include/rasqal RASQAL_LIBS="$GEXT_AFREPO_INSTALLED/lib/librasqal.so" \
|
---|
| 42 | opt_run_configure $force_config $auto_config $package $version $prefix \
|
---|
| 43 | --with-storage-path=$prefix/var/lib/4store --with-config-path=$prefix/etc/4store.conf
|
---|
| 44 |
|
---|
| 45 |
|
---|
[27269] | 46 | opt_run_make $compile $package $version
|
---|
[27288] | 47 | #opt_run_make $install $package $version "install" DESTDIR=$prefix
|
---|
| 48 | opt_run_make $install $package $version "install"
|
---|
[27269] | 49 | opt_run_make $clean $package $version "clean"
|
---|
| 50 | opt_run_make $distclean $package $version "distclean"
|
---|
| 51 |
|
---|
| 52 | opt_run_tarclean $tarclean $package $version
|
---|
| 53 |
|
---|