Magellan Linux

Contents of /trunk/extras/slang/slang-2.2.4-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 22092 - (show annotations) (download)
Mon Sep 1 14:11:31 2014 UTC (9 years, 9 months ago) by niro
File size: 1190 byte(s)
-fixed src_install
1 # $Id$
2
3 PNAME="slang"
4 PVER="2.2.4"
5 PBUILD="r1"
6
7 PCAT="sys-libs"
8
9 DESCRIPTION="Console display library used by most text viewer"
10 HOMEPAGE="http://www.jedsoft.org/slang/"
11
12 # ncurses for ncurses5-config to get terminfo directory
13 DEPEND=">= sys-libs/ncurses-5.9
14 >= sys-libs/readline-6.3
15 >= dev-libs/libpcre-8
16 >= media-libs/libpng-1.5
17 >= sys-libs/zlib-1.2.8"
18
19 SRCFILE="${PNAME}-${PVER}.tar.bz2"
20 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
21
22 sminclude multilib
23
24 SRC_URI=(
25 ftp://ftp.fu-berlin.de/pub/unix/misc/${PNAME}/latest/${SRCFILE}
26 mirror://${PNAME}/${SRCFILE}
27 mirror://${PNAME}/${PNAME}-2.2.4-slsh-libs.patch
28 mirror://${PNAME}/${PNAME}-2.2.4-memset.patch
29 )
30
31 UP2DATE="updatecmd ftp://ftp.fu-berlin.de/pub/unix/misc/${PNAME}/latest | highesttarball"
32
33 src_prepare()
34 {
35 munpack ${SRCFILE} || die
36
37 # fix build of slsh libs
38 mpatch ${PNAME}-2.2.4-slsh-libs.patch || die
39 # fix missing memset declaration for png
40 mpatch ${PNAME}-2.2.4-memset.patch || die
41 }
42
43 src_compile()
44 {
45 mconfigure --with-readline=gnu --with-pcre --with-png --with-zlib || die
46 mmake -j1 all || die
47 }
48
49 src_install()
50 {
51 make DESTDIR=${BINDIR} install || die
52 minstalldocs changes.txt COPYING NEWS README UPGRADE.txt || die
53 }