3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=464d6a49010cf2a6eb9ce59a264d4d47
10 PKG_SOURCE_URL
:=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
)
18 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
19 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
21 PKG_IPK
:=$(PACKAGE_DIR
)/$(PKG_NAME
)_
$(PKG_VERSION
)-$(PKG_RELEASE
)_
$(ARCH
).ipk
22 PKG_IPK_DIR
:=$(PKG_BUILD_DIR
)/ipkg
24 $(DL_DIR
)/$(PKG_SOURCE
):
25 $(SCRIPT_DIR
)/download.pl
$(DL_DIR
) $(PKG_SOURCE
) $(PKG_MD5SUM
) $(PKG_SOURCE_URL
)
27 $(PKG_BUILD_DIR
)/.unpacked
: $(DL_DIR
)/$(PKG_SOURCE
)
28 $(PKG_CAT
) $(DL_DIR
)/$(PKG_SOURCE
) |
tar -C
$(BUILD_DIR
) $(TAR_OPTIONS
) -
29 touch
$(PKG_BUILD_DIR
)/.unpacked
31 $(PKG_BUILD_DIR
)/.configured
: $(PKG_BUILD_DIR
)/.unpacked
32 (cd
$(PKG_BUILD_DIR
); rm -rf config.cache
; \
33 $(TARGET_CONFIGURE_OPTS
) \
34 CFLAGS
="$(TARGET_CFLAGS)" \
35 ac_cv_linux_vers
="2" \
37 --target
=$(GNU_TARGET_NAME
) \
38 --host
=$(GNU_TARGET_NAME
) \
39 --build
=$(GNU_HOST_NAME
) \
44 --libexecdir
=/usr
/lib \
46 --datadir=/usr
/share \
47 --localstatedir
=/var \
50 --with-terminfo-dirs
=/usr
/share
/terminfo \
51 --with-default-terminfo-dir
=/usr
/share
/terminfo \
54 --without-cxx-binding \
65 $(DISABLE_LARGEFILE
) \
67 touch
$(PKG_BUILD_DIR
)/.configured
69 $(PKG_BUILD_DIR
)/.built
: $(PKG_BUILD_DIR
)/.configured
70 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
71 $(TARGET_CONFIGURE_OPTS
) \
72 BUILD_CC
="$(TARGET_CC)" \
74 HOSTCCFLAGS
="\$$(CPPFLAGS)"
75 mkdir
-p
$(PKG_BUILD_DIR
)/terminfo
76 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
77 DESTDIR
="$(PKG_BUILD_DIR)/install" \
79 touch
$(PKG_BUILD_DIR
)/.built
81 $(STAGING_DIR
)/usr
/include/ncurses.h
: $(PKG_BUILD_DIR
)/.built
82 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
83 DESTDIR
="$(STAGING_DIR)" \
86 $(PKG_IPK
): $(PKG_BUILD_DIR
)/.built
87 $(SCRIPT_DIR
)/make-ipkg-dir.sh
$(PKG_IPK_DIR
) libncurses.control
$(PKG_VERSION
)-$(PKG_RELEASE
) $(ARCH
)
88 mkdir
-p
$(PKG_IPK_DIR
)/usr
/lib
89 cp
-a
$(PKG_BUILD_DIR
)/lib
/lib
*.so.
* $(PKG_IPK_DIR
)/usr
/lib
/
90 mkdir
-p
$(PKG_IPK_DIR
)/usr
/share
/terminfo
91 for f in a
/ansi d
/dumb l
/linux s
/screen v
/vt100 x
/xterm x
/xterm-color
; do \
92 mkdir
-p
$(PKG_IPK_DIR
)/usr
/share
/terminfo
/`dirname $${f}`; \
94 $(PKG_BUILD_DIR
)/install/usr
/share
/terminfo
/$${f} \
95 $(PKG_IPK_DIR
)/usr
/share
/terminfo
/$${f}; \
97 mkdir
-p
$(PACKAGE_DIR
)
98 $(IPKG_BUILD
) $(PKG_IPK_DIR
) $(PACKAGE_DIR
)
100 $(IPKG_STATE_DIR
)/info/$(PKG_NAME
).list
: $(PKG_IPK
)
101 $(IPKG
) install $(PKG_IPK
)
103 source
: $(DL_DIR
)/$(PKG_SOURCE
)
104 prepare
: $(PKG_BUILD_DIR
)/.unpacked
105 compile
: $(STAGING_DIR
)/usr
/include/ncurses.h
$(PKG_IPK
)
106 install: $(IPKG_STATE_DIR
)/info/$(PKG_NAME
).list
109 rm -rf
$(PKG_BUILD_DIR
)