wok-next annotate 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 |
rev | line source |
---|---|
al@20463 | 1 # SliTaz package receipt v2. |
pankso@15932 | 2 |
pankso@15932 | 3 PACKAGE="libiodbc" |
al@20675 | 4 VERSION="3.52.12" |
pankso@15932 | 5 CATEGORY="system-tools" |
al@20463 | 6 SHORT_DESC="Independent Open DataBase Connectivity" |
pankso@15932 | 7 MAINTAINER="pankso@slitaz.org" |
pankso@15932 | 8 LICENSE="GPL2" |
al@20463 | 9 WEB_SITE="http://www.iodbc.org/" |
al@21017 | 10 LFS="http://www.linuxfromscratch.org/blfs/view/svn/general/libiodbc.html" |
al@20463 | 11 |
pankso@15932 | 12 TARBALL="$PACKAGE-$VERSION.tar.gz" |
al@20675 | 13 WGET_URL="$SF_MIRROR/iodbc/$TARBALL" |
pankso@15932 | 14 |
al@21017 | 15 BUILD_DEPENDS="gtk2-dev chrpath" |
al@20675 | 16 SPLIT="libiodbc-gui libiodbc libiodbc-dev" |
pankso@15932 | 17 |
al@20463 | 18 compile_rules() { |
al@20675 | 19 ./configure \ |
al@20675 | 20 --with-iodbc-inidir=/etc/iodbc \ |
al@20675 | 21 --includedir=/usr/include/iodbc \ |
al@20675 | 22 --disable-libodbc \ |
al@20675 | 23 --disable-static \ |
al@20675 | 24 $CONFIGURE_ARGS && |
al@20577 | 25 fix libtool && |
al@20557 | 26 make && |
al@20675 | 27 make install || return 1 |
al@20675 | 28 |
al@20675 | 29 # remove rpath pointing to "/home/slitaz/wok/libiodbc/source/libiodbc-3.52.12/iodbc/.libs" |
al@20675 | 30 chrpath -d $install/usr/bin/iodbctest* |
pankso@15932 | 31 } |
pankso@15932 | 32 |
al@20463 | 33 genpkg_rules() { |
al@20463 | 34 case $PACKAGE in |
al@20675 | 35 libiodbc-gui) |
al@20675 | 36 copy iodbcadm-gtk libdrvproxy.so* libiodbcadm.so* |
al@21017 | 37 DEPENDS="glib gtk2 libiodbc" |
al@20675 | 38 ;; |
al@20675 | 39 libiodbc) |
al@20675 | 40 copy @std @rm |
al@20675 | 41 rm -r $fs/usr/share # remove samples/ with underlayind dirs |
al@20675 | 42 ;; |
al@20675 | 43 *-dev) |
al@20675 | 44 copy @dev samples/ |
al@20675 | 45 DEPENDS="libiodbc" # exclude gui package |
al@20675 | 46 ;; |
al@20463 | 47 esac |
pankso@15932 | 48 } |