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
9 PKG_HASH
:= 0a00180864cd016187c986faab8010de23a117b9a75f91d6456421f894e48d20
10 PKG_DESCR
:= sql client library
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
17 PKG_URL
:= http
://www.mariadb.org
/
18 PKG_SITES
= https
://downloads.mariadb.org
/interstitial
/mariadb-
$(PKG_VERSION
)/source
/
19 PKG_LIBNAME
:= libmariadbclient
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}))
38 HOST_ALL_TARGET
:= import_executables
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 \
46 -DSECURITY_HARDENED
=OFF \
47 -DWITHOUT_DYNAMIC_PLUGINS
=ON \
48 -DWITHOUT_MROONGA
=ON \
50 -DSTACK_DIRECTION
=-1 \
55 cd
${WRKBUILD} && PATH
='${HOST_PATH}' cmake .
58 cd
${WRKBUILD} && env
${HOST_MAKE_ENV} ${MAKE} -f
${MAKE_FILE} \
59 ${HOST_MAKE_FLAGS} ${HOST_ALL_TARGET} $(MAKE_TRACE
)
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