wok-current annotate sqlite/receipt @ rev 19118
sqlite: fix arm build (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat May 07 17:38:53 2016 +0200 (2016-05-07) |
parents | 77a9ec044381 |
children | 78adcea3ecfb |
rev | line source |
---|---|
pankso@6 | 1 # SliTaz package receipt. |
pankso@6 | 2 |
pankso@6 | 3 PACKAGE="sqlite" |
devl547@18268 | 4 _realver=3081101 |
slaxemulator@13677 | 5 VERSION="${_realver:0:1}.${_realver:2:1}.${_realver:3:2}.${_realver:6:6}" |
pankso@205 | 6 CATEGORY="office" |
pankso@6 | 7 SHORT_DESC="Small SQL database engine." |
pankso@6 | 8 MAINTAINER="pankso@slitaz.org" |
pascal@15379 | 9 LICENSE="PublicDomain" |
slaxemulator@12422 | 10 TARBALL="$PACKAGE-src-${_realver}.zip" |
pascal@15379 | 11 WEB_SITE="http://www.sqlite.org/" |
devl547@17785 | 12 WGET_URL="http://www.sqlite.org/2015/$TARBALL" |
pascal@18930 | 13 EXTRA_SOURCE_FILES="mysql2sqlite.sh" |
pankso@16042 | 14 HOST_ARCH="i486 arm" |
pascal@15379 | 15 |
erjo@8741 | 16 DEPENDS="libsqlite" |
pascal@18650 | 17 BUILD_DEPENDS="tcl-dev" |
pankso@6 | 18 |
pankso@6 | 19 # Rules to configure and make the package. |
pankso@6 | 20 compile_rules() |
pankso@6 | 21 { |
pascal@18930 | 22 [ -s "$SOURCES_REPOSITORY/mysql2sqlite.sh" ] || |
pascal@18930 | 23 wget -O "$SOURCES_REPOSITORY/mysql2sqlite.sh" \ |
pascal@18930 | 24 https://gist.github.com/esperlu/943776/raw/dd87f4088f6d5ec7563478f7a28a37ba02cf26e2/mysql2sqlite.sh |
slaxemulator@11158 | 25 export CFLAGS="$CFLAGS -DSQLITE_ENABLE_FTS3=1 -DSQLITE_ENABLE_COLUMN_METADATA=1 -DSQLITE_ENABLE_UNLOCK_NOTIFY -DSQLITE_SECURE_DELETE" |
pankso@612 | 26 ./configure \ |
pankso@612 | 27 --prefix=/usr \ |
pankso@2047 | 28 --disable-readline \ |
sygne@1984 | 29 --enable-load-extension \ |
pascal@19118 | 30 LDFLAGS="$LDFLAGS -ldl" \ |
pankso@3156 | 31 $CONFIGURE_ARGS && |
slaxemulator@5351 | 32 sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool && |
slaxemulator@5351 | 33 sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool && |
pankso@3156 | 34 make && |
slaxemulator@10108 | 35 make DESTDIR=$DESTDIR install |
slaxemulator@6577 | 36 # compile lemon here instead of in lemon |
slaxemulator@6577 | 37 if [ -f $src/lemon ]; then |
slaxemulator@6577 | 38 rm $src/lemon |
slaxemulator@6577 | 39 fi |
slaxemulator@6577 | 40 cp $src/tool/lemon.c . |
slaxemulator@6577 | 41 sed -i -e 's!lempar.c!/usr/share/lemon/lempar.c!' lemon.c |
slaxemulator@6577 | 42 echo -n "Compiling lemon..." |
slaxemulator@6577 | 43 gcc -o lemon lemon.c && status |
slaxemulator@10108 | 44 mkdir -p $DESTDIR/usr/share/lemon |
slaxemulator@10108 | 45 cp -a $src/lemon $DESTDIR/usr/bin |
slaxemulator@10108 | 46 cp -a $src/lempar.c $DESTDIR/usr/share/lemon |
pankso@6 | 47 } |
pankso@6 | 48 |
pankso@6 | 49 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@6 | 50 genpkg_rules() |
pankso@6 | 51 { |
pascal@18930 | 52 mkdir -p $fs/usr/bin |
erjo@8741 | 53 |
slaxemulator@11158 | 54 cp -a $install/usr/bin $fs/usr |
pascal@18930 | 55 cp "$SOURCES_REPOSITORY/mysql2sqlite.sh" $fs/usr/bin |
pascal@18930 | 56 chmod +x $fs/usr/bin/mysql2sqlite.sh |
gokhlayeh@11392 | 57 if [ -f $fs/usr/bin/lemon ]; then |
gokhlayeh@11392 | 58 rm -f $fs/usr/bin/lemon |
gokhlayeh@11392 | 59 fi |
pankso@6 | 60 } |