jenkins-core-weekly: update to 2.496
[oi-userland.git] / components / database / libpqxx / Makefile
blobf325269e2a81a44f960d31b7519f65f4880edf27
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 2017 Alexander Pyhalov
14 # Copyright 2018 Michal Nowak
17 include ../../../make-rules/shared-macros.mk
19 COMPONENT_NAME= libpqxx
20 COMPONENT_VERSION= 7.8.1
21 COMPONENT_SUMMARY= C++ binding library for PostgreSQL
22 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
23 COMPONENT_ARCHIVE= $(COMPONENT_NAME)-$(COMPONENT_VERSION).tar.gz
24 COMPONENT_ARCHIVE_HASH= sha256:0f4c0762de45a415c9fd7357ce508666fa88b9a4a463f5fb76c235bc80dd6a84
25 COMPONENT_ARCHIVE_URL= https://github.com/jtv/libpqxx/archive/$(COMPONENT_VERSION).tar.gz
26 COMPONENT_PROJECT_URL= https://pqxx.org/development/libpqxx/
27 COMPONENT_FMRI= database/postgres/library/c++/libpqxx
28 COMPONENT_CLASSIFICATION= Development/Databases
29 COMPONENT_LICENSE= BSD
30 COMPONENT_LICENSE_FILE= COPYING
32 # Running the tests needs a working Postgrsql server.
33 TEST_TARGET= $(NO_TESTS)
34 include $(WS_MAKE_RULES)/common.mk
36 # Don't depend on host default pg_config
37 PATH= $(PG_BINDIR.$(BITS)):$(PATH.illumos)
39 CXXFLAGS += -std=c++17
41 # Missing files in build dir for configure without this.
42 COMPONENT_PRE_CONFIGURE_ACTION = ( $(CLONEY) $(SOURCE_DIR) $(@D) )
44 CONFIGURE_SCRIPT = $(@D)/configure
46 CONFIGURE_OPTIONS += --disable-static
47 CONFIGURE_OPTIONS += --enable-shared
48 CONFIGURE_OPTIONS += --disable-documentation
50 # Manually added build dependencies
51 REQUIRED_PACKAGES += $(PG_DEVELOPER_PKG)
52 REQUIRED_PACKAGES += developer/documentation-tool/doxygen
54 # Auto-generated dependencies
55 REQUIRED_PACKAGES += $(GCC_RUNTIME_PKG)
56 REQUIRED_PACKAGES += $(GXX_RUNTIME_PKG)
57 REQUIRED_PACKAGES += system/library