wok-next view libiodbc/receipt @ rev 21017

Some maintenance
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue Oct 16 16:46:05 2018 +0300 (2018-10-16)
parents 63ae365eb07d
children d5aab818505e
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="pankso@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://www.iodbc.org/"
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="libiodbc-gui libiodbc libiodbc-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 libiodbc-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 }