python3: update to 3.11.10
[openadk.git] / package / mariadb / Makefile
blob6f380f8a7f129f9cb2604f6fb129a8458e98d694
1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include ${ADK_TOPDIR}/rules.mk
6 PKG_NAME:= mariadb
7 PKG_VERSION:= 10.11.9
8 PKG_RELEASE:= 1
9 PKG_HASH:= 0a00180864cd016187c986faab8010de23a117b9a75f91d6456421f894e48d20
10 PKG_DESCR:= sql client library
11 PKG_SECTION:= libs/db
12 PKG_DEPENDS:= libncurses zlib libevent libpcre boost libfmt libkrb5
13 PKG_BUILDDEP:= cmake-host mariadb-host ncurses zlib readline libevent
14 PKG_BUILDDEP+= boost fmt gnutls pcre2 krb5
15 HOST_BUILDDEP:= cmake-host
16 PKG_NEEDS:= c++
17 PKG_URL:= http://www.mariadb.org/
18 PKG_SITES= https://downloads.mariadb.org/interstitial/mariadb-$(PKG_VERSION)/source/
19 PKG_LIBNAME:= libmariadbclient
20 PKG_OPTS:= dev
22 PKG_CFLINE_MARIADB:= select ADK_PACKAGE_BOOST_DATE_TIME
24 # atomic ops not implemented
25 PKG_ARCH_DEPENDS:= !mips
27 DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
29 include ${ADK_TOPDIR}/mk/host.mk
30 include ${ADK_TOPDIR}/mk/package.mk
32 $(eval $(call HOST_template,MARIADB,mariadb,${PKG_VERSION}-${PKG_RELEASE}))
33 $(eval $(call PKG_template,LIBMARIADBCLIENT,libmariadbclient,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
35 MAKE_ENV+= VERBOSE=1
37 HOST_STYLE:= manual
38 HOST_ALL_TARGET:= import_executables
40 CONFIG_STYLE:= cmake
41 CMAKE_FLAGS+= -DCMAKE_CROSSCOMPILING=ON \
42 -DIMPORT_EXECUTABLES=${BASE_DIR}/host_build_${GNU_HOST_NAME}/w-$(PKG_NAME)-$(PKG_VERSION)-$(PKG_RELEASE)-host/$(PKG_NAME)-$(PKG_VERSION)/import_executables.cmake \
43 -DWITHOUT_SERVER=ON \
44 -DWITH_SSL=bundled \
45 -DWITH_SYSTEMD=auto \
46 -DSECURITY_HARDENED=OFF \
47 -DWITHOUT_DYNAMIC_PLUGINS=ON \
48 -DWITHOUT_MROONGA=ON \
49 -DWITHOUT_TOKUDB=ON \
50 -DSTACK_DIRECTION=-1 \
51 -DWITH_JEMALLOC=OFF \
52 -DWITH_UNIT_TESTS=OFF
54 host-configure:
55 cd ${WRKBUILD} && PATH='${HOST_PATH}' cmake .
57 host-build:
58 cd ${WRKBUILD} && env ${HOST_MAKE_ENV} ${MAKE} -f ${MAKE_FILE} \
59 ${HOST_MAKE_FLAGS} ${HOST_ALL_TARGET} $(MAKE_TRACE)
61 mariadb-hostinstall:
62 @echo
64 libmariadbclient-install:
65 ${INSTALL_DIR} ${IDIR_LIBMARIADBCLIENT}/usr/lib
66 ${CP} ${WRKINST}/usr/lib/libmysqlclient.so* \
67 ${IDIR_LIBMARIADBCLIENT}/usr/lib
68 ${CP} ${WRKINST}/usr/lib/libmariadb.so* \
69 ${IDIR_LIBMARIADBCLIENT}/usr/lib
71 include ${ADK_TOPDIR}/mk/host-bottom.mk
72 include ${ADK_TOPDIR}/mk/pkg-bottom.mk