Aurelien Larcher
2018-05-22 96984659a921be0d38c0212b02eabaa84808206a
commit | author | age
f05ab0 1 #
AP 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.
6 #
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.
10 #
11
12 #
13 # Copyright 2017 Alexander Pyhalov
14 #
15
16 include ../../../make-rules/shared-macros.mk
17
18 COMPONENT_NAME=     pgAgent
19 COMPONENT_VERSION=     3.4.0
20 COMPONENT_SUMMARY=     pgAgent job scheduler for PostgreSQL
21 COMPONENT_SRC=         $(COMPONENT_NAME)-$(COMPONENT_VERSION)-Source
22 COMPONENT_ARCHIVE=     $(COMPONENT_SRC).tar.gz
23 COMPONENT_ARCHIVE_HASH= \
24   sha256:0da0ac8f453cf34ab6f708eee036bed0fd0e5fa311de283b92d2ff06600bbb3d
25 COMPONENT_ARCHIVE_URL= \
26   https://ftp.postgresql.org/pub/pgadmin/pgagent/$(COMPONENT_ARCHIVE)
27 COMPONENT_PROJECT_URL = http://www.pgadmin.org/
28 COMPONENT_FMRI=    database/postgres/pgagent
29 COMPONENT_CLASSIFICATION=    System/Databases
30 COMPONENT_LICENSE=    MIT
31 COMPONENT_LICENSE_FILE=    LICENSE
32
33 # Don't depend on host default pg_config
34 PATH=        $(PG_BINDIR.$(BITS)):/usr/sbin:/usr/bin
35
36 include $(WS_MAKE_RULES)/prep.mk
37 include $(WS_MAKE_RULES)/cmake.mk
38 include $(WS_MAKE_RULES)/ips.mk
39
40 COMPONENT_PRE_CMAKE_ACTION =        (cp -a $(SOURCE_DIR)/* $(@D))
41
42 # Workaround for cmake to look for files in build directory
43 $(BUILD_DIR)/%/.configured:     $(SOURCE_DIR)/.prep
44     ($(RM) -rf $(@D) ; $(MKDIR) $(@D))
45     $(COMPONENT_PRE_CMAKE_ACTION)
46     (cd $(@D) ; $(ENV) $(CMAKE_ENV) \
47             $(CMAKE) $(CMAKE_OPTIONS) $(@D))
48     $(COMPONENT_POST_CMAKE_ACTION)
49     $(TOUCH) $@
50
51 CMAKE_OPTIONS = -D STATIC_BUILD=NO
52 # Don't depend on host default pg_config
53 CMAKE_OPTIONS += -D CMAKE_PROGRAM_PATH=$(PG_BINDIR.$(BITS)):/usr/sbin:/usr/bin
54 CMAKE_OPTIONS += -D CMAKE_BUILD_WITH_INSTALL_RPATH="TRUE"
55 CMAKE_OPTIONS += -D CMAKE_INSTALL_RPATH_USE_LINK_PATH="TRUE"
56
57 CMAKE_OPTIONS += -D CMAKE_INSTALL_PREFIX=/usr
58
59 build: $(BUILD_32)
60
61 install: $(INSTALL_32)
62
63 test: $(NO_TESTS)
64
65 REQUIRED_PACKAGES += database/postgres-94/library
66 REQUIRED_PACKAGES += library/graphics/wxwidgets
67 REQUIRED_PACKAGES += SUNWcs
68 REQUIRED_PACKAGES += system/library
6e938f 69 REQUIRED_PACKAGES += system/library/g++-6-runtime
969846 70 REQUIRED_PACKAGES += $(GCC_RUNTIME_PKG)