wok annotate mdbtools/receipt @ rev 13582

Add mdbtools
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Nov 06 10:05:01 2012 +0100 (2012-11-06)
parents
children 76e4946f6fa6
rev   line source
pascal@13582 1 # SliTaz package receipt.
pascal@13582 2
pascal@13582 3 PACKAGE="mdbtools"
pascal@13582 4 VERSION="0.6pre1"
pascal@13582 5 CATEGORY="development"
pascal@13582 6 SHORT_DESC="Export Microsoft's Access database."
pascal@13582 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@13582 8 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@13582 9 WEB_SITE="http://mdbtools.sourceforge.net/"
pascal@13582 10 WGET_URL="$SF_MIRROR/$PACKAGE/$PACKAGE/$VERSION/$TARBALL"
pascal@13582 11
pascal@13582 12 DEPENDS="ncurses readline glib libunixODBC libltdl"
pascal@13582 13 BUILD_DEPENDS="bison flex unixODBC-dev glib-dev"
pascal@13582 14
pascal@13582 15 # Rules to configure and make the package.
pascal@13582 16 compile_rules()
pascal@13582 17 {
pascal@13582 18 cd $src
pascal@13582 19 sed -i 's|.*mdb_backends;|// &|' include/mdbtools.h
pascal@13582 20 ./configure --prefix=/usr --infodir=/usr/share/info \
pascal@13582 21 --enable-sql --with-unixodbc=/usr \
pascal@13582 22 --mandir=/usr/share/man \
pascal@13582 23 $CONFIGURE_ARGS &&
pascal@13582 24 make &&
pascal@13582 25 make DESTDIR=$DESTDIR install
pascal@13582 26 }
pascal@13582 27
pascal@13582 28 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@13582 29 genpkg_rules()
pascal@13582 30 {
pascal@13582 31 cp -a $install/* $fs
pascal@13582 32 }