wok-6.x view pgrouting/receipt @ rev 21132
link tazweb with libjpeg-9c
author | Hans-G?nter Theisgen |
---|---|
date | Thu Mar 21 14:18:40 2019 +0100 (2019-03-21) |
parents | b5be5be4609a |
children | 4242092353ba |
line source
1 # SliTaz package receipt.
3 PACKAGE="pgrouting"
4 VERSION="2.5.2"
5 CATEGORY="misc"
6 SHORT_DESC="provide geospatial routing for PostGIS / PostgreSQL."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://pgrouting.org/"
11 WGET_URL="https://codeload.github.com/pgRouting/pgrouting/tar.gz/v$VERSION"
13 DEPENDS="gcc-lib-base cgal gmp libboost-thread libboost-system \
14 libboost-chrono libboost-date-time"
15 BUILD_DEPENDS="wget cmake postgresql-dev libboost-dev cgal-dev gmp-dev \
16 mpfr-dev libboost-graph-dev libboost-thread-dev libboost-tr1-dev"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 sed -i 's/INT2ARRAYOID/1005/' src/common/src/get_check_data.c
22 mkdir build
23 cd build
24 cmake -DWITH_DD=ON ..
25 make
26 make install
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 mkdir -p $fs/usr
33 cp -a $install/usr/* $fs/usr
34 sed -i 's|\$libdir|/usr/lib/postgresql|' \
35 $fs/usr/share/postgresql/extension/*.sql
36 }
38 post_install_example()
39 {
40 database=test
41 chroot "$1/" createdb -U postgres -h localhost $database
42 chroot "$1/" psql -U postgres -U postgres $database <<EOT
43 create extension pgrouting;
44 \q
45 EOT
46 sed 1d $1/usr/share/postgresql/extension/pgrouting--$VERSION.sql |
47 chroot "$1/" psql -U postgres $database
48 }