rust/cargo-c: update to 0.10.7+cargo-0.84.0
[oi-userland.git] / components / database / unixodbc / Makefile
blobda1d1ae95917989577d91010705c0b8516648916
2 # CDDL HEADER START
4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
19 # CDDL HEADER END
21 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
22 # Copyright (c) 2017, Andreas Wacknitz
23 # Copyright (c) 2019, Michal Nowak
26 BUILD_BITS= 64_and_32
27 include ../../../make-rules/shared-macros.mk
29 PATH= $(PATH.illumos)
31 COMPONENT_NAME= unixODBC
32 COMPONENT_VERSION= 2.3.12
33 COMPONENT_REVISION= 1
34 COMPONENT_SUMMARY= The UnixODBC Subsystem and SDK
35 COMPONENT_DESCRIPTION= An Open Source implementation of the ODBC Standard providing a Library Framework for Software Development
36 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
37 COMPONENT_PROJECT_URL= https://www.unixodbc.org/
38 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
39 COMPONENT_ARCHIVE_HASH= sha256:f210501445ce21bf607ba51ef8c125e10e22dffdffec377646462df5f01915ec
40 COMPONENT_ARCHIVE_URL= ftp://ftp.unixodbc.org/pub/unixODBC/$(COMPONENT_ARCHIVE)
41 COMPONENT_FMRI= library/unixodbc
42 COMPONENT_CLASSIFICATION= Development/Databases
43 COMPONENT_LICENSE= LGPLv2.1, GPLv2
45 TEST_TARGET= $(NO_TESTS)
46 include $(WS_MAKE_RULES)/common.mk
48 COMPONENT_PREP_ACTION = ( cd $(@D) && autoreconf -fi )
50 CFLAGS += $(CPP_LARGEFILES)
51 CFLAGS += $(XPG6MODE)
52 CFLAGS += $(CPP_POSIX)
54 GSED= /usr/gnu/bin/sed
56 X11LIB.32= $(CONFIGURE_PREFIX)/lib
57 X11LIB.64= $(CONFIGURE_PREFIX)/lib/$(MACH64)
59 PKG_CONFIG_PATH_32= /usr/lib/pkgconfig
60 PKG_CONFIG_PATH_64= /usr/lib/$(MACH64)/pkgconfig
62 LD_OPTIONS += -lsocket -lresolv -lnsl -lgen
64 CONFIGURE_OPTIONS += --includedir=$(CONFIGURE_PREFIX)/include/odbc
65 CONFIGURE_OPTIONS += --localstatedir=/var
66 CONFIGURE_OPTIONS += --sysconfdir=/etc/odbc
67 CONFIGURE_OPTIONS += --x-includes="$(CONFIGURE_PREFIX)/include"
68 CONFIGURE_OPTIONS += --x-libraries="$(X11LIB.$(BITS))"
69 CONFIGURE_OPTIONS += --enable-shared
70 CONFIGURE_OPTIONS += --disable-static
71 CONFIGURE_OPTIONS += --disable-libtool-lock
72 CONFIGURE_OPTIONS += --enable-threads
73 CONFIGURE_OPTIONS += --disable-gnuthreads
74 CONFIGURE_OPTIONS += --enable-readline
75 CONFIGURE_OPTIONS += --enable-inicaching
76 CONFIGURE_OPTIONS += --enable-drivers=yes
77 CONFIGURE_OPTIONS += --enable-driver-conf=yes
78 CONFIGURE_OPTIONS += --enable-fdb
79 CONFIGURE_OPTIONS += --enable-odbctrace
80 CONFIGURE_OPTIONS += --enable-iconv
81 CONFIGURE_OPTIONS += --enable-stats
82 CONFIGURE_OPTIONS += --enable-rtldgroup
83 CONFIGURE_OPTIONS += --disable-ltdllib
84 CONFIGURE_OPTIONS += --without-pth
85 CONFIGURE_OPTIONS += --without-pth-test
86 CONFIGURE_OPTIONS += --with-libiconv-prefix=$(CONFIGURE_PREFIX)
87 CONFIGURE_OPTIONS += --disable-ltdl-install
88 CONFIGURE_OPTIONS += --with-pic
89 CONFIGURE_OPTIONS += MAKE="$(GMAKE)"
91 CONFIGURE_ENV += LD="$(CC) $(CFLAGS) $(LDFLAGS)"
92 CONFIGURE_ENV += INSTALL="$(INSTALL)"
94 # Auto-generated dependencies
95 REQUIRED_PACKAGES += $(READLINE_PKG)
96 REQUIRED_PACKAGES += $(READLINE_PKG)/32
97 REQUIRED_PACKAGES += library/libtool/libltdl
98 REQUIRED_PACKAGES += system/library
99 REQUIRED_PACKAGES += system/library/math