Changeset 7cff781 in freewrt


Ignore:
Timestamp:
Jan 6, 2007, 6:13:23 PM (19 years ago)
Author:
Thorsten Glaser <tg@…>
Children:
d35ab58
Parents:
f9b694f9
Message:

update and convert libncurses: rewritten from scratch ;)

git-svn-id: svn://www.freewrt.org/branches/common-adk@1444 afb5a338-a214-0410-bd46-81f09a774fd1

Location:
package/ncurses
Files:
2 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • package/ncurses/Makefile

    rf9b694f9 r7cff781  
    55# or at http://www.freewrt.org/licence for details.
    66
    7 include $(TOPDIR)/rules.mk
     7include ${TOPDIR}/rules.mk
    88
    99PKG_NAME:=              ncurses
    10 PKG_VERSION:=           5.2
    11 PKG_RELEASE:=           10
    12 PKG_MD5SUM:=            464d6a49010cf2a6eb9ce59a264d4d47
     10PKG_VERSION:=           5.6
     11PKG_RELEASE:=           1
     12PKG_MD5SUM:=            b6593abe1089d6aab1551c105c9300e3
     13PKG_SOURCE_URL:=        @GNU/ncurses
    1314
    14 PKG_SOURCE_URL:=        @GNU/ncurses
    15 PKG_SOURCE:=            $(PKG_NAME)-$(PKG_VERSION).tar.gz
     15include ${TOPDIR}/mk/package.mk
    1616
    17 include $(TOPDIR)/mk/package.mk
     17$(eval $(call PKG_template,LIBNCURSES,libncurses,${PKG_VERSION}-${PKG_RELEASE},${ARCH}))
    1818
    19 $(eval $(call PKG_template,LIBNCURSES,libncurses,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
     19CONFIGURE_STYLE=        gnu
     20CONFIGURE_ENV+=         ac_cv_linux_vers=2
     21CONFIGURE_ARGS+=        --without-cxx \
     22                        --without-cxx-binding \
     23                        --without-ada \
     24                        --with-progs \
     25                        --with-shared \
     26                        --with-normal \
     27                        --without-debug \
     28                        --without-profile \
     29                        --without-gpm \
     30                        --disable-rpath \
     31                        --enable-overwrite \
     32                        --with-terminfo-dirs=/usr/share/terminfo \
     33                        --with-default-terminfo-dir=/usr/share/terminfo \
     34                        --disable-big-core \
     35                        --disable-home-terminfo \
     36                        --disable-largefile \
     37                        --without-rcs-ids \
     38                        --enable-const \
     39                        --enable-echo
     40BUILD_STYLE=            auto
     41INSTALL_STYLE=          auto
    2042
    21 $(WRKBUILD)/.configured:
    22         touch $@
    23 
    24 $(WRKBUILD)/.built:
    25         (cd $(WRKBUILD); rm -rf config.{cache,status} ; \
    26                 ./configure \
    27                 --target=$(GNU_TARGET_NAME) \
    28                 --host=$(GNU_TARGET_NAME) \
    29                 --build=$(GNU_HOST_NAME) \
    30                 --program-prefix="" \
    31                 --program-suffix="" \
    32                 --prefix=/usr \
    33                 --exec-prefix=/usr \
    34                 --bindir=/usr/bin \
    35                 --datadir=/usr/share \
    36                 --includedir=/usr/include \
    37                 --infodir=/usr/share/info \
    38                 --libdir=/usr/lib \
    39                 --libexecdir=/usr/lib \
    40                 --localstatedir=/var \
    41                 --mandir=/usr/share/man \
    42                 --sbindir=/usr/sbin \
    43                 --sysconfdir=/etc \
    44                 --disable-nls \
    45                 --enable-echo \
    46                 --enable-const \
    47                 --enable-overwrite \
    48                 --disable-rpath \
    49                 --without-ada \
    50                 --without-cxx \
    51                 --without-cxx-binding \
    52                 --without-debug \
    53                 --without-profile \
    54                 --with-progs \
    55                 --with-normal \
    56                 --without-shared \
    57                 --with-terminfo-dirs=/usr/share/terminfo \
    58                 --with-default-terminfo-dir=/usr/share/terminfo \
    59         );
    60         $(MAKE) -C $(WRKBUILD) \
    61                 DESTDIR="$(WRKINST)" \
    62                 libs install.progs
    63         (cd $(WRKBUILD); rm -rf config.{cache,status} ; \
    64                 $(TARGET_CONFIGURE_OPTS) \
    65                 CFLAGS="$(TARGET_CFLAGS)" \
    66                 CPPFLAGS="-I$(STAGING_DIR)/usr/include" \
    67                 LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
    68                 ac_cv_linux_vers="2" \
    69                 ./configure \
    70                 --target=$(GNU_TARGET_NAME) \
    71                 --host=$(GNU_TARGET_NAME) \
    72                 --build=$(GNU_HOST_NAME) \
    73                 --program-prefix="" \
    74                 --program-suffix="" \
    75                 --prefix=/usr \
    76                 --exec-prefix=/usr \
    77                 --bindir=/usr/bin \
    78                 --datadir=/usr/share \
    79                 --includedir=/usr/include \
    80                 --infodir=/usr/share/info \
    81                 --libdir=/usr/lib \
    82                 --libexecdir=/usr/lib \
    83                 --localstatedir=/var \
    84                 --mandir=/usr/share/man \
    85                 --sbindir=/usr/sbin \
    86                 --sysconfdir=/etc \
    87                 --disable-nls \
    88                 --enable-echo \
    89                 --enable-const \
    90                 --enable-overwrite \
    91                 --disable-rpath \
    92                 --without-ada \
    93                 --without-cxx \
    94                 --without-cxx-binding \
    95                 --without-debug \
    96                 --without-profile \
    97                 --without-progs \
    98                 --with-normal \
    99                 --with-shared \
    100                 --with-terminfo-dirs=/usr/share/terminfo \
    101                 --with-default-terminfo-dir=/usr/share/terminfo \
    102         );
    103         $(MAKE) -C $(WRKBUILD) \
    104                 $(TARGET_CONFIGURE_OPTS) \
    105                 BUILD_CC="$(TARGET_CC)" \
    106                 HOSTCC="$(HOSTCC)" \
    107                 HOSTCCFLAGS="\$$(CPPFLAGS)" \
    108                 DESTDIR="$(WRKINST)" \
    109                 libs install.libs install.data
    110         touch $@
    111 
    112 $(IPKG_LIBNCURSES):
    113         $(INSTALL_DIR) $(IDIR_LIBNCURSES)/usr/lib
    114         $(INSTALL_DIR) $(IDIR_LIBNCURSES)/usr/share/terminfo
    115         $(INSTALL_DATA) $(WRKINST)/usr/lib/libncurses*.so.* $(IDIR_LIBNCURSES)/usr/lib/
    116         $(INSTALL_DATA) $(WRKINST)/usr/lib/libpanel*.so.* $(IDIR_LIBNCURSES)/usr/lib/
    117         $(INSTALL_DATA) $(WRKINST)/usr/lib/libmenu*.so.* $(IDIR_LIBNCURSES)/usr/lib/
    118         for f in a/ansi d/dumb l/linux r/rxvt s/screen v/vt100 v/vt102 v/vt220 x/xterm x/xterm-color; do \
    119                 install -d -m0755 $(IDIR_LIBNCURSES)/usr/share/terminfo/`dirname $${f}`; \
    120                 $(INSTALL_DATA) $(WRKINST)/usr/share/terminfo/$${f} \
    121                         $(IDIR_LIBNCURSES)/usr/share/terminfo/$${f}; \
     43post-install:
     44        ${INSTALL_DIR} ${IDIR_LIBNCURSES}/usr/share/terminfo
     45        # libform is missing below!
     46        cd ${WRKINST}; pax -rw -pe usr/lib/lib{ncurses,panel,menu}.so.* \
     47            ${IDIR_LIBNCURSES}/
     48        for f in a/ansi d/dumb l/linux r/rxvt s/screen v/vt100 v/vt102 \
     49            v/vt220 w/wsvt25 x/xterm x/xterm-color x/xterm-xfree86; do \
     50                ${INSTALL_DIR} \
     51                    ${IDIR_LIBNCURSES}/usr/share/terminfo/$$(dirname $$f); \
     52                ${INSTALL_DATA} ${WRKINST}/usr/share/terminfo/$$f \
     53                    ${IDIR_LIBNCURSES}/usr/share/terminfo/$$f; \
    12254        done
    123         $(RSTRIP) $(IDIR_LIBNCURSES)
    124         $(IPKG_BUILD) $(IDIR_LIBNCURSES) $(PACKAGE_DIR)
    125 
    126 $(STAGING_DIR)/usr/lib/libncurses.so: $(WRKBUILD)/.built
    127         $(INSTALL_DIR) $(STAGING_DIR)/usr/lib
    128         $(INSTALL_DIR) $(STAGING_DIR)/usr/include
    129         $(INSTALL_DATA) $(WRKINST)/usr/include/curses.h $(STAGING_DIR)/usr/include/
    130         $(INSTALL_DATA) $(WRKINST)/usr/include/ncurses.h $(STAGING_DIR)/usr/include/
    131         $(INSTALL_DATA) $(WRKINST)/usr/include/panel.h $(STAGING_DIR)/usr/include/
    132         $(INSTALL_DATA) $(WRKINST)/usr/include/term.h $(STAGING_DIR)/usr/include/
    133         $(INSTALL_DATA) $(WRKINST)/usr/include/termcap.h $(STAGING_DIR)/usr/include/
    134         $(INSTALL_DATA) $(WRKINST)/usr/include/unctrl.h $(STAGING_DIR)/usr/include/
    135         $(INSTALL_DATA) $(WRKINST)/usr/include/menu.h $(STAGING_DIR)/usr/include/
    136         $(INSTALL_DATA) $(WRKINST)/usr/lib/libcurses.so $(STAGING_DIR)/usr/lib/
    137         $(INSTALL_DATA) $(WRKINST)/usr/lib/libncurses.a $(STAGING_DIR)/usr/lib/
    138         $(INSTALL_DATA) $(WRKINST)/usr/lib/libncurses.so* $(STAGING_DIR)/usr/lib/
    139         $(INSTALL_DATA) $(WRKINST)/usr/lib/libpanel.a $(STAGING_DIR)/usr/lib/
    140         $(INSTALL_DATA) $(WRKINST)/usr/lib/libpanel.so* $(STAGING_DIR)/usr/lib/
    141         $(INSTALL_DATA) $(WRKINST)/usr/lib/libmenu.a $(STAGING_DIR)/usr/lib/
    142         $(INSTALL_DATA) $(WRKINST)/usr/lib/libmenu.so* $(STAGING_DIR)/usr/lib/
    143 
    144 compile-targets: install-dev
    145 clean-targets: uninstall-dev
    146 
    147 install-dev: $(STAGING_DIR)/usr/lib/libncurses.so
    148 
    149 uninstall-dev:
    150         rm -rf \
    151                 $(STAGING_DIR)/usr/include/curses.h \
    152                 $(STAGING_DIR)/usr/include/ncurses.h \
    153                 $(STAGING_DIR)/usr/include/panel.h \
    154                 $(STAGING_DIR)/usr/include/menu.h \
    155                 $(STAGING_DIR)/usr/include/panel.h \
    156                 $(STAGING_DIR)/usr/include/term.h \
    157                 $(STAGING_DIR)/usr/include/termcap.h \
    158                 $(STAGING_DIR)/usr/include/unctrl.h \
    159                 $(STAGING_DIR)/usr/lib/libcurses.so \
    160                 $(STAGING_DIR)/usr/lib/libncurses,panel.a \
    161                 $(STAGING_DIR)/usr/lib/libncurses.so* \
    162                 $(STAGING_DIR)/usr/lib/libpanel.a \
    163                 $(STAGING_DIR)/usr/lib/libpanel.so* \
    164                 $(STAGING_DIR)/usr/lib/libmenu.a \
    165                 $(STAGING_DIR)/usr/lib/libmenu.so*
    16655
    16756include ${TOPDIR}/mk/pkg-bottom.mk
Note: See TracChangeset for help on using the changeset viewer.