wok-6.x view sqlite/receipt @ rev 13723
Added math libraries: CoCoALib, gf2x, NTL, PARI/GP as dependencies for Giac/Xcas (which is broken this time)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Dec 21 08:37:05 2012 +0000 (2012-12-21) |
parents | 53ce6364b4f3 |
children | 493facea6dac |
line source
1 # SliTaz package receipt.
3 PACKAGE="sqlite"
4 _realver=3071500
5 VERSION="${_realver:0:1}.${_realver:2:1}.${_realver:3:2}.${_realver:6:6}"
6 CATEGORY="office"
7 SHORT_DESC="Small SQL database engine."
8 MAINTAINER="pankso@slitaz.org"
9 TARBALL="$PACKAGE-src-${_realver}.zip"
10 DEPENDS="libsqlite"
11 BUILD_DEPENDS="tcl"
12 WEB_SITE="http://www.sqlite.org/"
13 WGET_URL="http://www.sqlite.org/$TARBALL"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 cd $src
19 export CFLAGS="$CFLAGS -DSQLITE_ENABLE_FTS3=1 -DSQLITE_ENABLE_COLUMN_METADATA=1 -DSQLITE_ENABLE_UNLOCK_NOTIFY -DSQLITE_SECURE_DELETE"
20 ./configure \
21 --prefix=/usr \
22 --disable-tcl \
23 --disable-readline \
24 --enable-load-extension \
25 LDFLAGS=-ldl \
26 $CONFIGURE_ARGS &&
27 sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool &&
28 sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool &&
29 make &&
30 make DESTDIR=$DESTDIR install
31 # compile lemon here instead of in lemon
32 if [ -f $src/lemon ]; then
33 rm $src/lemon
34 fi
35 cp $src/tool/lemon.c .
36 sed -i -e 's!lempar.c!/usr/share/lemon/lempar.c!' lemon.c
37 echo -n "Compiling lemon..."
38 gcc -o lemon lemon.c && status
39 mkdir -p $DESTDIR/usr/share/lemon
40 cp -a $src/lemon $DESTDIR/usr/bin
41 cp -a $src/lempar.c $DESTDIR/usr/share/lemon
42 }
44 # Rules to gen a SliTaz package suitable for Tazpkg.
45 genpkg_rules()
46 {
47 mkdir -p $fs/usr
49 cp -a $install/usr/bin $fs/usr
50 if [ -f $fs/usr/bin/lemon ]; then
51 rm -f $fs/usr/bin/lemon
52 fi
53 }