3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=30645001f4b97019677cad88d3811904
10 PKG_SOURCE_URL
:=http
://www.tcpdump.org
/release
11 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
12 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
14 PKG_IPK
:=$(PACKAGE_DIR
)/$(PKG_NAME
)_
$(PKG_VERSION
)-$(PKG_RELEASE
)_
$(ARCH
).ipk
15 PKG_IPK_DIR
:=$(PKG_BUILD_DIR
)/ipkg
17 $(DL_DIR
)/$(PKG_SOURCE
):
18 $(SCRIPT_DIR
)/download.pl
$(DL_DIR
) $(PKG_SOURCE
) $(PKG_MD5SUM
) $(PKG_SOURCE_URL
)
20 $(PKG_BUILD_DIR
)/.unpacked
: $(DL_DIR
)/$(PKG_SOURCE
)
21 $(PKG_CAT
) $(DL_DIR
)/$(PKG_SOURCE
) |
tar -C
$(BUILD_DIR
) $(TAR_OPTIONS
) -
22 touch
$(PKG_BUILD_DIR
)/.unpacked
24 $(PKG_BUILD_DIR
)/.configured
: $(PKG_BUILD_DIR
)/.unpacked
25 (cd
$(PKG_BUILD_DIR
); rm -rf config.cache
; \
26 ac_cv_linux_vers
=$(LINUX_VERSION
) \
27 BUILD_CC
=$(TARGET_CC
) HOSTCC
=$(HOSTCC
) \
28 $(TARGET_CONFIGURE_OPTS
) \
29 CFLAGS
="$(TARGET_CFLAGS)" \
31 --target
=$(GNU_TARGET_NAME
) \
32 --host
=$(GNU_TARGET_NAME
) \
33 --build
=$(GNU_HOST_NAME
) \
34 --with-build-cc
=$(HOSTCC
) \
35 --prefix=$(STAGING_DIR
) \
36 --libdir=$(STAGING_DIR
)/lib \
37 --includedir=$(STAGING_DIR
)/include \
39 touch
$(PKG_BUILD_DIR
)/.configured
41 $(PKG_BUILD_DIR
)/$(PKG_NAME
): $(PKG_BUILD_DIR
)/.configured
43 LDFLAGS
="-L$(STAGING_DIR)/usr/lib" \
45 INCLS
="-I. -I$(STAGING_DIR)/usr/include" \
48 $(PKG_IPK
): $(PKG_BUILD_DIR
)/$(PKG_NAME
)
49 $(SCRIPT_DIR
)/make-ipkg-dir.sh
$(PKG_IPK_DIR
) $(PKG_NAME
).control
$(PKG_VERSION
)-$(PKG_RELEASE
) $(ARCH
)
50 mkdir
-p
$(PKG_IPK_DIR
)/usr
/sbin
51 cp
$(PKG_BUILD_DIR
)/$(PKG_NAME
) $(PKG_IPK_DIR
)/usr
/sbin
/
52 $(STRIP
) $(PKG_IPK_DIR
)/usr
/sbin
/*
53 mkdir
-p
$(PACKAGE_DIR
)
54 $(IPKG_BUILD
) $(PKG_IPK_DIR
) $(PACKAGE_DIR
)
56 $(IPKG_STATE_DIR
)/info/$(PKG_NAME
).list
: $(PKG_IPK
)
57 $(IPKG
) install $(PKG_IPK
)
59 source
: $(DL_DIR
)/$(PKG_SOURCE
)
60 prepare
: $(PKG_BUILD_DIR
)/.unpacked
62 install: $(IPKG_STATE_DIR
)/info/$(PKG_NAME
).list
65 rm -rf
$(PKG_BUILD_DIR
)
This page took 0.054326 seconds and 5 git commands to generate.