summaryrefslogtreecommitdiffstats
path: root/base/ncurses/Pkgfile
diff options
context:
space:
mode:
authorThierry N <thierryn1 at hispeed dot ch>2009-08-07 13:32:09 +0200
committerThierry N <thierryn1 at hispeed dot ch>2009-08-07 13:32:09 +0200
commitef1b5262a1a0b026fc935db169bbb0aade8b9f3c (patch)
treef560a6731b8895a5a5cad1c197ab575e45884556 /base/ncurses/Pkgfile
parentd866e9bac5da771698a7072a537d79d6a1375ad0 (diff)
downloadnutyx-extra-ef1b5262a1a0b026fc935db169bbb0aade8b9f3c.tar.gz
nutyx-extra-ef1b5262a1a0b026fc935db169bbb0aade8b9f3c.tar.bz2
nutyx-extra-ef1b5262a1a0b026fc935db169bbb0aade8b9f3c.tar.xz
nutyx-extra-ef1b5262a1a0b026fc935db169bbb0aade8b9f3c.zip
Ajout de ncurses#5.7-1
Diffstat (limited to 'base/ncurses/Pkgfile')
-rwxr-xr-xbase/ncurses/Pkgfile45
1 files changed, 45 insertions, 0 deletions
diff --git a/base/ncurses/Pkgfile b/base/ncurses/Pkgfile
new file mode 100755
index 000000000..871ca5c08
--- /dev/null
+++ b/base/ncurses/Pkgfile
@@ -0,0 +1,45 @@
+# Description: Librairie pour l'émulation du Système V 4.0
+# URL: http://www.gnu.org/software/ncurses/ncurses.html
+# Maintainer: NuTyX core team
+# Packager: thierryn1 at hispeed dot ch
+# Depends on: pkg-config
+
+name=ncurses
+version=5.7
+release=1
+source=(http://ftp.gnu.org/gnu/$name/$name-$version.tar.gz)
+
+build() {
+cd $name-$version
+./configure --prefix=/usr \
+--with-shared --without-debug \
+--enable-widec --with-install-prefix=$PKG
+make
+make install
+
+chmod -v 644 $PKG/usr/lib/libncurses++w.a
+mkdir $PKG/lib
+mv -v $PKG/usr/lib/libncursesw.so.5* $PKG/lib
+ln -sfv ../../lib/libncursesw.so.5 $PKG/usr/lib/libncursesw.so
+for lib in curses ncurses form panel menu ; do \
+ rm -vf $PKG/usr/lib/lib${lib}.so ; \
+ echo "INPUT(-l${lib}w)" >$PKG/usr/lib/lib${lib}.so ; \
+ ln -sfv lib${lib}w.a $PKG/usr/lib/lib${lib}.a ; \
+done
+ln -sfv libncurses++w.a $PKG/usr/lib/libncurses++.a
+rm -vf $PKG/usr/lib/libcursesw.so
+echo "INPUT(-lncursesw)" >$PKG/usr/lib/libcursesw.so
+ln -sfv libncurses.so $PKG/usr/lib/libcurses.so
+ln -sfv libncursesw.a $PKG/usr/lib/libcursesw.a
+ln -sfv libncurses.a $PKG/usr/lib/libcurses.a
+
+
+make distclean
+./configure --prefix=/usr \
+ --with-install-prefix=$PKG \
+ --without-normal --without-debug \
+ --with-shared --without-cxx-binding
+make sources libs
+cp -av lib/lib*.so.5* $PKG/usr/lib
+rm $PKG/usr/lib/terminfo
+}