Magellan Linux

Annotation of /smage/trunk/core/rxvt/rxvt-2.7.10-r7.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1986 - (hide annotations) (download)
Wed Nov 9 18:14:58 2011 UTC (12 years, 6 months ago) by niro
File size: 1888 byte(s)
auto added: ver bump to 2.7.10-r7
1 niro 1986 # $Id$
2    
3     PNAME="rxvt"
4     PVER="2.7.10"
5     PBUILD="r7"
6    
7     PCATEGORIE="x11-terms"
8    
9     DESCRIPTION="rxvt is a small extended virtual terminal emulator for X11."
10     HOMEPAGE="http://rxvt.sourceforge.net/"
11    
12     DEPEND=">= x11-libs/libX11-1.4
13     >= x11-libs/libXext-1.3
14     >= x11-libs/libXt-1"
15    
16     SDEPEND=">= x11-proto/xproto-7"
17    
18     SRCFILE="${PNAME}-${PVER}.tar.gz"
19     SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
20    
21     MCORE_ONLY_KEEP="usr/bin/rxvt usr/$(mlibdir)/*.so usr/$(mlibdir)/*.so.*"
22     sminclude mtools mcore-split
23    
24     SRC_URI=(
25     sourceforge://${PNAME}/${SRCFILE}
26     mirror://${PNAME}/${SRCFILE}
27     mirror://${PNAME}/${PNAME}-${PVER}-as-needed.patch
28     mirror://${PNAME}/${PNAME}-${PVER}-line-scroll.patch
29     mirror://${PNAME}/${PNAME}-${PVER}-CVE-2008-1142.patch
30     )
31    
32     UP2DATE="updatecmd_sourceforge ${PNAME} ${PNAME}-dev"
33    
34     src_prepare()
35     {
36     munpack ${SRCFILE} || die
37     cd ${SRCDIR}
38    
39     # compilation fix
40     mpatch ${PNAME}-${PVER}-as-needed.patch || die
41    
42     # enable line scrolling with up/down and home/end keys
43     mpatch ${PNAME}-${PVER}-line-scroll.patch || die
44    
45     # security fix - do not default to :0 if DISPLAY is unset
46     mpatch ${PNAME}-${PVER}-CVE-2008-1142.patch || die
47     }
48    
49     src_compile()
50     {
51     cd ${SRCDIR}
52    
53     # use linuxkeys
54     export CFLAGS="${CFLAGS} -DLINUX_KEYS"
55     export CXXFLAGS="${CXXFLAGS} -DLINUX_KEYS"
56    
57     mconfigure \
58     --with-term=rxvt \
59     --enable-everything \
60     --enable-rxvt-scroll \
61     --enable-next-scroll \
62     --enable-xterm-scroll \
63     --enable-transparency \
64     --enable-utmp \
65     --enable-wtmp \
66     --enable-mousewheel \
67     --enable-slipwheeling \
68     --enable-smart-resize \
69     --enable-256-color \
70     --enable-menubar \
71     --enable-xim \
72     --enable-shared \
73     --enable-keepscrolling \
74     --disable-xpm-background \
75     || die
76    
77     mmake || die
78     }
79    
80     mcore_generic_src_install()
81     {
82     cd ${SRCDIR}
83    
84     minstall mandir=${BINDIR}/usr/share/man/man1 || die
85     minstalldocs ChangeLog README* doc/{BUGS,FAQ,README*,TODO} || die
86     minstallhtml doc/\*.html || die
87     }