summaryrefslogtreecommitdiffstats
path: root/ncurses/Pkgfile
diff options
context:
space:
mode:
authortnut <tnut at nutyx dot com>2012-01-08 12:12:28 +0100
committertnut <tnut at nutyx dot com>2012-01-08 12:12:28 +0100
commit9291e062cb24bac5d7c7059d4dc64669c1917b33 (patch)
treeae6f7e4fb2769d6c53b214c5e0b4d862f1df98dc /ncurses/Pkgfile
parentc9972ec7f32bf9d37388e853fe9bf633e242d05a (diff)
downloadnutyx-pakxe-9291e062cb24bac5d7c7059d4dc64669c1917b33.tar.gz
nutyx-pakxe-9291e062cb24bac5d7c7059d4dc64669c1917b33.tar.bz2
nutyx-pakxe-9291e062cb24bac5d7c7059d4dc64669c1917b33.tar.xz
nutyx-pakxe-9291e062cb24bac5d7c7059d4dc64669c1917b33.zip
aaabasicfs 2011-3 et split des dépot base et extra en 2 git séparé
Diffstat (limited to 'ncurses/Pkgfile')
-rwxr-xr-xncurses/Pkgfile45
1 files changed, 45 insertions, 0 deletions
diff --git a/ncurses/Pkgfile b/ncurses/Pkgfile
new file mode 100755
index 000000000..e5aa8b92a
--- /dev/null
+++ b/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
+
+name=ncurses
+version=5.9
+release=1
+source=(http://ftp.gnu.org/gnu/$name/$name-$version.tar.gz)
+
+build() {
+cd $name-$version
+./configure --prefix=/usr \
+--mandir=/usr/share/man \
+--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
+}