X-Git-Url: http://gitweb/?a=blobdiff_plain;f=ncurses%2FPkgfile;h=346d0452a15850a4f38c2cdac11018fc5b839ee0;hb=a1fdc7de82098774326892ae815861149eb3d3bb;hp=5f86b1af9330c059352b71866937f0f1f01cb840;hpb=ba886cdd6f8ceacfea5f6ed054fd9db6c7b64c31;p=crossrootfs.git diff --git a/ncurses/Pkgfile b/ncurses/Pkgfile index 5f86b1a..346d045 100644 --- a/ncurses/Pkgfile +++ b/ncurses/Pkgfile @@ -5,39 +5,42 @@ # Depends on: name=ncurses -version=5.9 -release=1 +version=6.0 +release=4 source=(http://ftp.gnu.org/gnu/$name/$name-$version.tar.gz) build() { cd $name-$version - local OPTIONS="\ ---build=$CHOST \ ---host=$CTARGET \ ---with-install-prefix=$PKG \ ---prefix=/usr \ ---with-normal \ ---with-shared \ ---without-debug \ ---without-ada -" - - ./configure $OPTIONS + ./configure --build=$CHOST \ + --host=$CTARGET \ + --with-install-prefix=$PKG \ + --prefix=/usr \ + --mandir=/usr/share/man \ + --with-{normal,shared} \ + --without-{debug,ada,tests} \ + --enable-pc-files \ + --enable-widec \ + --disable-rpath \ + --disable-rpath-hack + make - make install - make distclean - - sed '/^BUILD_CCFLAGS/ s/-DHAVE_CONFIG_H/-DHAVE_CONFIG_H -D_GNU_SOURCE/' -i ncurses/Makefile.in - ./configure $OPTIONS --enable-widec - make - make install + make DESTDIR=$PKG install + + install -d $PKG/{lib,usr/include/ncursesw,usr/lib/pkgconfig} - mkdir $PKG/lib + # move library to /lib and create symlinks + mv $PKG/usr/lib/libncursesw.so.* $PKG/lib + ln -sf ../../lib/libncursesw.so.$version $PKG/usr/lib/libncursesw.so + ln -s libncursesw.so.$version $PKG/lib/libncurses.so.${version%%.*} - for i in w ''; do - mv $PKG/usr/lib/libncurses$i.so.* $PKG/lib - ln -sf libncurses$i.so $PKG/usr/lib/libcurses$i.so - ln -sf ../../lib/libncurses$i.so.$version $PKG/usr/lib/libncurses$i.so + # linker scripts and .pc files for non-wide ncurses + for LIB in ncurses form panel menu ; do + echo "INPUT(-l${LIB}w)" > $PKG/usr/lib/lib${LIB}.so + ln -s ${LIB}w.pc $PKG/usr/lib/pkgconfig/${LIB}.pc done + + # linker script for the curses library + echo "INPUT(-lncursesw)" > $PKG/usr/lib/libcursesw.so + ln -s libncurses.so $PKG/usr/lib/libcurses.so }