3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:= bd9195d086566f56634c0bcbbbcbebea
10 PKG_SOURCE_SITE
:= @SF
/haserl
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
)/$(PKG_NAME
)_
$(PKG_VERSION
)-$(PKG_RELEASE
)_
$(ARCH
).ipk
18 $(DL_DIR
)/$(PKG_SOURCE_FILE
):
20 $(SCRIPT_DIR
)/download.pl
$(DL_DIR
) $(PKG_SOURCE_FILE
) $(PKG_MD5SUM
) $(PKG_SOURCE_SITE
)
22 $(PKG_BUILD_DIR
)/ipkg
/rules
: $(DL_DIR
)/$(PKG_SOURCE_FILE
)
23 mkdir
-p
$(TOOL_BUILD_DIR
)
24 $(PKG_SOURCE_CAT
) $(DL_DIR
)/$(PKG_SOURCE_FILE
) |
tar -C
$(BUILD_DIR
) $(TAR_OPTIONS
) -
25 # $(PATCH) $(PKG_BUILD_DIR) ./patches
26 cp
-fpR .
/ipkg
$(PKG_BUILD_DIR
)/
27 chmod a
+x
$(PKG_BUILD_DIR
)/ipkg
/rules
29 $(PKG_IPK
): $(PKG_BUILD_DIR
)/ipkg
/rules
30 cd
$(PKG_BUILD_DIR
); \
31 TOPDIR
="$(TOPDIR)" IPKG_RULES_INC
="$(TOPDIR)/rules.mk" \
34 $(IPKG_STATE_DIR
)/info/$(PKG_NAME
).list
: $(PKG_IPK
)
35 $(IPKG
) install $(PKG_IPK
)
37 source
: $(DL_DIR
)/$(PKG_SOURCE_FILE
)
38 prepare
: $(PKG_BUILD_DIR
)/ipkg
/rules
40 install: $(IPKG_STATE_DIR
)/info/$(PKG_NAME
).list
43 rm -rf
$(PKG_BUILD_DIR
)