[27269] | 1 | #!/bin/bash
|
---|
| 2 |
|
---|
| 3 | package=4store
|
---|
[27746] | 4 | #version=-v1.1.5
|
---|
| 5 | version=-git-june2013
|
---|
[27269] | 6 |
|
---|
| 7 | progname=$0
|
---|
| 8 |
|
---|
| 9 | source ../cascade-make/lib/cascade-lib.bash GEXT_AFREPO ../.. $*
|
---|
| 10 |
|
---|
| 11 | prefix=$GEXT_AFREPO_INSTALLED
|
---|
| 12 |
|
---|
[27271] | 13 |
|
---|
[27269] | 14 | opt_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 |
|
---|
| 21 | if [ "x$1" = "xtarclean" ] ; then
|
---|
| 22 | /bin/rm -f .PATCH-DONE.$package
|
---|
| 23 | elif [ ! -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 |
|
---|
| 35 | fi
|
---|
| 36 |
|
---|
| 37 |
|
---|
[27288] | 38 | #opt_run_configure $force_config $auto_config $package $version $prefix \
|
---|
[27269] | 39 |
|
---|
[27609] | 40 | ac_cv_func_malloc_0_nonnull=yes \
|
---|
[27288] | 41 | RAPTOR_CFLAGS=-I$GEXT_AFREPO_INSTALLED/include/raptor2 RAPTOR_LIBS="$GEXT_AFREPO_INSTALLED/lib/libraptor2.so" \
|
---|
| 42 | RASQAL_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] | 47 | opt_run_make $compile $package $version
|
---|
[27288] | 48 | #opt_run_make $install $package $version "install" DESTDIR=$prefix
|
---|
| 49 | opt_run_make $install $package $version "install"
|
---|
[27269] | 50 | opt_run_make $clean $package $version "clean"
|
---|
| 51 | opt_run_make $distclean $package $version "distclean"
|
---|
| 52 |
|
---|
| 53 | opt_run_tarclean $tarclean $package $version
|
---|
| 54 |
|
---|