Magellan Linux

Contents of /smage/branches/alx07x-stable/core/eterm/eterm-0.9.6-r7.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 11400 - (show annotations) (download)
Tue Dec 19 12:31:34 2017 UTC (6 years, 4 months ago) by niro
File size: 1699 byte(s)
-release branches/alx07x-stable
1 # $Id$
2
3 PNAME="eterm"
4 PVER="0.9.6"
5 PBUILD="r7"
6
7 PCAT="x11-terms"
8
9 DESCRIPTION="Eterm is a color vt102 terminal emulator intended as a replacement for xterm."
10 HOMEPAGE="http://www.eterm.org/"
11
12 DEPEND=">= x11-libs/libX11-1.6
13 >= x11-libs/libXmu-1.1
14 >= x11-libs/libXres-1
15 >= x11-libs/libXt-1.1
16 >= x11-libs/libICE-1
17 >= x11-libs/libSM-1.2
18 >= x11-libs/libast-0.7
19 >= media-libs/imlib2-1.4"
20
21 SDEPEND=">= virtual/sed
22 >= x11-proto/xextproto-1
23 >= x11-proto/xproto-1
24 >= x11-libs/libX11-dev-1.6
25 >= x11-libs/libXmu-dev-1.1
26 >= x11-libs/libXres-dev-1
27 >= x11-libs/libXt-dev-1.1
28 >= x11-libs/libICE-dev-1
29 >= x11-libs/libSM-dev-1.2
30 >= x11-libs/libast-dev-0.7
31 >= media-libs/imlib2-dev-1.4"
32
33 SRCFILE="${PNAME/et/Et}-${PVER}.tar.gz"
34 SRCDIR="${BUILDDIR}/${PNAME/et/Et}-${PVER}"
35
36 # only want Esetroot to set wallpapers via fbsetbg
37 ALX_PKG_KEEP="usr/bin/Esetroot"
38 sminclude mtools alx-split
39
40 SRC_URI=(
41 http://www.eterm.org/download/${SRCFILE}
42 mirror://${PNAME}/${SRCFILE}
43 )
44
45 UP2DATE="updatecmd ${HOMEPAGE}/download/ | grep ${PNAME/et/Et}-[0-9] | lasttarball gz"
46
47 src_prepare()
48 {
49 munpack ${SRCFILE} || die
50 }
51
52 src_compile()
53 {
54 cd ${SRCDIR}
55
56 # enable mmx only on x86 but not x86_64 and others
57 local my_opts=--disable-mmx
58 [[ ${ARCH} = i*86 ]] && my_opts=--enable-mmx
59
60 mconfigure \
61 --with-x \
62 --with-imlib \
63 --with-delete=execute \
64 --with-backspace=auto \
65 --enable-trans \
66 --enable-multi-charset \
67 ${my_opts} \
68 || die
69
70 mmake || die
71 }
72
73 src_install()
74 {
75 cd ${SRCDIR}
76
77 # needed directories
78 minstalldir /usr/share/terminfo || die
79 mmake DESTDIR=${BINDIR} TIC="tic -o ${BINDIR}/usr/share/terminfo" install || die
80 minstalldocs Changelog README ReleaseNotes{,.1} bg/README.backgrounds || die
81 }