Add libpthread package
[openwrt.git] / openwrt / package / ncurses / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME := ncurses
6 PKG_VERSION := 5.2
7 PKG_RELEASE := 5
8 PKG_MD5SUM := 464d6a49010cf2a6eb9ce59a264d4d47
9
10 PKG_SOURCE_SITE := ftp://ftp.gnu.org/pub/gnu/$(PKG_NAME) \
11 ftp://gatekeeper.dec.com/pub/GNU/$(PKG_NAME) \
12 ftp://ftp.uu.net/archive/systems/gnu/$(PKG_NAME) \
13 ftp://ftp.eu.uu.net/pub/gnu/$(PKG_NAME) \
14 ftp://ftp.funet.fi/pub/gnu/prep/$(PKG_NAME) \
15 ftp://ftp.leo.org/pub/comp/os/unix/gnu/$(PKG_NAME) \
16 ftp://ftp.digex.net/pub/gnu/$(PKG_NAME)
17 PKG_SOURCE_FILE := $(PKG_NAME)-$(PKG_VERSION).tar.gz
18 PKG_SOURCE_CAT := zcat
19 PKG_SOURCE_DIR := $(PKG_NAME)-$(PKG_VERSION)
20 PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_SOURCE_DIR)
21 PKG_IPK := $(PACKAGE_DIR)/lib$(PKG_NAME)_$(PKG_VERSION)-$(PKG_RELEASE)_$(ARCH).ipk
22
23 .NOTPARALLEL:
24
25 $(DL_DIR)/$(PKG_SOURCE_FILE):
26 mkdir -p $(DL_DIR)
27 $(SCRIPT_DIR)/download.pl $(DL_DIR) $(PKG_SOURCE_FILE) $(PKG_MD5SUM) $(PKG_SOURCE_SITE)
28
29 $(PKG_BUILD_DIR)/ipkg/rules: $(DL_DIR)/$(PKG_SOURCE_FILE)
30 mkdir -p $(TOOL_BUILD_DIR)
31 $(PKG_SOURCE_CAT) $(DL_DIR)/$(PKG_SOURCE_FILE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
32 # $(PATCH) $(PKG_BUILD_DIR) ./patches
33 cp -fpR ./ipkg $(PKG_BUILD_DIR)/
34 chmod a+x $(PKG_BUILD_DIR)/ipkg/rules
35
36 $(PKG_IPK): $(PKG_BUILD_DIR)/ipkg/rules
37 cd $(PKG_BUILD_DIR); \
38 TOPDIR="$(TOPDIR)" IPKG_RULES_INC="$(TOPDIR)/rules.mk" \
39 INSTALL_DIR="$(STAGING_DIR)" \
40 $(MAKE) -j1 -f ./ipkg/rules package
41
42 $(IPKG_STATE_DIR)/info/lib$(PKG_NAME).list: $(PKG_IPK)
43 $(IPKG) install $(PKG_IPK)
44
45 source: $(DL_DIR)/$(PKG_SOURCE_FILE)
46 prepare: $(PKG_BUILD_DIR)/ipkg/rules
47 compile: $(PKG_IPK)
48 install: $(IPKG_STATE_DIR)/info/lib$(PKG_NAME).list
49
50 clean:
51 -cd $(PKG_BUILD_DIR); \
52 TOPDIR="$(TOPDIR)" IPKG_RULES_INC="$(TOPDIR)/rules.mk" \
53 INSTALL_DIR="$(STAGING_DIR)" \
54 ./ipkg/rules clean
55 rm -rf $(PKG_BUILD_DIR)
56 rm -f $(PKG_IPK)
This page took 0.039448 seconds and 5 git commands to generate.