wok annotate sqlite/receipt @ rev 11563
Add pysdm form wok-undigest
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Dec 25 15:19:21 2011 +0100 (2011-12-25) |
parents | 017ae4c07215 |
children | 9b467e60ded0 |
rev | line source |
---|---|
pankso@6 | 1 # SliTaz package receipt. |
pankso@6 | 2 |
pankso@6 | 3 PACKAGE="sqlite" |
slaxemulator@11158 | 4 _amalgamationver=3070900 |
slaxemulator@7610 | 5 _amalgamationver2=${_amalgamationver/00/} |
slaxemulator@7610 | 6 VERSION="${_amalgamationver2//0/.}" |
pankso@205 | 7 CATEGORY="office" |
pankso@6 | 8 SHORT_DESC="Small SQL database engine." |
pankso@6 | 9 MAINTAINER="pankso@slitaz.org" |
slaxemulator@7610 | 10 TARBALL="$PACKAGE-src-${_amalgamationver}.zip" |
erjo@8741 | 11 DEPENDS="libsqlite" |
slaxemulator@5351 | 12 BUILD_DEPENDS="tcl" |
pankso@6 | 13 WEB_SITE="http://www.sqlite.org/" |
pankso@6 | 14 WGET_URL="http://www.sqlite.org/$TARBALL" |
pankso@6 | 15 |
pankso@6 | 16 # Rules to configure and make the package. |
pankso@6 | 17 compile_rules() |
pankso@6 | 18 { |
pankso@6 | 19 cd $src |
slaxemulator@11158 | 20 export CFLAGS="$CFLAGS -DSQLITE_ENABLE_FTS3=1 -DSQLITE_ENABLE_COLUMN_METADATA=1 -DSQLITE_ENABLE_UNLOCK_NOTIFY -DSQLITE_SECURE_DELETE" |
pankso@612 | 21 ./configure \ |
pankso@612 | 22 --prefix=/usr \ |
pankso@612 | 23 --disable-tcl \ |
pankso@2047 | 24 --disable-readline \ |
sygne@1984 | 25 --enable-load-extension \ |
sygne@1984 | 26 LDFLAGS=-ldl \ |
pankso@3156 | 27 $CONFIGURE_ARGS && |
slaxemulator@5351 | 28 sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool && |
slaxemulator@5351 | 29 sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool && |
pankso@3156 | 30 make && |
slaxemulator@10108 | 31 make DESTDIR=$DESTDIR install |
slaxemulator@6577 | 32 # compile lemon here instead of in lemon |
slaxemulator@6577 | 33 if [ -f $src/lemon ]; then |
slaxemulator@6577 | 34 rm $src/lemon |
slaxemulator@6577 | 35 fi |
slaxemulator@6577 | 36 cp $src/tool/lemon.c . |
slaxemulator@6577 | 37 sed -i -e 's!lempar.c!/usr/share/lemon/lempar.c!' lemon.c |
slaxemulator@6577 | 38 echo -n "Compiling lemon..." |
slaxemulator@6577 | 39 gcc -o lemon lemon.c && status |
slaxemulator@10108 | 40 mkdir -p $DESTDIR/usr/share/lemon |
slaxemulator@10108 | 41 cp -a $src/lemon $DESTDIR/usr/bin |
slaxemulator@10108 | 42 cp -a $src/lempar.c $DESTDIR/usr/share/lemon |
pankso@6 | 43 } |
pankso@6 | 44 |
pankso@6 | 45 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@6 | 46 genpkg_rules() |
pankso@6 | 47 { |
erjo@8741 | 48 mkdir -p $fs/usr |
erjo@8741 | 49 |
slaxemulator@11158 | 50 cp -a $install/usr/bin $fs/usr |
gokhlayeh@11392 | 51 if [ -f $fs/usr/bin/lemon ]; then |
gokhlayeh@11392 | 52 rm -f $fs/usr/bin/lemon |
gokhlayeh@11392 | 53 fi |
pankso@6 | 54 } |