3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=464d6a49010cf2a6eb9ce59a264d4d47
11 ftp
://ftp.gnu.org
/pub
/gnu
/$(PKG_NAME
) \
12 ftp
://gatekeeper.dec.com
/pub
/GNU
/$(PKG_NAME
) \
13 ftp
://ftp.uu.net
/archive
/systems
/gnu
/$(PKG_NAME
) \
14 ftp
://ftp.eu.uu.net
/pub
/gnu
/$(PKG_NAME
) \
15 ftp
://ftp.funet.fi
/pub
/gnu
/prep
/$(PKG_NAME
) \
16 ftp
://ftp.leo.org
/pub
/comp
/os
/unix
/gnu
/$(PKG_NAME
) \
17 ftp
://ftp.digex.net
/pub
/gnu
/$(PKG_NAME
)
18 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
21 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
22 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
24 include $(TOPDIR
)/package
/rules.mk
26 $(eval
$(call PKG_template
,LIBNCURSES
,libncurses
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
28 $(PKG_BUILD_DIR
)/.built
: $(PKG_BUILD_DIR
)/.prepared
29 rm -rf
$(PKG_INSTALL_DIR
)
30 mkdir
-p
$(PKG_INSTALL_DIR
)
31 (cd
$(PKG_BUILD_DIR
); rm -rf config.
{cache
,status
} ; \
33 --target
=$(GNU_HOST_NAME
) \
34 --host
=$(GNU_HOST_NAME
) \
35 --build
=$(GNU_HOST_NAME
) \
41 --datadir=/usr
/share \
42 --includedir=/usr
/include \
43 --infodir=/usr
/share
/info \
45 --libexecdir
=/usr
/lib \
46 --localstatedir
=/var \
47 --mandir=/usr
/share
/man \
51 $(DISABLE_LARGEFILE
) \
58 --without-cxx-binding \
64 --with-terminfo-dirs
=/usr
/share
/terminfo \
65 --with-default-terminfo-dir
=/usr
/share
/terminfo \
67 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
68 DESTDIR
="$(PKG_INSTALL_DIR)" \
70 (cd
$(PKG_BUILD_DIR
); rm -rf config.
{cache
,status
} ; \
71 $(TARGET_CONFIGURE_OPTS
) \
72 CFLAGS
="$(TARGET_CFLAGS)" \
73 CPPFLAGS
="-I$(STAGING_DIR)/usr/include" \
74 LDFLAGS
="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
75 ac_cv_linux_vers
="2" \
77 --target
=$(GNU_TARGET_NAME
) \
78 --host
=$(GNU_TARGET_NAME
) \
79 --build
=$(GNU_HOST_NAME
) \
85 --datadir=/usr
/share \
86 --includedir=/usr
/include \
87 --infodir=/usr
/share
/info \
89 --libexecdir
=/usr
/lib \
90 --localstatedir
=/var \
91 --mandir=/usr
/share
/man \
95 $(DISABLE_LARGEFILE
) \
102 --without-cxx-binding \
108 --with-terminfo-dirs
=/usr
/share
/terminfo \
109 --with-default-terminfo-dir
=/usr
/share
/terminfo \
111 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
112 $(TARGET_CONFIGURE_OPTS
) \
113 BUILD_CC
="$(TARGET_CC)" \
115 HOSTCCFLAGS
="\$$(CPPFLAGS)" \
116 DESTDIR
="$(PKG_INSTALL_DIR)" \
117 libs
install.libs
install.data
121 install -d
-m0755
$(IDIR_LIBNCURSES
)/usr
/lib
122 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/lib
/lib
{ncurses
,panel
}*.so.
* $(IDIR_LIBNCURSES
)/usr
/lib
/
123 install -d
-m0755
$(IDIR_LIBNCURSES
)/usr
/share
/terminfo
124 for f in a
/ansi d
/dumb l
/linux s
/screen v
/vt100 v
/vt102 x
/xterm x
/xterm-color
; do \
125 install -d
-m0755
$(IDIR_LIBNCURSES
)/usr
/share
/terminfo
/`dirname $${f}`; \
126 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/share
/terminfo
/$${f} \
127 $(IDIR_LIBNCURSES
)/usr
/share
/terminfo
/$${f}; \
129 $(RSTRIP
) $(IDIR_LIBNCURSES
)
130 $(IPKG_BUILD
) $(IDIR_LIBNCURSES
) $(PACKAGE_DIR
)
132 $(STAGING_DIR
)/usr
/lib
/libncurses.so
: $(PKG_BUILD_DIR
)/.built
133 mkdir
-p
$(STAGING_DIR
)/usr
/include
134 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/include/curses.h
$(STAGING_DIR
)/usr
/include/
135 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/include/{ncurses
,panel
}.h
$(STAGING_DIR
)/usr
/include/
136 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/include/panel.h
$(STAGING_DIR
)/usr
/include/
137 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/include/term
{,cap
}.h
$(STAGING_DIR
)/usr
/include/
138 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/include/unctrl.h
$(STAGING_DIR
)/usr
/include/
139 mkdir
-p
$(STAGING_DIR
)/usr
/lib
140 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/lib
/libcurses.so
$(STAGING_DIR
)/usr
/lib
/
141 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/lib
/lib
{ncurses
,panel
}.
{a
,so
*} $(STAGING_DIR
)/usr
/lib
/
144 install-dev
: $(STAGING_DIR
)/usr
/lib
/libncurses.so
148 $(STAGING_DIR
)/usr
/include/curses.h \
149 $(STAGING_DIR
)/usr
/include/{ncurses
,panel
}.h \
150 $(STAGING_DIR
)/usr
/include/panel.h \
151 $(STAGING_DIR
)/usr
/include/term
{,cap
}.h \
152 $(STAGING_DIR
)/usr
/include/unctrl.h \
153 $(STAGING_DIR
)/usr
/lib
/libcurses.so \
154 $(STAGING_DIR
)/usr
/lib
/lib
{ncurses
,panel
}.
{a
,so
*} \