Contents of /trunk/core/ncurses/ncurses-5.7-r1.smage2
Parent Directory | Revision Log
Revision 303 -
(show annotations)
(download)
Mon Dec 22 10:15:51 2008 UTC (15 years, 5 months ago) by niro
File size: 1899 byte(s)
Mon Dec 22 10:15:51 2008 UTC (15 years, 5 months ago) by niro
File size: 1899 byte(s)
-fixed dependencies and parallel makes
1 | # $Header: /magellan-cvs/smage/ncurses/ncurses-5.6-r2.smage2,v 1.1 2008/02/08 13:28:07 niro Exp $ |
2 | |
3 | PNAME="ncurses" |
4 | PVER="5.7" |
5 | PBUILD="r1" |
6 | |
7 | PCATEGORIE="sys-libs" |
8 | STATE="unstable" |
9 | |
10 | DESCRIPTION="Linux console display library." |
11 | HOMEPAGE="http://www.gnu.org/software/ncurses/ncurses.html" |
12 | |
13 | DEPEND=">= virtual/glibc" |
14 | |
15 | SRCFILE="${PNAME}-${PVER}.tar.gz" |
16 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
17 | |
18 | sminclude mtools multilib |
19 | |
20 | SRC_URI=( |
21 | gnu://${PNAME}/${SRCFILE} |
22 | mirror://${PNAME}/${SRCFILE} |
23 | ) |
24 | |
25 | UP2DATE="updatecmd_gnu ${PNAME} gz" |
26 | |
27 | src_compile() |
28 | { |
29 | # -hashed-db needs Berkeley DB |
30 | mconfigure --with-shared --without-debug --without-hashed-db || die |
31 | # fix parallel make builds |
32 | mmake -j1 sources || die |
33 | mmake || die |
34 | } |
35 | |
36 | src_install() |
37 | { |
38 | # needed directories |
39 | minstalldir /$(mlibdir) || die |
40 | |
41 | minstall_destdir || die |
42 | |
43 | mchmod 755 /usr/$(mlibdir)/*.${PVER} || die |
44 | mchmod 644 /usr/$(mlibdir)/libncurses++.a || die |
45 | mv ${BINDIR}/usr/$(mlibdir)/libncurses.so.5* ${BINDIR}/$(mlibdir) || die |
46 | mlink ../../$(mlibdir)/libncurses.so.5 /usr/$(mlibdir)/libncurses.so || die |
47 | mlink libncurses.so /usr/$(mlibdir)/libcurses.so || die |
48 | |
49 | # move the -m32 libs also to the right place (multilib) |
50 | if [[ ${ARCH} = x86_64 ]] |
51 | then |
52 | minstalldir /lib || die |
53 | mchmod 755 /usr/lib/*.${PVER} || die |
54 | mchmod 644 /usr/lib/libncurses++.a || die |
55 | mv ${BINDIR}/usr/lib/libncurses.so.5* ${BINDIR}/lib || die |
56 | mlink ../../lib/libncurses.so.5 /usr/lib/libncurses.so || die |
57 | mlink libncurses.so /usr/lib/libcurses.so || die |
58 | fi |
59 | |
60 | # fixes a small man issue |
61 | if [ -e ${BINDIR}/usr/share/man/tack.1 ] |
62 | then |
63 | mv ${BINDIR}/usr/share/man/tack.1 \ |
64 | ${BINDIR}/usr/share/man/man1 || die |
65 | fi |
66 | |
67 | # fix to enable colors in the default xterm |
68 | mv ${BINDIR}/usr/share/terminfo/x/xterm \ |
69 | ${BINDIR}/usr/share/terminfo/x/xterm.orig || die |
70 | mlink xterm-color /usr/share/terminfo/x/xterm || die |
71 | |
72 | minstalldocs ANNOUNCE MANIFEST NEWS README* TO-DO || die |
73 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |