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 http
://nthill.free.fr
/openwrt
/sources
/$(PKG_NAME
)/
17 PKG_SOURCE_FILE
:= $(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
18 PKG_SOURCE_CAT
:= zcat
19 PKG_SOURCE_DIR
:= $(PKG_NAME
)-$(PKG_VERSION
)
20 PKG_BUILD_DIR
:= $(BUILD_DIR
)/$(PKG_SOURCE_DIR
)
21 PKG_IPK
:= $(PACKAGE_DIR
)/libmysqlclient_
$(PKG_VERSION
)-$(PKG_RELEASE
)_
$(ARCH
).ipk
24 $(DL_DIR
)/$(PKG_SOURCE_FILE
):
26 $(SCRIPT_DIR
)/download.pl
$(DL_DIR
) $(PKG_SOURCE_FILE
) $(PKG_MD5SUM
) $(PKG_SOURCE_SITE
)
28 $(PKG_BUILD_DIR
)/ipkg
/rules
: $(DL_DIR
)/$(PKG_SOURCE_FILE
)
29 mkdir
-p
$(TOOL_BUILD_DIR
)
30 rm -rf
$(PKG_BUILD_DIR
)
31 $(PKG_SOURCE_CAT
) $(DL_DIR
)/$(PKG_SOURCE_FILE
) |
tar -C
$(BUILD_DIR
) $(TAR_OPTIONS
) -
32 $(PATCH
) $(PKG_BUILD_DIR
) .
/patches
33 cp
-fpR .
/ipkg
$(PKG_BUILD_DIR
)/
34 chmod a
+x
$(PKG_BUILD_DIR
)/ipkg
/rules
35 touch
$(PKG_BUILD_DIR
)/ipkg
/rules
37 $(PKG_IPK
): $(PKG_BUILD_DIR
)/ipkg
/rules
38 cd
$(PKG_BUILD_DIR
); \
39 TOPDIR
="$(TOPDIR)" IPKG_RULES_INC
="$(TOPDIR)/rules.mk" \
40 INSTALL_DIR
="$(STAGING_DIR)" \
43 $(IPKG_STATE_DIR
)/info/libmysqlclient.list
: $(PKG_IPK
)
44 $(IPKG
) install $(PKG_IPK
)
46 source
: $(DL_DIR
)/$(PKG_SOURCE_FILE
)
47 prepare
: $(PKG_BUILD_DIR
)/ipkg
/rules
49 install: $(IPKG_STATE_DIR
)/info/libmysqlclient.list
52 -cd
$(PKG_BUILD_DIR
); \
53 TOPDIR
="$(TOPDIR)" IPKG_RULES_INC
="$(TOPDIR)/rules.mk" \
54 INSTALL_DIR
="$(STAGING_DIR)" \
56 rm -rf
$(PKG_BUILD_DIR
)