1 include $(TOPDIR
)/rules.mk
6 PKG_MD5SUM
:=51021a036acb92d2bda0c0c0483f9552
8 PKG_SOURCE_URL
:=http
://ftp.debian.org
/debian
/pool
/main
/b
/bwm
9 PKG_SOURCE
:=$(PKG_NAME
)_
$(PKG_VERSION
).orig.
tar.gz
10 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
).orig
12 PKG_IPK
:=$(PACKAGE_DIR
)/$(PKG_NAME
)_
$(PKG_VERSION
)-$(PKG_RELEASE
)_
$(ARCH
).ipk
13 PKG_IPK_DIR
:=$(PKG_BUILD_DIR
)/ipkg
15 $(DL_DIR
)/$(PKG_SOURCE
):
16 $(SCRIPT_DIR
)/download.pl
$(DL_DIR
) $(PKG_SOURCE
) $(PKG_MD5SUM
) $(PKG_SOURCE_URL
)
18 $(PKG_BUILD_DIR
)/.unpacked
: $(DL_DIR
)/$(PKG_SOURCE
)
19 $(PKG_CAT
) $(DL_DIR
)/$(PKG_SOURCE
) |
tar -C
$(BUILD_DIR
) $(TAR_OPTIONS
) -
20 touch
$(PKG_BUILD_DIR
)/.unpacked
22 $(PKG_BUILD_DIR
)/$(PKG_NAME
): $(PKG_BUILD_DIR
)/.unpacked
23 $(TARGET_CC
) $(TARGET_CFLAGS
) $(PKG_BUILD_DIR
)/bwm.c
-o
$(PKG_BUILD_DIR
)/bwm
25 $(PKG_IPK
): $(PKG_BUILD_DIR
)/$(PKG_NAME
)
26 $(SCRIPT_DIR
)/make-ipkg-dir.sh
$(PKG_IPK_DIR
) $(PKG_NAME
).control
$(PKG_VERSION
)-$(PKG_RELEASE
) $(ARCH
)
27 mkdir
-p
$(PKG_IPK_DIR
)/usr
/bin
28 install -m
755 $(PKG_BUILD_DIR
)/$(PKG_NAME
) $(PKG_IPK_DIR
)/usr
/bin
/
29 $(STRIP
) $(PKG_IPK_DIR
)/usr
/bin
/*
30 mkdir
-p
$(PACKAGE_DIR
)
31 $(IPKG_BUILD
) $(PKG_IPK_DIR
) $(PACKAGE_DIR
)
33 $(IPKG_STATE_DIR
)/info/$(PKG_NAME
).list
: $(PKG_IPK
)
34 $(IPKG
) install $(PKG_IPK
)
36 source
: $(DL_DIR
)/$(PKG_SOURCE
)
37 prepare
: $(PKG_BUILD_DIR
)/.unpacked
39 install: $(IPKG_STATE_DIR
)/info/$(PKG_NAME
).list
42 rm -rf
$(PKG_BUILD_DIR
)