3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=464d6a49010cf2a6eb9ce59a264d4d47
10 PKG_SOURCE_URL
:=@GNU
/ncurses
11 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
14 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
15 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
17 include $(TOPDIR
)/package
/rules.mk
19 $(eval
$(call PKG_template
,LIBNCURSES
,libncurses
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
21 $(PKG_BUILD_DIR
)/.configured
:
24 $(PKG_BUILD_DIR
)/.built
:
25 rm -rf
$(PKG_INSTALL_DIR
)
26 mkdir
-p
$(PKG_INSTALL_DIR
)
27 (cd
$(PKG_BUILD_DIR
); rm -rf config.
{cache
,status
} ; \
29 --target
=$(GNU_HOST_NAME
) \
30 --host
=$(GNU_HOST_NAME
) \
31 --build
=$(GNU_HOST_NAME
) \
37 --datadir=/usr
/share \
38 --includedir=/usr
/include \
39 --infodir=/usr
/share
/info \
41 --libexecdir
=/usr
/lib \
42 --localstatedir
=/var \
43 --mandir=/usr
/share
/man \
47 $(DISABLE_LARGEFILE
) \
54 --without-cxx-binding \
60 --with-terminfo-dirs
=/usr
/share
/terminfo \
61 --with-default-terminfo-dir
=/usr
/share
/terminfo \
63 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
64 DESTDIR
="$(PKG_INSTALL_DIR)" \
66 (cd
$(PKG_BUILD_DIR
); rm -rf config.
{cache
,status
} ; \
67 $(TARGET_CONFIGURE_OPTS
) \
68 CFLAGS
="$(TARGET_CFLAGS)" \
69 CPPFLAGS
="-I$(STAGING_DIR)/usr/include" \
70 LDFLAGS
="-L$(STAGING_DIR)/usr/lib" \
71 ac_cv_linux_vers
="2" \
73 --target
=$(GNU_TARGET_NAME
) \
74 --host
=$(GNU_TARGET_NAME
) \
75 --build
=$(GNU_HOST_NAME
) \
81 --datadir=/usr
/share \
82 --includedir=/usr
/include \
83 --infodir=/usr
/share
/info \
85 --libexecdir
=/usr
/lib \
86 --localstatedir
=/var \
87 --mandir=/usr
/share
/man \
91 $(DISABLE_LARGEFILE
) \
98 --without-cxx-binding \
104 --with-terminfo-dirs
=/usr
/share
/terminfo \
105 --with-default-terminfo-dir
=/usr
/share
/terminfo \
107 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
108 $(TARGET_CONFIGURE_OPTS
) \
109 BUILD_CC
="$(TARGET_CC)" \
111 HOSTCCFLAGS
="\$$(CPPFLAGS)" \
112 DESTDIR
="$(PKG_INSTALL_DIR)" \
113 libs
install.libs
install.data
117 install -d
-m0755
$(IDIR_LIBNCURSES
)/usr
/lib
118 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/lib
/lib
{ncurses
,panel
,menu
}*.so.
* $(IDIR_LIBNCURSES
)/usr
/lib
/
119 install -d
-m0755
$(IDIR_LIBNCURSES
)/usr
/share
/terminfo
120 for f in a
/ansi d
/dumb l
/linux r
/rxvt s
/screen v
/vt100 v
/vt102 x
/xterm x
/xterm-color
; do \
121 install -d
-m0755
$(IDIR_LIBNCURSES
)/usr
/share
/terminfo
/`dirname $${f}`; \
122 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/share
/terminfo
/$${f} \
123 $(IDIR_LIBNCURSES
)/usr
/share
/terminfo
/$${f}; \
125 $(RSTRIP
) $(IDIR_LIBNCURSES
)
126 $(IPKG_BUILD
) $(IDIR_LIBNCURSES
) $(PACKAGE_DIR
)
128 $(STAGING_DIR
)/usr
/lib
/libncurses.so
: $(PKG_BUILD_DIR
)/.built
129 mkdir
-p
$(STAGING_DIR
)/usr
/include
130 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/include/curses.h
$(STAGING_DIR
)/usr
/include/
131 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/include/{ncurses
,panel
}.h
$(STAGING_DIR
)/usr
/include/
132 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/include/panel.h
$(STAGING_DIR
)/usr
/include/
133 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/include/term
{,cap
}.h
$(STAGING_DIR
)/usr
/include/
134 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/include/unctrl.h
$(STAGING_DIR
)/usr
/include/
135 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/include/menu.h
$(STAGING_DIR
)/usr
/include/
136 mkdir
-p
$(STAGING_DIR
)/usr
/lib
137 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/lib
/libcurses.so
$(STAGING_DIR
)/usr
/lib
/
138 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/lib
/lib
{ncurses
,panel
,menu
}.
{a
,so
*} $(STAGING_DIR
)/usr
/lib
/
141 install-dev
: $(STAGING_DIR
)/usr
/lib
/libncurses.so
145 $(STAGING_DIR
)/usr
/include/curses.h \
146 $(STAGING_DIR
)/usr
/include/{ncurses
,panel
}.h \
147 $(STAGING_DIR
)/usr
/include/menu.h \
148 $(STAGING_DIR
)/usr
/include/panel.h \
149 $(STAGING_DIR
)/usr
/include/term
{,cap
}.h \
150 $(STAGING_DIR
)/usr
/include/unctrl.h \
151 $(STAGING_DIR
)/usr
/lib
/libcurses.so \
152 $(STAGING_DIR
)/usr
/lib
/lib
{ncurses
,panel
}.
{a
,so
*} \
154 compile-targets
: install-dev
155 clean-targets
: uninstall-dev