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
:= c4d2dfabb20a8e26e8437dff41f366520001eb031ffd77fbfcde70d0073fc9f6
10 PKG_DESCR
:= mysql client library
12 PKG_DEPENDS
:= libncurses zlib libevent
13 PKG_BUILDDEP
:= cmake-host mysql-host ncurses zlib readline libevent
14 HOST_BUILDDEP
:= cmake-host
15 PKG_URL
:= http
://www.mysql.com
/
16 PKG_SITES
= ${MASTER_SITE_MYSQL
:=Downloads
/MySQL-5.6
/}
17 PKG_LIBNAME
:= libmysqlclient
20 DISTFILES
:= ${PKG_NAME}-${PKG_VERSION}.
tar.gz
22 include ${ADK_TOPDIR}/mk
/host.mk
23 include ${ADK_TOPDIR}/mk
/package.mk
25 $(eval
$(call HOST_template
,MYSQL
,mysql
,${PKG_VERSION}-${PKG_RELEASE}))
26 $(eval
$(call PKG_template
,LIBMYSQLCLIENT
,libmysqlclient
,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
30 CMAKE_FLAGS
+= -DSTACK_DIRECTION
=1 \
31 -DHAVE_LLVM_LIBCPP
=0 \
32 -DWITH_EDITLINE
=bundled \
33 -DCURSES_LIBRARY
="$(STAGING_TARGET_DIR)/usr/lib" \
34 -DCURSES_INCLUDE_PATH
="$(STAGING_TARGET_DIR)/usr/include"
37 cd
${WRKBUILD} && PATH
='${HOST_PATH}' cmake .
40 cd
${WRKBUILD} && env
${HOST_MAKE_ENV} ${MAKE} -f
${MAKE_FILE} \
41 ${HOST_MAKE_FLAGS} ${HOST_ALL_TARGET} $(MAKE_TRACE
)
44 $(SED
) "s#@@STAGING_DIR@@#${STAGING_TARGET_DIR}#" ${WRKBUILD}/scripts
/mysql_config.sh
47 $(INSTALL_BIN
) ${WRKBUILD}/extra
/comp_err \
48 $(STAGING_HOST_DIR
)/usr
/bin
49 $(INSTALL_BIN
) ${WRKBUILD}/scripts
/comp_sql \
50 $(STAGING_HOST_DIR
)/usr
/bin
51 $(INSTALL_BIN
) ${WRKBUILD}/sql
/gen_lex_hash \
52 $(STAGING_HOST_DIR
)/usr
/bin
53 $(INSTALL_BIN
) ${WRKBUILD}/storage
/perfschema
/gen_pfs_lex_token \
54 $(STAGING_HOST_DIR
)/usr
/bin
57 $(CP
) $(STAGING_HOST_DIR
)/usr
/bin
/comp_err \
59 $(CP
) $(STAGING_HOST_DIR
)/usr
/bin
/comp_sql \
61 $(CP
) $(STAGING_HOST_DIR
)/usr
/bin
/gen_lex_hash \
63 $(CP
) $(STAGING_HOST_DIR
)/usr
/bin
/gen_pfs_lex_token \
64 ${WRKBUILD}/storage
/perfschema
/
66 libmysqlclient-install
:
67 ${INSTALL_DIR} ${IDIR_LIBMYSQLCLIENT}/usr
/lib
68 ${CP} ${WRKINST}/usr
/lib
/libmysqlclient.so
* \
69 ${IDIR_LIBMYSQLCLIENT}/usr
/lib
71 include ${ADK_TOPDIR}/mk
/host-bottom.mk
72 include ${ADK_TOPDIR}/mk
/pkg-bottom.mk