gcc-6: use $(GNU_ARCH) in manifest
[unleashed-userland.git] / components / pgagent / Makefile
blobb01b67c8b84cf1ad6d7db5d431a15081dded5030
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 2013 Alexander Pyhalov. All rights reserved.
16 include ../../make-rules/shared-macros.mk
18 CMAKE= cmake
20 COMPONENT_NAME= pgAgent
21 COMPONENT_VERSION= 3.3.0
22 COMPONENT_SUMMARY= pgAgent job scheduler for PostgreSQL
23 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)-Source
24 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
25 COMPONENT_ARCHIVE_HASH= \
26 sha256:110f2fd811a05ea8a420a79fcbb25b971e60f10f8abb8ab2bede8419c58b7321
27 COMPONENT_ARCHIVE_URL= \
28 http://ftp.postgresql.org/pub/pgadmin3/release/pgagent/$(COMPONENT_ARCHIVE)
29 COMPONENT_PROJECT_URL = http://www.pgadmin.org/
31 # Don't depend on host default pg_config
32 PATH= $(PG_BINDIR.$(BITS)):/usr/sbin:/usr/bin
34 include $(WS_TOP)/make-rules/prep.mk
35 include $(WS_TOP)/make-rules/configure.mk
36 include $(WS_TOP)/make-rules/ips.mk
38 COMPONENT_PRE_CONFIGURE_ACTION = (cp -a $(SOURCE_DIR)/* $(@D))
40 CMAKE_OPTIONS = -D STATIC_BUILD=NO
41 # Don't depend on host default pg_config
42 CMAKE_OPTIONS += -D CMAKE_PROGRAM_PATH=$(PG_BINDIR.$(BITS)):/usr/sbin:/usr/bin
43 CMAKE_OPTIONS += -D CMAKE_BUILD_WITH_INSTALL_RPATH="TRUE"
44 CMAKE_OPTIONS += -D CMAKE_INSTALL_RPATH_USE_LINK_PATH="TRUE"
46 CMAKE_OPTIONS += -D CMAKE_INSTALL_PREFIX=/usr
48 $(BUILD_DIR)/%/.configured: $(SOURCE_DIR)/.prep
49 ($(RM) -rf $(@D) ; $(MKDIR) $(@D))
50 $(COMPONENT_PRE_CONFIGURE_ACTION)
51 (cd $(@D) ; $(ENV) $(CONFIGURE_ENV) $(CMAKE) $(CMAKE_OPTIONS) $(SOURCE_DIR))
52 $(COMPONENT_POST_CONFIGURE_ACTION)
53 $(TOUCH) $@
55 build: $(BUILD_32)
57 install: $(INSTALL_32)