python/hypothesis: update to 6.122.3
[oi-userland.git] / components / database / pgloader / Makefile
blob4b3a186c9859e3c1e2ab23b94cb6c8d4e199a927
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 Alexander Pyhalov
16 include ../../../make-rules/shared-macros.mk
18 COMPONENT_NAME= pgloader
19 COMPONENT_VERSION= 3.6.10
20 COMPONENT_SUMMARY= Data loading tool for PostgreSQL
21 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
22 COMPONENT_ARCHIVE= $(COMPONENT_SRC).zip
23 COMPONENT_ARCHIVE_HASH= sha256:f86930190da80ae74e9603c2eabe6a2e4567b5aca1df34d98789a3761ae64b5d
24 COMPONENT_ARCHIVE_URL= https://github.com/dimitri/pgloader/archive/v$(COMPONENT_VERSION).zip
25 COMPONENT_PROJECT_URL= https://pgloader.io/
26 COMPONENT_FMRI= database/postgres/pgloader
27 COMPONENT_CLASSIFICATION= System/Databases
28 COMPONENT_LICENSE= PostgreSQL
29 COMPONENT_LICENSE_FILE= LICENSE
31 # Don't depend on host default pg_config
32 PATH= $(PG_BINDIR.$(BITS)):/usr/sbin:/usr/bin
34 include $(WS_MAKE_RULES)/prep.mk
35 include $(WS_MAKE_RULES)/ips.mk
37 COMPONENT_BUILD_ARGS=
39 $(BUILD_DIR)/%/.built: $(SOURCE_DIR)/.prep
40 $(RM) -r $(@D) ; $(MKDIR) $(@D)
41 $(CP) -a $(SOURCE_DIR)/* $(@D)
42 $(COMPONENT_PRE_BUILD_ACTION)
43 (cd $(@D) ; $(ENV) $(COMPONENT_BUILD_ENV) \
44 $(GMAKE) $(COMPONENT_BUILD_GMAKE_ARGS) $(COMPONENT_BUILD_ARGS) \
45 $(COMPONENT_BUILD_TARGETS))
46 $(COMPONENT_POST_BUILD_ACTION)
47 $(TOUCH) $@
49 build: $(BUILD_64)
51 install: $(INSTALL_64)
53 $(BUILD_DIR)/%/.installed: $(BUILD_64)
54 $(MKDIR) $(PROTO_DIR)/usr/bin \
55 $(PROTO_DIR)/usr/share/doc/pgloader
56 cp $(BUILD_DIR_64)/build/bin/pgloader $(PROTO_DIR)/usr/bin/pgloader
57 cp $(BUILD_DIR_64)/TODO.md $(BUILD_DIR_64)/README.md $(PROTO_DIR)/usr/share/doc/pgloader
58 $(TOUCH) $@
60 clean::
61 $(RM) -r $(BUILD_DIR) $(PROTO_DIR)
63 # Build dependencies
64 REQUIRED_PACKAGES += library/freetds
65 REQUIRED_PACKAGES += runtime/ccl
67 # Auto-generated dependencies
68 REQUIRED_PACKAGES += system/library
69 REQUIRED_PACKAGES += system/library/math