xrandr: update to 1.5.3
[oi-userland.git] / components / database / unixodbc / Makefile
blobbd02ccc913119827a0c7956dbbb4876363ffc06d
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_SUMMARY= The UnixODBC Subsystem and SDK
34 COMPONENT_DESCRIPTION= An Open Source implementation of the ODBC Standard providing a Library Framework for Software Development
35 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
36 COMPONENT_PROJECT_URL= https://www.unixodbc.org/
37 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
38 COMPONENT_ARCHIVE_HASH= sha256:f210501445ce21bf607ba51ef8c125e10e22dffdffec377646462df5f01915ec
39 COMPONENT_ARCHIVE_URL= ftp://ftp.unixodbc.org/pub/unixODBC/$(COMPONENT_ARCHIVE)
40 COMPONENT_FMRI= library/unixodbc
41 COMPONENT_CLASSIFICATION= Development/Databases
42 COMPONENT_LICENSE= LGPLv2.1, GPLv2
44 TEST_TARGET= $(NO_TESTS)
45 include $(WS_MAKE_RULES)/common.mk
47 COMPONENT_PREP_ACTION = ( cd $(@D) && autoreconf -fi )
49 CFLAGS += $(CPP_LARGEFILES)
50 CFLAGS += $(XPG6MODE)
51 CFLAGS += $(CPP_POSIX)
53 GSED= /usr/gnu/bin/sed
55 X11LIB.32= $(CONFIGURE_PREFIX)/lib
56 X11LIB.64= $(CONFIGURE_PREFIX)/lib/$(MACH64)
58 PKG_CONFIG_PATH_32= /usr/lib/pkgconfig
59 PKG_CONFIG_PATH_64= /usr/lib/$(MACH64)/pkgconfig
61 LD_OPTIONS += -lsocket -lresolv -lnsl -lgen
63 CONFIGURE_OPTIONS += --includedir=$(CONFIGURE_PREFIX)/include/odbc
64 CONFIGURE_OPTIONS += --localstatedir=/var
65 CONFIGURE_OPTIONS += --sysconfdir=/etc/odbc
66 CONFIGURE_OPTIONS += --x-includes="$(CONFIGURE_PREFIX)/include"
67 CONFIGURE_OPTIONS += --x-libraries="$(X11LIB.$(BITS))"
68 CONFIGURE_OPTIONS += --enable-shared
69 CONFIGURE_OPTIONS += --disable-static
70 CONFIGURE_OPTIONS += --disable-libtool-lock
71 CONFIGURE_OPTIONS += --enable-threads
72 CONFIGURE_OPTIONS += --disable-gnuthreads
73 CONFIGURE_OPTIONS += --enable-readline
74 CONFIGURE_OPTIONS += --enable-inicaching
75 CONFIGURE_OPTIONS += --enable-drivers=yes
76 CONFIGURE_OPTIONS += --enable-driver-conf=yes
77 CONFIGURE_OPTIONS += --enable-fdb
78 CONFIGURE_OPTIONS += --enable-odbctrace
79 CONFIGURE_OPTIONS += --enable-iconv
80 CONFIGURE_OPTIONS += --enable-stats
81 CONFIGURE_OPTIONS += --enable-rtldgroup
82 CONFIGURE_OPTIONS += --disable-ltdllib
83 CONFIGURE_OPTIONS += --without-pth
84 CONFIGURE_OPTIONS += --without-pth-test
85 CONFIGURE_OPTIONS += --with-libiconv-prefix=$(CONFIGURE_PREFIX)
86 CONFIGURE_OPTIONS += --disable-ltdl-install
87 CONFIGURE_OPTIONS += --with-pic
88 CONFIGURE_OPTIONS += MAKE="$(GMAKE)"
90 CONFIGURE_ENV += LD="$(CC) $(CFLAGS) $(LDFLAGS)"
91 CONFIGURE_ENV += INSTALL="$(INSTALL)"
93 # Auto-generated dependencies
94 REQUIRED_PACKAGES += library/libtool/libltdl
95 REQUIRED_PACKAGES += library/readline
96 REQUIRED_PACKAGES += system/library
97 REQUIRED_PACKAGES += system/library/math