2005-03-21 08:12:49 +00:00
|
|
|
# $Id$
|
|
|
|
|
2005-03-08 04:26:43 +00:00
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
2005-04-10 22:10:02 +00:00
|
|
|
PKG_NAME:=ncurses
|
|
|
|
PKG_VERSION:=5.2
|
|
|
|
PKG_RELEASE:=6
|
|
|
|
PKG_MD5SUM:=464d6a49010cf2a6eb9ce59a264d4d47
|
2005-03-21 08:12:49 +00:00
|
|
|
|
2005-04-14 06:11:36 +00:00
|
|
|
PKG_SOURCE_URL:=\
|
|
|
|
ftp://ftp.gnu.org/pub/gnu/$(PKG_NAME) \
|
2005-04-10 22:10:02 +00:00
|
|
|
ftp://gatekeeper.dec.com/pub/GNU/$(PKG_NAME) \
|
2005-03-20 01:26:06 +00:00
|
|
|
ftp://ftp.uu.net/archive/systems/gnu/$(PKG_NAME) \
|
|
|
|
ftp://ftp.eu.uu.net/pub/gnu/$(PKG_NAME) \
|
|
|
|
ftp://ftp.funet.fi/pub/gnu/prep/$(PKG_NAME) \
|
|
|
|
ftp://ftp.leo.org/pub/comp/os/unix/gnu/$(PKG_NAME) \
|
2005-05-18 13:25:18 +00:00
|
|
|
ftp://ftp.digex.net/pub/gnu/$(PKG_NAME)
|
2005-04-10 22:10:02 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_CAT:=zcat
|
2005-04-14 06:11:36 +00:00
|
|
|
|
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
2005-05-18 13:25:18 +00:00
|
|
|
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
|
2005-04-14 06:11:36 +00:00
|
|
|
|
2005-05-18 13:25:18 +00:00
|
|
|
include $(TOPDIR)/package/rules.mk
|
2005-04-10 22:10:02 +00:00
|
|
|
|
2005-05-18 13:25:18 +00:00
|
|
|
$(eval $(call PKG_template,LIBNCURSES,libncurses,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
|
2005-04-10 22:10:02 +00:00
|
|
|
|
2005-07-11 20:26:57 +00:00
|
|
|
$(PKG_BUILD_DIR)/.built: $(PKG_BUILD_DIR)/.prepared
|
|
|
|
rm -rf $(PKG_INSTALL_DIR)
|
|
|
|
mkdir -p $(PKG_INSTALL_DIR)
|
|
|
|
(cd $(PKG_BUILD_DIR); rm -rf config.{cache,status} ; \
|
|
|
|
./configure \
|
|
|
|
--target=$(GNU_HOST_NAME) \
|
|
|
|
--host=$(GNU_HOST_NAME) \
|
|
|
|
--build=$(GNU_HOST_NAME) \
|
|
|
|
--program-prefix="" \
|
|
|
|
--program-suffix="" \
|
|
|
|
--prefix=/usr \
|
|
|
|
--exec-prefix=/usr \
|
|
|
|
--bindir=/usr/bin \
|
|
|
|
--datadir=/usr/share \
|
|
|
|
--includedir=/usr/include \
|
|
|
|
--infodir=/usr/share/info \
|
|
|
|
--libdir=/usr/lib \
|
|
|
|
--libexecdir=/usr/lib \
|
|
|
|
--localstatedir=/var \
|
|
|
|
--mandir=/usr/share/man \
|
|
|
|
--sbindir=/usr/sbin \
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
$(DISABLE_NLS) \
|
|
|
|
$(DISABLE_LARGEFILE) \
|
|
|
|
--enable-echo \
|
|
|
|
--enable-const \
|
|
|
|
--enable-overwrite \
|
|
|
|
--disable-rpath \
|
|
|
|
--without-ada \
|
|
|
|
--without-cxx \
|
|
|
|
--without-cxx-binding \
|
|
|
|
--without-debug \
|
|
|
|
--without-profile \
|
|
|
|
--with-progs \
|
|
|
|
--with-normal \
|
|
|
|
--without-shared \
|
|
|
|
--with-terminfo-dirs=/usr/share/terminfo \
|
|
|
|
--with-default-terminfo-dir=/usr/share/terminfo \
|
|
|
|
);
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
|
|
|
DESTDIR="$(PKG_INSTALL_DIR)" \
|
|
|
|
libs install.progs
|
2005-05-18 13:25:18 +00:00
|
|
|
(cd $(PKG_BUILD_DIR); rm -rf config.{cache,status} ; \
|
2005-04-10 22:10:02 +00:00
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
|
|
|
CFLAGS="$(TARGET_CFLAGS)" \
|
2005-04-14 06:11:36 +00:00
|
|
|
CPPFLAGS="-I$(STAGING_DIR)/usr/include" \
|
2005-08-09 13:23:17 +00:00
|
|
|
LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
|
2005-04-10 22:10:02 +00:00
|
|
|
ac_cv_linux_vers="2" \
|
|
|
|
./configure \
|
|
|
|
--target=$(GNU_TARGET_NAME) \
|
|
|
|
--host=$(GNU_TARGET_NAME) \
|
|
|
|
--build=$(GNU_HOST_NAME) \
|
2005-04-14 06:11:36 +00:00
|
|
|
--program-prefix="" \
|
|
|
|
--program-suffix="" \
|
2005-04-10 22:10:02 +00:00
|
|
|
--prefix=/usr \
|
|
|
|
--exec-prefix=/usr \
|
|
|
|
--bindir=/usr/bin \
|
|
|
|
--datadir=/usr/share \
|
2005-04-14 06:11:36 +00:00
|
|
|
--includedir=/usr/include \
|
|
|
|
--infodir=/usr/share/info \
|
|
|
|
--libdir=/usr/lib \
|
|
|
|
--libexecdir=/usr/lib \
|
2005-04-10 22:10:02 +00:00
|
|
|
--localstatedir=/var \
|
2005-04-14 06:11:36 +00:00
|
|
|
--mandir=/usr/share/man \
|
|
|
|
--sbindir=/usr/sbin \
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
$(DISABLE_NLS) \
|
|
|
|
$(DISABLE_LARGEFILE) \
|
2005-07-11 20:26:57 +00:00
|
|
|
--enable-echo \
|
|
|
|
--enable-const \
|
|
|
|
--enable-overwrite \
|
|
|
|
--disable-rpath \
|
2005-04-10 22:10:02 +00:00
|
|
|
--without-ada \
|
|
|
|
--without-cxx \
|
|
|
|
--without-cxx-binding \
|
|
|
|
--without-debug \
|
2005-07-11 20:26:57 +00:00
|
|
|
--without-profile \
|
|
|
|
--without-progs \
|
2005-04-10 22:10:02 +00:00
|
|
|
--with-normal \
|
2005-07-11 20:26:57 +00:00
|
|
|
--with-shared \
|
|
|
|
--with-terminfo-dirs=/usr/share/terminfo \
|
|
|
|
--with-default-terminfo-dir=/usr/share/terminfo \
|
2005-04-10 22:10:02 +00:00
|
|
|
);
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
|
|
|
BUILD_CC="$(TARGET_CC)" \
|
|
|
|
HOSTCC="$(HOSTCC)" \
|
2005-05-19 21:14:18 +00:00
|
|
|
HOSTCCFLAGS="\$$(CPPFLAGS)" \
|
2005-05-18 13:25:18 +00:00
|
|
|
DESTDIR="$(PKG_INSTALL_DIR)" \
|
2005-07-11 20:26:57 +00:00
|
|
|
libs install.libs install.data
|
2005-05-19 21:14:18 +00:00
|
|
|
touch $@
|
2005-07-11 20:26:57 +00:00
|
|
|
|
2005-05-18 13:25:18 +00:00
|
|
|
$(IPKG_LIBNCURSES):
|
|
|
|
install -d -m0755 $(IDIR_LIBNCURSES)/usr/lib
|
|
|
|
cp -fpR $(PKG_INSTALL_DIR)/usr/lib/lib{ncurses,panel}*.so.* $(IDIR_LIBNCURSES)/usr/lib/
|
|
|
|
install -d -m0755 $(IDIR_LIBNCURSES)/usr/share/terminfo
|
2005-05-05 09:48:52 +00:00
|
|
|
for f in a/ansi d/dumb l/linux s/screen v/vt100 v/vt102 x/xterm x/xterm-color; do \
|
2005-05-18 13:25:18 +00:00
|
|
|
install -d -m0755 $(IDIR_LIBNCURSES)/usr/share/terminfo/`dirname $${f}`; \
|
|
|
|
cp -fpR $(PKG_INSTALL_DIR)/usr/share/terminfo/$${f} \
|
2005-04-14 06:11:36 +00:00
|
|
|
$(IDIR_LIBNCURSES)/usr/share/terminfo/$${f}; \
|
2005-04-10 22:10:02 +00:00
|
|
|
done
|
2005-05-18 13:25:18 +00:00
|
|
|
$(RSTRIP) $(IDIR_LIBNCURSES)
|
2005-04-14 06:11:36 +00:00
|
|
|
$(IPKG_BUILD) $(IDIR_LIBNCURSES) $(PACKAGE_DIR)
|
2005-04-10 22:10:02 +00:00
|
|
|
|
2005-05-18 13:25:18 +00:00
|
|
|
$(STAGING_DIR)/usr/lib/libncurses.so: $(PKG_BUILD_DIR)/.built
|
|
|
|
mkdir -p $(STAGING_DIR)/usr/include
|
|
|
|
cp -fpR $(PKG_INSTALL_DIR)/usr/include/curses.h $(STAGING_DIR)/usr/include/
|
|
|
|
cp -fpR $(PKG_INSTALL_DIR)/usr/include/{ncurses,panel}.h $(STAGING_DIR)/usr/include/
|
|
|
|
cp -fpR $(PKG_INSTALL_DIR)/usr/include/panel.h $(STAGING_DIR)/usr/include/
|
|
|
|
cp -fpR $(PKG_INSTALL_DIR)/usr/include/term{,cap}.h $(STAGING_DIR)/usr/include/
|
|
|
|
cp -fpR $(PKG_INSTALL_DIR)/usr/include/unctrl.h $(STAGING_DIR)/usr/include/
|
|
|
|
mkdir -p $(STAGING_DIR)/usr/lib
|
|
|
|
cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libcurses.so $(STAGING_DIR)/usr/lib/
|
|
|
|
cp -fpR $(PKG_INSTALL_DIR)/usr/lib/lib{ncurses,panel}.{a,so*} $(STAGING_DIR)/usr/lib/
|
2005-05-24 00:46:13 +00:00
|
|
|
touch $@
|
2005-05-18 13:25:18 +00:00
|
|
|
|
|
|
|
install-dev: $(STAGING_DIR)/usr/lib/libncurses.so
|
|
|
|
|
|
|
|
uninstall-dev:
|
|
|
|
rm -rf \
|
2005-05-24 00:46:13 +00:00
|
|
|
$(STAGING_DIR)/usr/include/curses.h \
|
|
|
|
$(STAGING_DIR)/usr/include/{ncurses,panel}.h \
|
|
|
|
$(STAGING_DIR)/usr/include/panel.h \
|
|
|
|
$(STAGING_DIR)/usr/include/term{,cap}.h \
|
|
|
|
$(STAGING_DIR)/usr/include/unctrl.h \
|
|
|
|
$(STAGING_DIR)/usr/lib/libcurses.so \
|
|
|
|
$(STAGING_DIR)/usr/lib/lib{ncurses,panel}.{a,so*} \
|
2005-03-08 04:26:43 +00:00
|
|
|
|
2005-05-18 13:25:18 +00:00
|
|
|
compile: install-dev
|
|
|
|
clean: uninstall-dev
|
2005-03-08 04:26:43 +00:00
|
|
|
|