1 #############################################################
5 #############################################################
6 include $(TOPDIR
)/rules.mk
11 PKG_MD5SUM
:=9784cbee03529e6dab5fda683233dc32
12 PKG_SOURCE_URL
:=http
://world.maxina.de
/src
/
13 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
14 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)/src
16 PKG_IPK
:=$(PACKAGE_DIR
)/$(PKG_NAME
)_
$(PKG_VERSION
)-$(PKG_RELEASE
)_
$(ARCH
).ipk
17 PKG_IPK_DIR
:=$(PKG_BUILD_DIR
)/ipkg
19 $(DL_DIR
)/$(PKG_SOURCE
):
20 $(SCRIPT_DIR
)/download.pl
$(DL_DIR
) $(PKG_SOURCE
) $(PKG_MD5SUM
) $(PKG_SOURCE_URL
)
22 $(PKG_BUILD_DIR
)/.unpacked
: $(DL_DIR
)/$(PKG_SOURCE
)
23 $(PKG_CAT
) $(DL_DIR
)/$(PKG_SOURCE
) |
tar -C
$(BUILD_DIR
) $(TAR_OPTIONS
) -
24 touch
$(PKG_BUILD_DIR
)/.unpacked
26 $(PKG_BUILD_DIR
)/shatd
: $(PKG_BUILD_DIR
)/.unpacked
27 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
28 CC
=$(TARGET_CC
) LD
=$(TARGET_CROSS
)ld \
29 CFLAGS
="$(TARGET_CFLAGS) -Wall -I$(PKG_BUILD_DIR)/include/linux/include -I$(PKG_BUILD_DIR)/include -DVERSION=\\\"$(PKG_VERSION)\\\" -DDROP_NETBIOS"
31 $(PKG_IPK
): $(PKG_BUILD_DIR
)/shatd
32 $(SCRIPT_DIR
)/make-ipkg-dir.sh
$(PKG_IPK_DIR
) $(PKG_NAME
).control
$(PKG_VERSION
)-$(PKG_RELEASE
) $(ARCH
)
33 mkdir
-p
$(PKG_IPK_DIR
)/usr
/sbin
34 cp
$(PKG_BUILD_DIR
)/shatd
$(PKG_IPK_DIR
)/usr
/sbin
/
35 cp
$(PKG_BUILD_DIR
)/shatc
$(PKG_IPK_DIR
)/usr
/sbin
/
36 $(STRIP
) $(PKG_IPK_DIR
)/usr
/sbin
/*
37 mkdir
-p
$(PACKAGE_DIR
)
38 $(IPKG_BUILD
) $(PKG_IPK_DIR
) $(PACKAGE_DIR
)
40 $(IPKG_STATE_DIR
)/info/shat.list
: $(PKG_IPK
)
41 $(IPKG
) install $(PKG_IPK
)
43 source
: $(DL_DIR
)/$(PKG_SOURCE
)
44 prepare
: $(PKG_BUILD_DIR
)/.unpacked
46 install: $(IPKG_STATE_DIR
)/info/shat.list
49 rm -rf
$(PKG_BUILD_DIR
)