remmina: update to 1.4.37
[oi-userland.git] / components / database / percona-server-57 / Makefile
blob120028ea2c73d9ede42625fbef938611918b575e
2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL)". You may
4 # only use this file in accordance with the terms of the CDDL.
6 # A full copy of the text of the CDDL should have accompanied this
7 # source. A copy of the CDDL is also available via the Internet at
8 # http://www.illumos.org/license/CDDL.
12 # Copyright 2011-2013, EveryCity Ltd. All rights reserved.
13 # Copyright 2019, Michal Nowak
16 BUILD_BITS= 64
17 BUILD_STYLE= cmake
18 OPENSSL_VERSION= 3.1
19 include ../../../make-rules/shared-macros.mk
21 COMPONENT_NAME= percona-server
22 COMPONENT_VERSION = 5.7.39-42
23 IPS_COMPONENT_VERSION = 5.7.39.42
24 COMPONENT_SRC= $(COMPONENT_NAME)-$(HUMAN_VERSION)
25 COMPONENT_REVISION= 1
26 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
27 COMPONENT_PROJECT_URL= https://www.percona.com/
28 COMPONENT_ARCHIVE_HASH= sha256:bda853fb951eef8be1c2f24391798cf1f3377c776a376f4c55b192e42ae8d1b2
29 COMPONENT_ARCHIVE_URL= https://www.percona.com/downloads/Percona-Server-5.7/Percona-Server-$(COMPONENT_VERSION)/source/tarball/$(COMPONENT_ARCHIVE)
31 # We need specific boost version
32 COMPONENT_ARCHIVE_1= boost_1_59_0.tar.gz
33 COMPONENT_ARCHIVE_HASH_1= sha256:47f11c8844e579d02691a607fbd32540104a9ac7a2534a8ddaef50daf502baac
34 COMPONENT_ARCHIVE_URL_1= https://downloads.sourceforge.net/project/boost/boost/1.59.0/$(COMPONENT_ARCHIVE_1)
36 include $(WS_MAKE_RULES)/common.mk
38 COMPONENT_POST_UNPACK_ACTION = ( $(MKDIR) $(BUILD_DIR)/boost && /usr/gnu/bin/tar -C $(BUILD_DIR)/boost -xzf $(USERLAND_ARCHIVES)$(COMPONENT_ARCHIVE_1))
40 CMAKE_PREFIX=/usr/percona-server/5.7
41 CONFDIR=/etc/percona-server/5.7
42 DATA_PREFIX=/var/percona-server/5.7
44 CMAKE_PLUGINDIR.32 = lib/plugin
45 CMAKE_PLUGINDIR.64 = lib/$(MACH64)/plugin
47 # Make sure GCC 6 is accepted
48 CMAKE_OPTIONS+= -DFORCE_UNSUPPORTED_COMPILER=ON
49 CMAKE_OPTIONS+= -DCMAKE_BUILD_TYPE=RELEASE
50 CMAKE_OPTIONS+= -DWITH_SSL=system
51 CMAKE_OPTIONS+= -DINSTALL_LAYOUT=SVR4
52 CMAKE_OPTIONS+= -DINSTALL_BINDIR=$(CMAKE_BINDIR.$(BITS))
53 CMAKE_OPTIONS+= -DINSTALL_INCLUDEDIR=include
54 CMAKE_OPTIONS+= -DINSTALL_INFODIR=bin
55 CMAKE_OPTIONS+= -DINSTALL_LIBDIR=$(CMAKE_LIBDIR.$(BITS))
56 CMAKE_OPTIONS+= -DINSTALL_PLUGINDIR=$(CMAKE_PLUGINDIR.$(BITS))
57 CMAKE_OPTIONS+= -DINSTALL_MANDIR=man
58 CMAKE_OPTIONS+= -DINSTALL_SHAREDIR=share
59 CMAKE_OPTIONS+= -DINSTALL_MYSQLSHAREDIR=share
60 CMAKE_OPTIONS+= -DINSTALL_SBINDIR=$(CMAKE_BINDIR.$(BITS))
61 CMAKE_OPTIONS+= -DINSTALL_SCRIPTDIR=$(CMAKE_BINDIR.$(BITS))
62 CMAKE_OPTIONS+= -DMYSQL_DATADIR=$(DATA_PREFIX)/data
63 CMAKE_OPTIONS+= -DSYSCONFDIR=$(CONFDIR)
64 CMAKE_OPTIONS+= -DENABLE_DTRACE=on
65 CMAKE_OPTIONS+= -DINSTALL_SUPPORTFILESDIR=share/mysql
66 CMAKE_OPTIONS+= -DWITH_BOOST=$(BUILD_DIR)/boost
67 CMAKE_OPTIONS+= -DINSTALL_SECURE_FILE_PRIVDIR=""
69 # gcc invocation in some link.txt file is missing -m$(BITS) parameter
70 # and it makes 64-bit build to fail, this is a quick hack to make it build
71 # for now, cmake build system needs a proper fix
72 COMPONENT_POST_CMAKE_ACTION.32=
73 COMPONENT_POST_CMAKE_ACTION.64= find $(@D) -type f -name link.txt \
74 -exec perl -pi -e 's/gcc\ \ -fPIC/\/gcc\ -m64\ -fPIC/' {} \;
75 COMPONENT_POST_CMAKE_ACTION=$(COMPONENT_POST_CMAKE_ACTION.$(BITS))
77 # Auto-generated dependencies
78 REQUIRED_PACKAGES += $(GCC_RUNTIME_PKG)
79 REQUIRED_PACKAGES += $(GXX_RUNTIME_PKG)
80 REQUIRED_PACKAGES += SUNWcs
81 REQUIRED_PACKAGES += library/readline
82 REQUIRED_PACKAGES += library/security/openssl
83 REQUIRED_PACKAGES += library/zlib
84 REQUIRED_PACKAGES += runtime/perl
85 REQUIRED_PACKAGES += shell/bash
86 REQUIRED_PACKAGES += shell/ksh93
87 REQUIRED_PACKAGES += system/library
88 REQUIRED_PACKAGES += system/library/math
89 REQUIRED_PACKAGES += system/library/security/libsasl
90 REQUIRED_PACKAGES += web/curl