1 #!/usr/bin/bash
2 #
3 # CDDL HEADER START
4 #
5 # The contents of this file are subject to the terms of the
6 # Common Development and Distribution License, Version 1.0 only
7 # (the "License"). You may not use this file except in compliance
8 # with the License.
9 #
10 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
11 # or http://www.opensolaris.org/os/licensing.
12 # See the License for the specific language governing permissions
13 # and limitations under the License.
14 #
15 # When distributing Covered Code, include this CDDL HEADER in each
16 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
17 # If applicable, add the following below this CDDL HEADER, with the
18 # fields enclosed by brackets "[]" replaced with your own identifying
19 # information: Portions Copyright [yyyy] [name of copyright owner]
20 #
21 # CDDL HEADER END
22 #
23 #
24 # Copyright 2011-2012 OmniTI Computer Consulting, Inc. All rights reserved.
25 # Use is subject to license terms.
26 #
27 # Load support functions
28 . ../../lib/functions.sh
29
30 PROG=unixODBC
31 VER=2.3.2
32 VERHUMAN=$VER
33 PKG=library/unixodbc
34 SUMMARY="The UnixODBC Subsystem and SDK"
35 DESC="UnixODBC - The UnixODBC Subsystem and SDK ($VER)"
36
37 DEPENDS_IPS="system/library system/library/math system/library/gcc-4-runtime"
38
39 CONFIGURE_OPTS="
40 --includedir=$PREFIX/include/odbc
41 --localstatedir=/var
42 --sysconfdir=/etc/odbc
43 --enable-shared
44 --disable-static
45 --disable-libtool-lock
46 --disable-gui
47 --enable-threads
48 --disable-gnuthreads
49 --enable-readline
50 --enable-inicaching
51 --enable-drivers=yes
52 --enable-driver-conf=yes
53 --enable-fdb
54 --enable-odbctrace
55 --enable-iconv
56 --enable-stats
57 --enable-rtldgroup
58 --disable-ltdllib
59 --without-pth
60 --without-pth-test
61 --with-libiconv-prefix=$PREFIX
62 --disable-ltdl-install
63 --with-pic
64 "
65
66 save_function make_prog64 make_prog64_orig
67 save_function make_prog32 make_prog32_orig
68 make_prog64() {
69 logcmd perl -pi -e 's#(\$CC.*\$compiler_flags)#$1 -nostdlib#g;' libtool ||
70 logerr "libtool patch failed"
71 make_prog64_orig
72 }
73 make_prog32() {
74 logcmd perl -pi -e 's#(\$CC.*\$compiler_flags)#$1 -nostdlib#g;' libtool ||
75 logerr "libtool patch failed"
76 make_prog32_orig
77 }
78
79
80 init
81 download_source $PROG $PROG $VER
82 patch_source
83 prep_build
84 build
85 make_isa_stub
86 make_package
87 clean_up
88
89 # Vim hints
90 # vim:ts=4:sw=4:et: