Magellan Linux

Annotation of /smage/branches/alx07x-unstable/core/rxvt/rxvt-2.7.10-r9.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 14563 - (hide annotations) (download)
Tue Aug 4 11:19:54 2020 UTC (3 years, 9 months ago) by niro
File size: 2020 byte(s)
-release branches/alx07x-unstable
1 niro 14251 # $Id$
2    
3     PNAME="rxvt"
4     PVER="2.7.10"
5     PBUILD="r9"
6    
7     PCAT="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.6
13     >= x11-libs/libXext-1.3
14     >= x11-libs/libXt-1"
15    
16     SDEPEND=">= virtual/xproto
17     >= x11-libs/libX11-dev-1.6
18     >= x11-libs/libXext-dev-1.3
19     >= x11-libs/libXt-dev-1"
20    
21     SRCFILE="${PNAME}-${PVER}.tar.gz"
22     SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
23    
24     ALX_PKG_KEEP="usr/bin/rxvt usr/bin/xterm usr/$(mlibdir)/*.so usr/$(mlibdir)/*.so.*"
25     sminclude mtools alx-split
26    
27     SRC_URI=(
28     sourceforge://${PNAME}/${SRCFILE}
29     mirror://${PNAME}/${SRCFILE}
30     mirror://${PNAME}/${PNAME}-${PVER}-as-needed.patch
31     mirror://${PNAME}/${PNAME}-${PVER}-line-scroll.patch
32     mirror://${PNAME}/${PNAME}-${PVER}-CVE-2008-1142.patch
33     )
34    
35     UP2DATE="updatecmd_sourceforge ${PNAME} ${PNAME}-dev"
36    
37     src_prepare()
38     {
39     munpack ${SRCFILE} || die
40     cd ${SRCDIR}
41    
42     # compilation fix
43     mpatch ${PNAME}-${PVER}-as-needed.patch || die
44    
45     # enable line scrolling with up/down and home/end keys
46     mpatch ${PNAME}-${PVER}-line-scroll.patch || die
47    
48     # security fix - do not default to :0 if DISPLAY is unset
49     mpatch ${PNAME}-${PVER}-CVE-2008-1142.patch || die
50     }
51    
52     src_compile()
53     {
54     cd ${SRCDIR}
55    
56     # use linuxkeys
57     export CFLAGS="${CFLAGS} -DLINUX_KEYS"
58     export CXXFLAGS="${CXXFLAGS} -DLINUX_KEYS"
59    
60     mconfigure \
61     --with-term=rxvt \
62     --enable-everything \
63     --enable-rxvt-scroll \
64     --enable-next-scroll \
65     --enable-xterm-scroll \
66     --enable-transparency \
67     --enable-utmp \
68     --enable-wtmp \
69     --enable-mousewheel \
70     --enable-slipwheeling \
71     --enable-smart-resize \
72     --enable-256-color \
73     --enable-menubar \
74     --enable-xim \
75     --enable-shared \
76     --enable-keepscrolling \
77     --disable-xpm-background \
78     || die
79    
80     mmake || die
81     }
82    
83     alx_generic_src_install()
84     {
85     cd ${SRCDIR}
86    
87     minstall mandir=${BINDIR}/usr/share/man/man1 || die
88     minstalldocs ChangeLog README* doc/{BUGS,FAQ,README*,TODO} || die
89     minstallhtml doc/\*.html || die
90    
91     # compat symlink
92     mlink rxvt /usr/bin/xterm || die
93     }