m68k/coldfire: elf2flt has some issues, gas error, so disable cfi asm generation
[openadk.git] / package / mysql / Makefile
blob1f56a911cef0adecba3b9e40411a21d854f1896f
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:= mysql
7 PKG_VERSION:= 5.6.22
8 PKG_RELEASE:= 1
9 PKG_HASH:= c4d2dfabb20a8e26e8437dff41f366520001eb031ffd77fbfcde70d0073fc9f6
10 PKG_DESCR:= mysql client library
11 PKG_SECTION:= libs/db
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
18 PKG_OPTS:= dev
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}))
28 HOST_STYLE:= manual
29 CONFIG_STYLE:= cmake
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"
36 host-configure:
37 cd ${WRKBUILD} && PATH='${HOST_PATH}' cmake .
39 host-build:
40 cd ${WRKBUILD} && env ${HOST_MAKE_ENV} ${MAKE} -f ${MAKE_FILE} \
41 ${HOST_MAKE_FLAGS} ${HOST_ALL_TARGET} $(MAKE_TRACE)
43 pre-configure:
44 $(SED) "s#@@STAGING_DIR@@#${STAGING_TARGET_DIR}#" ${WRKBUILD}/scripts/mysql_config.sh
46 mysql-hostinstall:
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
56 post-configure:
57 $(CP) $(STAGING_HOST_DIR)/usr/bin/comp_err \
58 ${WRKBUILD}/extra/
59 $(CP) $(STAGING_HOST_DIR)/usr/bin/comp_sql \
60 ${WRKBUILD}/scripts/
61 $(CP) $(STAGING_HOST_DIR)/usr/bin/gen_lex_hash \
62 ${WRKBUILD}/sql/
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