blob: 3fffcf87d3fbf4380c94c051e987699e022f3179 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
|
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-base/xdirectfb/xdirectfb-1.0_rc3.ebuild,v 1.1 2002/11/15 22:18:53 seemant Exp $
MY_PN="XDirectFB"
MY_PV=${PV/_/-}
MY_P=${MY_PN}-${MY_PV}
MY_V=X4.2.99.3
S=${WORKDIR}/xc
X=${WORKDIR}/${MY_P}
DESCRIPTION="XDirectFB is a rootless XServer on top of DirectFB"
SRC_URI="http://www.ibiblio.org/gentoo/gentoo-sources/${MY_V}-1.tar.bz2
http://www.ibiblio.org/gentoo/gentoo-sources/${MY_V}-2.tar.bz2
http://www.ibiblio.org/gentoo/gentoo-sources/${MY_V}-3.tar.bz2
http://www.ibiblio.org/gentoo/gentoo-sources/${MY_V}-4.tar.bz2
http://www.ibiblio.org/gentoo/gentoo-sources/truetype.tar.gz
http://www.directfb.org/download/${MY_PN}/${MY_P}.tar.gz"
HOMEPAGE="http://www.directfb.org"
SLOT="0"
LICENSE="X11"
KEYWORDS="~x86 ~sparc ~sparc64"
PROVIDE="virtual/x11"
DEPEND=">=sys-libs/ncurses-5.1
>=sys-libs/zlib-1.1.3-r2
sys-devel/flex
sys-devel/perl
dev-libs/DirectFB"
src_unpack () {
unpack ${A}
cd ${X}
cp xc-directfb.diff ${S}
cp -a programs/Xserver/hw/directfb ${S}/programs/Xserver/hw
cp ${X}/config/cf/* ${S}/config/cf
cp ${FILESDIR}/host.def ${S}/config/cf/
cd ${S}
patch -p0 < xc-directfb.diff || die
}
src_compile() {
emake World || die
}
src_install() {
# make install DESTDIR=${D}
exeinto /usr/X11R6/bin
doexe ${S}/programs/Xserver/XDirectFB
doexe ${FILESDIR}/startxdfb
mv ${S}/programs/Xserver/hw/directfb/XDirectFB._man ./XDirectFB.1x
insinto /usr/X11R6/man/man1
doins ${S}/XDirectFB.1x
dodir /etc/skel
dodir /etc/X11/xinit
cp ${FILESDIR}/.dfbserverrc ${D}/etc/skel
cp ${FILESDIR}/dfbserverrc ${D}/etc/X11/xinit
dohtml ${S}/programs/Xserver/hw/directfb/XDirectFB.1x.html
cd ${X}
dodoc AUTHORS ChangeLog INSTALL README TODO
}
pkg_postinst() {
chmod 4711 /usr/X11R6/bin/XDirectFB
chmod 755 /usr/X11R6/bin/startxdfb
echo
echo '#######################################################'
echo '# #'
echo '# To start XDirectFB use startxdfb utility. #'
echo '# For example startxdfb -- -enableRoot #'
echo '# Use -enableRoot if you have issues with menus #'
echo '# not working in fluxbox or blackbox, etc. #'
echo '# #'
echo '# To set a background in XDirectFB create a #'
echo '# file called directfbrc in /etc #'
echo '# (system wide setting) or .directfbrc #'
echo '# in $HOME. XDirectFB will also just use your #'
echo '# Window Managers background. #'
echo '# #'
echo '# XDirectFB needs ~/.dfbserverrc or #'
echo '# /etc/X11/xinit/dfbserverrc by default so please #'
echo '# edit these to you likeing. #'
echo '# cp /etc/skel/.dfbserverrc $HOME #'
echo '# Please take a look at this file and edit it, #'
echo '# you can add a options like -enableRoot, etc to #'
echo '# it. Though XDirectFB should just start with #'
echo '# startxdfb #'
echo '# #'
echo '#######################################################'
echo
}
|