wok-next view libiodbc/receipt @ rev 21721

created recipes for efivar and efibootmgr
author Hans-G?nter Theisgen
date Tue Sep 01 10:09:15 2020 +0100 (2020-09-01)
parents f48456621a9d
children
line source
1 # SliTaz package receipt v2.
3 PACKAGE="libiodbc"
4 VERSION="3.52.12"
5 CATEGORY="system-tools"
6 SHORT_DESC="Independent Open DataBase Connectivity"
7 MAINTAINER="devel@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://www.iodbc.org/dataspace/doc/iodbc/wiki/iodbcWiki/WelcomeVisitors"
10 LFS="http://www.linuxfromscratch.org/blfs/view/svn/general/libiodbc.html"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="$SF_MIRROR/iodbc/$TARBALL"
15 BUILD_DEPENDS="gtk2-dev chrpath"
16 SPLIT="$PACKAGE-gui $PACKAGE $PACKAGE-dev"
18 compile_rules() {
19 ./configure \
20 --with-iodbc-inidir=/etc/iodbc \
21 --includedir=/usr/include/iodbc \
22 --disable-libodbc \
23 --disable-static \
24 $CONFIGURE_ARGS &&
25 fix libtool &&
26 make &&
27 make install || return 1
29 # remove rpath pointing to "/home/slitaz/wok/libiodbc/source/libiodbc-3.52.12/iodbc/.libs"
30 chrpath -d $install/usr/bin/iodbctest*
31 }
33 genpkg_rules() {
34 case $PACKAGE in
35 *-gui)
36 copy iodbcadm-gtk libdrvproxy.so* libiodbcadm.so*
37 DEPENDS="glib gtk2 libiodbc"
38 ;;
39 libiodbc)
40 copy @std @rm
41 rm -r $fs/usr/share # remove samples/ with underlayind dirs
42 ;;
43 *-dev)
44 copy @dev samples/
45 DEPENDS="libiodbc" # exclude gui package
46 ;;
47 esac
48 }