3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:= 5988e7aeb0ae4dac8d83561265984cc9
10 PKG_SOURCE_SITE
:= ftp
://ftp.rpm.org
/pub
/rpm
/dist/rpm-4.1.x
/
11 PKG_SOURCE_FILE
:= $(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
12 PKG_SOURCE_CAT
:= zcat
13 PKG_SOURCE_DIR
:= $(PKG_NAME
)-$(PKG_VERSION
)
14 PKG_BUILD_DIR
:= $(BUILD_DIR
)/$(PKG_SOURCE_DIR
)
15 PKG_IPK
:= $(PACKAGE_DIR
)/lib
$(PKG_NAME
)_
$(PKG_VERSION
)-$(PKG_RELEASE
)_
$(ARCH
).ipk
17 $(DL_DIR
)/$(PKG_SOURCE_FILE
):
19 $(SCRIPT_DIR
)/download.pl
$(DL_DIR
) $(PKG_SOURCE_FILE
) $(PKG_MD5SUM
) $(PKG_SOURCE_SITE
)
21 $(PKG_BUILD_DIR
)/ipkg
/rules
: $(DL_DIR
)/$(PKG_SOURCE_FILE
)
22 mkdir
-p
$(TOOL_BUILD_DIR
)
23 $(PKG_SOURCE_CAT
) $(DL_DIR
)/$(PKG_SOURCE_FILE
) |
tar -C
$(BUILD_DIR
) $(TAR_OPTIONS
) -
24 $(PATCH
) $(PKG_BUILD_DIR
) .
$(PKG_NAME
)-\
*.diff
25 chmod a
+x
$(PKG_BUILD_DIR
)/ipkg
/rules
27 $(PKG_IPK
): $(PKG_BUILD_DIR
)/ipkg
/rules
28 cd
$(PKG_BUILD_DIR
); \
31 IPKG_RULES_INC
="$(TOPDIR)/rules.mk" \
32 INSTALL_DIR
="$(STAGING_DIR)" \
35 $(IPKG_STATE_DIR
)/info/lib
$(PKG_NAME
).list
: $(PKG_IPK
)
36 $(IPKG
) install $(PKG_IPK
)
38 source
: $(DL_DIR
)/$(PKG_SOURCE_FILE
)
39 prepare
: $(PKG_BUILD_DIR
)/ipkg
/rules
41 install: $(IPKG_STATE_DIR
)/info/lib
$(PKG_NAME
).list
44 -cd
$(PKG_BUILD_DIR
); \
46 TOPDIR
="$(TOPDIR)" IPKG_RULES_INC
="$(TOPDIR)/rules.mk" \
47 INSTALL_DIR
="$(STAGING_DIR)" \
49 rm -rf
$(PKG_BUILD_DIR
)