summaryrefslogtreecommitdiffstats
path: root/ncurses/Pkgfile
diff options
context:
space:
mode:
authorLukc <lukc@upyum.com>2010-09-04 12:39:43 +0000
committerLukc <lukc@upyum.com>2010-09-04 12:39:43 +0000
commitcc1ea6f5e84793cc6635ab1e9fe6cdcb487e5b44 (patch)
treec79be409129c9c2c740f037d2ba033099d6fa19e /ncurses/Pkgfile
parent548133f33b66c35315c111498f2ac3ce9e51b1b0 (diff)
downloadports-cc1ea6f5e84793cc6635ab1e9fe6cdcb487e5b44.tar.gz
ports-cc1ea6f5e84793cc6635ab1e9fe6cdcb487e5b44.tar.bz2
ports-cc1ea6f5e84793cc6635ab1e9fe6cdcb487e5b44.tar.xz
ports-cc1ea6f5e84793cc6635ab1e9fe6cdcb487e5b44.zip
NCurses port added.
Diffstat (limited to 'ncurses/Pkgfile')
-rw-r--r--ncurses/Pkgfile40
1 files changed, 40 insertions, 0 deletions
diff --git a/ncurses/Pkgfile b/ncurses/Pkgfile
new file mode 100644
index 0000000..d108164
--- /dev/null
+++ b/ncurses/Pkgfile
@@ -0,0 +1,40 @@
+description="A System V Release 4.0 curses emulation library."
+packager="Lukc (XMPP/SMTP: lukc AT upyum DOT com)"
+maintainer="Lukc (XMPP/SMTP: lukc AT upyum DOT com)"
+url=http://www.gnu.org/software/ncurses/ncurses.html
+depends=()
+
+name=ncurses
+version=5.7
+release=1
+
+includes=(gnu)
+gnu_extension=".tar.gz"
+
+configure_opts=(
+ --with-install-prefix=$PKG
+ --prefix=$prefix
+ --with-normal
+ --with-shared
+ --without-debug
+ --without-ada
+)
+
+build ()
+{
+ cd $name-$version;
+ ./configure ${configure_opts[@]};
+ make;
+ make DESTDIR=$PKG install;
+ make distclean;
+ ./configure ${configure_opts[@]} --enable-widec;
+ make;
+ make DESTDIR=$PKG install;
+ mkdir $PKG/lib;
+ 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.5 $PKG/usr/lib/libncurses$i.so \
+ && ln -sf ../../lib/libncurses$i.so.5 $PKG/usr/lib/libncurses$i.so.5;
+ done
+}