wok-next annotate unixODBC/receipt @ rev 21094

Apply "force-arch" for selected dev packages
author Aleksej Bobylev <al.bobylev@gmail.com>
date Mon Dec 31 17:23:40 2018 +0200 (2018-12-31)
parents d5aab818505e
children
rev   line source
pascal@20177 1 # SliTaz package receipt v2.
pascal@1186 2
pascal@1186 3 PACKAGE="unixODBC"
al@20647 4 VERSION="2.3.5"
pascal@1186 5 CATEGORY="system-tools"
al@20534 6 SHORT_DESC="ODBC for UNIX"
pascal@1186 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@14996 8 LICENSE="LGPL2.1"
al@20534 9 WEB_SITE="http://www.unixodbc.org/"
al@21017 10 LFS="http://www.linuxfromscratch.org/blfs/view/svn/general/unixodbc.html"
al@20888 11 REPOLOGY="unixodbc"
al@20534 12
pascal@1186 13 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@20177 14 WGET_URL="ftp://ftp.unixodbc.org/pub/unixODBC/$TARBALL"
pascal@14996 15
al@21094 16 COOKOPTS="force-arch" # different .h
al@21094 17
pascal@16473 18 BUILD_DEPENDS="readline-dev"
al@21020 19 SPLIT="libunixODBC $PACKAGE $PACKAGE-dev"
pascal@1186 20
al@20534 21 compile_rules() {
pankso@16079 22 ./configure \
al@20647 23 --sysconfdir=/etc/unixODBC \
pankso@16079 24 $CONFIGURE_ARGS &&
al@20604 25 fix libtool &&
gokhlayeh@11574 26 make $MAKEFLAGS &&
al@20647 27 mkdir -p $install/etc/unixODBC/ &&
al@21020 28 make DESTDIR=$install install || return 1
al@20647 29
al@20647 30 find doc -name "Makefile*" -delete
al@20647 31 find doc -type f -exec chmod 644 '{}' \;
al@20647 32 cook_pick_docs doc/*
pascal@1186 33 }
pascal@1186 34
al@20534 35 genpkg_rules() {
pascal@20177 36 case $PACKAGE in
al@20534 37 libunixODBC)
al@20534 38 copy *.so*
al@20534 39 CAT="system-tools|libraries"
al@20534 40 ;;
al@20534 41 unixODBC)
al@20534 42 copy @std @rm
al@20534 43 DEPENDS="libunixODBC readline"
al@20647 44 CONFIG_FILES="/etc/unixODBC/"
al@20534 45 TAGS="database"
al@20534 46 ;;
al@20534 47 *-dev)
al@20534 48 copy @dev
al@20534 49 ;;
pascal@20177 50 esac
pascal@1186 51 }