rust/cargo-c: update to 0.10.7+cargo-0.84.0
[oi-userland.git] / components / database / pgagent / Makefile
blobe9cd745e701c0de62ad90466b48b55e77f443a75
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
16 BUILD_BITS= 64
17 BUILD_STYLE= cmake
18 include ../../../make-rules/shared-macros.mk
20 COMPONENT_NAME= pgAgent
21 COMPONENT_FILENAME= pgagent
22 COMPONENT_VERSION= 4.2.2
23 COMPONENT_SUMMARY= pgAgent job scheduler for PostgreSQL
24 COMPONENT_SRC= $(COMPONENT_FILENAME)-$(COMPONENT_VERSION)
25 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
26 COMPONENT_ARCHIVE_HASH= sha256:6eb6c96eafaeb996b510b8ea683c1612e8120f5b33a1ec428eeb7360a4803f70
27 COMPONENT_ARCHIVE_URL= https://github.com/pgadmin-org/pgagent/archive/refs/tags/$(COMPONENT_ARCHIVE)
28 COMPONENT_PROJECT_URL= https://www.pgadmin.org/
29 COMPONENT_FMRI= database/postgres/pgagent
30 COMPONENT_CLASSIFICATION= System/Databases
31 COMPONENT_LICENSE= MIT
32 COMPONENT_LICENSE_FILE= LICENSE
34 # Don't depend on host default pg_config
35 PATH= $(PG_BINDIR.$(BITS)):/usr/bin/$(MACH64):/usr/bin
37 TEST_TARGET= $(NO_TESTS)
38 include $(WS_MAKE_RULES)/common.mk
40 COMPONENT_POST_UNPACK_ACTION= ( $(MV) $(COMPONENT_FILENAME)-$(COMPONENT_SRC) $(COMPONENT_SRC) )
41 COMPONENT_PRE_CMAKE_ACTION= ( cp -a $(SOURCE_DIR)/* $(@D) )
43 # Workaround for cmake to look for files in build directory
44 $(BUILD_DIR)/%/.configured: $(SOURCE_DIR)/.prep
45 ($(RM) -rf $(@D) ; $(MKDIR) $(@D))
46 $(COMPONENT_PRE_CMAKE_ACTION)
47 (cd $(@D) ; $(ENV) $(CMAKE_ENV) \
48 $(CMAKE) $(CMAKE_OPTIONS) $(@D))
49 $(COMPONENT_POST_CMAKE_ACTION)
50 $(TOUCH) $@
52 CXXFLAGS += -pthreads
54 CMAKE_OPTIONS = -D STATIC_BUILD=NO
55 # Don't depend on host default pg_config
56 CMAKE_OPTIONS += -D CMAKE_PROGRAM_PATH=$(PATH)
57 CMAKE_OPTIONS += -D CMAKE_BUILD_WITH_INSTALL_RPATH="TRUE"
58 CMAKE_OPTIONS += -D CMAKE_INSTALL_RPATH_USE_LINK_PATH="TRUE"
59 CMAKE_OPTIONS += -D CMAKE_INSTALL_PREFIX=/usr
61 # How can I tell cmake to use /usr/lib/amd64/cmake instead of /usr/lib/cmake?
62 CMAKE_OPTIONS += -D CMAKE_PREFIX_PATH="/usr/lib/$(MACH64)/cmake"
64 # Manually added build dependencies
65 REQUIRED_PACKAGES += $(PG_DEVELOPER_PKG)
67 # Auto-generated dependencies
68 REQUIRED_PACKAGES += $(GCC_RUNTIME_PKG)
69 REQUIRED_PACKAGES += $(GXX_RUNTIME_PKG)
70 REQUIRED_PACKAGES += $(PG_LIBRARY_PKG)
71 REQUIRED_PACKAGES += SUNWcs
72 REQUIRED_PACKAGES += system/library
73 REQUIRED_PACKAGES += system/library/boost