wok-next view unixODBC/receipt @ rev 20302

Up gnustep-make (2.7.0)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Nov 10 11:12:26 2017 +0100 (2017-11-10)
parents 39d1c93ea845
children 0e7893ac206d
line source
1 # SliTaz package receipt v2.
3 PACKAGE="unixODBC"
4 VERSION="2.3.4"
5 CATEGORY="system-tools"
6 SHORT_DESC="ODBC for unix."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="LGPL2.1"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://www.unixodbc.org/"
11 WGET_URL="ftp://ftp.unixodbc.org/pub/unixODBC/$TARBALL"
12 HOST_ARCH="i486 arm"
14 BUILD_DEPENDS="readline-dev"
15 SPLIT="unixODBC libunixODBC unixODBC-dev"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 ./configure \
21 --sysconfdir=/etc \
22 --disable-gui \
23 $CONFIGURE_ARGS &&
24 make $MAKEFLAGS &&
25 make DESTDIR=$DESTDIR install
26 }
28 # Rules to gen a SliTaz package suitable for Tazpkg.
29 genpkg_rules()
30 {
31 case $PACKAGE in
32 unixODBC)
33 TAGS="database"
34 DEPENDS="libunixODBC readline"
35 mkdir -p $fs/usr/lib
36 cp -a $install/etc $fs
37 cp -a $install/usr/bin $fs/usr
38 ;;
39 libunixODBC)
40 CAT="system-tools|ODBC for unix libraries."
41 mkdir -p $fs/usr/lib
42 cp -a $install/usr/lib/*.so* $fs/usr/lib
43 ;;
44 unixODBC-dev)
45 CAT="development|ODBC for unix development files."
46 DEPENDS="unixODBC"
47 mkdir -p $fs/usr/lib
48 cp -a $install/usr/include $fs/usr
49 cp -a $install/usr/lib/*a $fs/usr/lib
50 ;;
51 esac
52 }