xbacklight: update to 1.2.4
[oi-userland.git] / components / library / tntdb / Makefile
blobd6ababc3a7034e159211c410dd00953829239cb4
2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"), version 1.0.
4 # You may only use this file in accordance with the terms of version
5 # 1.0 of the CDDL.
7 # A full copy of the text of the CDDL should have accompanied this
8 # source. A copy of the CDDL is also available via the Internet at
9 # http://www.illumos.org/license/CDDL.
13 # Copyright 2016 Jim Klimov
14 # Copyright 2022 Friedrich Kink
17 BUILD_BITS= 64
18 include ../../../make-rules/shared-macros.mk
20 COMPONENT_NAME= tntdb
21 COMPONENT_VERSION= 1.4
22 COMPONENT_REVISION= 1
23 COMPONENT_SUMMARY= C++ library to access SQL databases, easy and robust
24 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
25 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
26 COMPONENT_ARCHIVE_HASH= sha256:48cefd354acf2579c80b77d789d67f8b8162f1a02a3c2fb8157a9a32dc332859
27 COMPONENT_PROJECT_URL= https://web.archive.org/web/20230309070315/http://www.tntnet.org/tntdb.html
28 COMPONENT_ARCHIVE_URL= https://web.archive.org/web/20230309070345/http://www.tntnet.org/download/$(COMPONENT_ARCHIVE)
29 COMPONENT_FMRI= library/$(COMPONENT_NAME)
30 COMPONENT_CLASSIFICATION=System/Libraries
31 COMPONENT_LICENSE= LGPLv2.1
32 COMPONENT_LICENSE_FILE= COPYING
34 include $(WS_MAKE_RULES)/common.mk
36 TEST_TARGET= $(NO_TESTS)
38 CFLAGS += $(CPP_LARGEFILES)
39 CXXFLAGS += $(CPP_LARGEFILES)
40 CPPFLAGS += $(CPP_LARGEFILES)
42 # We use a fixed default mysql and postgres implementation+version as defined
43 # in `make-rules/*.mk` files included above
44 PATH=$(MYSQL_BINDIR.64):$(PG_BINDIR.64):$(PATH.gnu)
46 COMPONENT_POST_CONFIGURE_ACTION+= ( $(GSED) -i -e 's:$(MYSQL_LIBDIR):$(MYSQL_LIBDIR) -R$(MYSQL_LIBDIR):' $(@D)/src/mysql/Makefile; );
47 COMPONENT_POST_CONFIGURE_ACTION+= ( $(GSED) -i -e 's:$(PG_LIBDIR):$(PG_LIBDIR) -R$(PG_LIBDIR):' $(@D)/src/postgresql/Makefile; );
49 COMPONENT_COMMON_ENV += PATH="$(PATH)"
50 COMPONENT_COMMON_ENV += CC="$(CC)"
51 COMPONENT_COMMON_ENV += CXX="$(CXX)"
52 COMPONENT_COMMON_ENV += CXXFLAGS="$(CXXFLAGS)"
53 COMPONENT_COMMON_ENV += LDFLAGS="$(LDFLAGS)"
55 CONFIGURE_ENV += $(COMPONENT_COMMON_ENV)
56 COMPONENT_BUILD_ENV += $(COMPONENT_COMMON_ENV)
57 COMPONENT_INSTALL_ENV += $(COMPONENT_COMMON_ENV)
59 CONFIGURE_OPTIONS += --sysconfdir=/etc
60 CONFIGURE_OPTIONS += --with-mysql=yes
61 CONFIGURE_OPTIONS += --with-postgresql=yes
62 CONFIGURE_OPTIONS += --with-replicate=yes
63 CONFIGURE_OPTIONS += --with-oracle=no
65 # We need mysql_config delivered by (mariadb-101|mysql|percona)/client :
66 REQUIRED_PACKAGES += $(MYSQL_CLIENT_PKG)
67 # We need pg_config :
68 REQUIRED_PACKAGES += $(PG_DEVELOPER_PKG)
70 # Auto-generated dependencies
71 REQUIRED_PACKAGES += $(GCC_RUNTIME_PKG)
72 REQUIRED_PACKAGES += $(GXX_RUNTIME_PKG)
73 REQUIRED_PACKAGES += $(MYSQL_LIBRARY_PKG)
74 REQUIRED_PACKAGES += $(PG_LIBRARY_PKG)
75 REQUIRED_PACKAGES += database/sqlite-3
76 REQUIRED_PACKAGES += library/cxxtools
77 REQUIRED_PACKAGES += system/library
78 REQUIRED_PACKAGES += system/library/math