forked from GitHub/gf-core
Install C runtime in two places. Use cabal v1-copy.
This commit is contained in:
@@ -29,8 +29,8 @@ set -x # print commands before executing them
|
|||||||
pushd src/runtime/c
|
pushd src/runtime/c
|
||||||
bash setup.sh configure --prefix="$prefix"
|
bash setup.sh configure --prefix="$prefix"
|
||||||
bash setup.sh build
|
bash setup.sh build
|
||||||
|
bash setup.sh install prefix="$prefix"
|
||||||
bash setup.sh install prefix="$destdir$prefix"
|
bash setup.sh install prefix="$destdir$prefix"
|
||||||
libtool --finish "$prefix/lib"
|
|
||||||
popd
|
popd
|
||||||
|
|
||||||
## Build the python binding to the C run-time system
|
## Build the python binding to the C run-time system
|
||||||
@@ -71,10 +71,10 @@ export DYLD_LIBRARY_PATH="$extralib" LD_LIBRARY_PATH="$extralib"
|
|||||||
|
|
||||||
## Build GF, with C run-time support enabled
|
## Build GF, with C run-time support enabled
|
||||||
cabal install -w "$ghc" --only-dependencies -fserver -fc-runtime $extra
|
cabal install -w "$ghc" --only-dependencies -fserver -fc-runtime $extra
|
||||||
cabal configure -w "$ghc" --prefix="$destdir$prefix" -fserver -fc-runtime $extra
|
cabal configure -w "$ghc" --prefix="$prefix" -fserver -fc-runtime $extra
|
||||||
cabal build
|
cabal build
|
||||||
# Building the example grammars will fail, because the RGL is missing
|
# Building the example grammars will fail, because the RGL is missing
|
||||||
cabal copy --destdir="$destdir" # create www directory
|
cabal v1-copy --destdir="$destdir" # create www directory
|
||||||
|
|
||||||
## Build the RGL and copy it to $destdir
|
## Build the RGL and copy it to $destdir
|
||||||
PATH=$PWD/dist/build/gf:$PATH
|
PATH=$PWD/dist/build/gf:$PATH
|
||||||
@@ -89,7 +89,7 @@ popd
|
|||||||
cabal build
|
cabal build
|
||||||
|
|
||||||
## Copy GF to $destdir
|
## Copy GF to $destdir
|
||||||
cabal copy --destdir="$destdir"
|
cabal v1-copy --destdir="$destdir"
|
||||||
libdir=$(dirname $(find "$destdir" -name PGF.hi))
|
libdir=$(dirname $(find "$destdir" -name PGF.hi))
|
||||||
cabal register --gen-pkg-config=$libdir/gf-$ver.conf
|
cabal register --gen-pkg-config=$libdir/gf-$ver.conf
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user