3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=408d3001ed715ddc90009c247e548638
11 http
://mysql.he.net
/Downloads
/MySQL-4.0
/ \
12 http
://www.linorg.usp.br
/mysql
/Downloads
/MySQL-4.0
/ \
13 http
://mysql.planetmirror.com
/Downloads
/MySQL-4.0
/ \
14 http
://mysql.holywar.net
/Downloads
/MySQL-4.0
/ \
15 http
://netmirror.org
/mirror
/mysql.com
/Downloads
/MySQL-4.0
/
16 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
19 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
20 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
22 include $(TOPDIR
)/package
/rules.mk
24 $(eval
$(call PKG_template
,LIBMYSQLCLIENT
,libmysqlclient
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
26 $(PKG_BUILD_DIR
)/.configured
:
27 (cd
$(PKG_BUILD_DIR
); rm -rf config.
{cache
,status
} ; \
33 $(TARGET_CONFIGURE_OPTS
) \
34 CPPFLAGS
="-I$(STAGING_DIR)/usr/include" \
35 LDFLAGS
="-L$(STAGING_DIR)/usr/lib" \
36 OPTIMIZE_CFLAGS
="$(TARGET_CFLAGS)" \
37 OPTIMIZE_CXXFLAGS
="$(TARGET_CFLAGS)" \
40 ac_cv_sys_restartable_syscalls
=yes \
41 ac_cv_conv_longlong_to_float
=yes \
42 mysql_cv_compress
=yes \
43 mysql_cv_gethostname_style
=glibc2 \
45 --target
=$(GNU_TARGET_NAME
) \
46 --host
=$(GNU_TARGET_NAME
) \
47 --build
=$(GNU_HOST_NAME
) \
53 --datadir=/usr
/share \
54 --includedir=/usr
/include \
55 --infodir=/usr
/share
/info \
57 --libexecdir
=/usr
/lib \
58 --localstatedir
=/var \
59 --mandir=/usr
/share
/man \
62 $(DISABLE_LARGEFILE
) \
69 --with-unix-socket-path
=/tmp \
74 --without-embedded-server \
75 --without-query-cache \
85 $(PKG_BUILD_DIR
)/.built
:
86 rm -rf
$(PKG_INSTALL_DIR
)
87 mkdir
-p
$(PKG_INSTALL_DIR
)
88 $(MAKE
) -C
"$(PKG_BUILD_DIR)/libmysql" \
90 LINK
="$(HOSTCC) -o conf_to_src -lc" \
93 $(MAKE
) -C
"$(PKG_BUILD_DIR)" \
94 SUBDIRS
="include libmysql" \
95 DESTDIR
="$(PKG_INSTALL_DIR)" \
97 $(MAKE
) -C
"$(PKG_BUILD_DIR)" \
99 DESTDIR
="$(PKG_INSTALL_DIR)" \
100 bin_SCRIPTS
="mysql_config" \
104 $(IPKG_LIBMYSQLCLIENT
):
105 install -d
-m0755
$(IDIR_LIBMYSQLCLIENT
)/usr
/lib
106 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/lib
/mysql
/libmysqlclient.so.
* $(IDIR_LIBMYSQLCLIENT
)/usr
/lib
/
107 $(RSTRIP
) $(IDIR_LIBMYSQLCLIENT
)
108 $(IPKG_BUILD
) $(IDIR_LIBMYSQLCLIENT
) $(PACKAGE_DIR
)
110 $(STAGING_DIR
)/usr
/lib
/mysql
/libmysqlclient.so
: $(PKG_BUILD_DIR
)/.built
111 mkdir
-p
$(STAGING_DIR
)/usr
/bin
112 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/bin
/mysql_config
$(STAGING_DIR
)/usr
/bin
/
113 mkdir
-p
$(STAGING_DIR
)/usr
/include
114 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/include/mysql
$(STAGING_DIR
)/usr
/include/
115 mkdir
-p
$(STAGING_DIR
)/usr
/lib
116 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/lib
/mysql
$(STAGING_DIR
)/usr
/lib
/
117 rm -f
$(STAGING_DIR
)/usr
/lib
/mysql
/libmysqlclient.la
120 install-dev
: $(STAGING_DIR
)/usr
/lib
/mysql
/libmysqlclient.so
124 $(STAGING_DIR
)/usr
/bin
/mysql_config \
125 $(STAGING_DIR
)/usr
/include/mysql \
126 $(STAGING_DIR
)/usr
/lib
/mysql \