wok-current annotate sqlite/receipt @ rev 7492

merge
author fireflyoo <lufeng369@gmail.com>
date Fri Dec 03 13:09:49 2010 +0800 (2010-12-03)
parents 17129723bbc4
children a7c1367aeeaf
rev   line source
pankso@6 1 # SliTaz package receipt.
pankso@6 2
pankso@6 3 PACKAGE="sqlite"
slaxemulator@6574 4 VERSION="3.7.3"
pankso@205 5 CATEGORY="office"
pankso@6 6 SHORT_DESC="Small SQL database engine."
pankso@6 7 MAINTAINER="pankso@slitaz.org"
pankso@6 8 TARBALL="$PACKAGE-$VERSION.tar.gz"
slaxemulator@5351 9 BUILD_DEPENDS="tcl"
pankso@6 10 WEB_SITE="http://www.sqlite.org/"
pankso@6 11 WGET_URL="http://www.sqlite.org/$TARBALL"
pankso@6 12
pankso@6 13 # Rules to configure and make the package.
pankso@6 14 compile_rules()
pankso@6 15 {
pankso@6 16 cd $src
pankso@612 17 ./configure \
pankso@612 18 --prefix=/usr \
pankso@612 19 --disable-tcl \
pankso@2047 20 --disable-readline \
sygne@1984 21 --enable-load-extension \
sygne@1984 22 LDFLAGS=-ldl \
pankso@3156 23 $CONFIGURE_ARGS &&
slaxemulator@5351 24 sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool &&
slaxemulator@5351 25 sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool &&
pankso@3156 26 make &&
pankso@6 27 make DESTDIR=$PWD/_pkg install
slaxemulator@6577 28 # compile lemon here instead of in lemon
slaxemulator@6577 29 if [ -f $src/lemon ]; then
slaxemulator@6577 30 rm $src/lemon
slaxemulator@6577 31 fi
slaxemulator@6577 32 cp $src/tool/lemon.c .
slaxemulator@6577 33 sed -i -e 's!lempar.c!/usr/share/lemon/lempar.c!' lemon.c
slaxemulator@6577 34 echo -n "Compiling lemon..."
slaxemulator@6577 35 gcc -o lemon lemon.c && status
slaxemulator@6577 36
pankso@6 37 }
pankso@6 38
pankso@6 39 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@6 40 genpkg_rules()
pankso@6 41 {
pankso@6 42 mkdir -p $fs/usr/lib
pankso@6 43 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
pankso@6 44 cp -a $_pkg/usr/bin $fs/usr
pankso@6 45 }