-
Notifications
You must be signed in to change notification settings - Fork 0
Permalink
bee-files/tigervnc.be0
Newer
100755
128 lines (106 sloc)
4.4 KB
3
# BEE_VERSION tigervnc-1.9.0-2
5
XORG_SERVER_VERSION=1.20.2
6
XORG_SERVER_NNN=120
8
## this file was created by bee init and should be executed to build a
9
## bee-package. (Additional hints are located at the end of this file.)
10
11
###############################################################################
12
## The source URL(s) define the location of the sources that will be
13
## downloaded. Version variables may be used to simplify reuse of this bee-file.
14
15
SRCURL[0]="https://github.com/TigerVNC/tigervnc/archive/v${PKGVERSION}/tigervnc-${PKGVERSION}.tar.gz"
16
SRCURL[1]="https://ftp.x.org/pub/individual/xserver/xorg-server-$XORG_SERVER_VERSION.tar.bz2"
17
18
###############################################################################
19
## Add URLs/pathes to patch files to the PATCHURL array.
20
## The sources will be patched in the order of the array.
21
22
PATCHURL+=(/src/mariux/patches/tigervnc-vncserver-Change-default-xstartup-to-xfce4-session-v2.patch)
23
24
###############################################################################
25
## Add filename patterns to the EXCLUDE array of files that should not
26
## be added to you package but may be present in the image directory.
27
28
# EXCLUDE+=()
29
30
###############################################################################
31
## Uncomment the next statement, if the software may not be able to be built
32
## outside the source directory and needs to be built inside the source
33
## directory.
34
35
build_in_sourcedir
36
37
###############################################################################
38
## bee cannot detect buildtypes specified in subdirectories.
39
## Sometimes packages "hide" the real sources in a subdirectory named
40
## 'src' or 'cmake' or ..
41
## use 'sourcesubdir_append' to specify this directory if known.
42
43
# sourcesubdir_append src
44
45
46
###############################################################################
47
## Change the default (auto-detected) steps to
48
## extract, patch, configure/setup, build and install the software.
49
## Make sure the mee_install function does install everything to the
50
## image directory "${D}"
51
52
#mee_extract() {
53
# bee_extract "${@}"
54
#}
55
56
#mee_patch() {
57
# bee_patch "${@}"
58
#}
59
60
mee_configure() {
61
bee_configure -DFLTK_LIBRARIES="$(fltk-config --use-images --ldflags)"
62
(
63
if [ -z "${DEFCONFIG}" ] ; then
64
for var in prefix bindir sbindir libexecdir sysconfdir \
65
sharedstatedir localstatedir libdir includedir \
66
datarootdir datadir infodir localedir mandir docdir ; do
67
DEFCONFIG="${DEFCONFIG} \${${var^^}:+--${var,,}=\${${var^^}}}"
68
done
69
fi
70
eval DEFCONFIG=\"${DEFCONFIG}\"
71
72
start_cmd cp -R $S/xorg-server-$XORG_SERVER_VERSION/* $B/unix/xserver/
73
start_cmd cd unix/xserver
74
start_cmd patch -p1 < $S/unix/xserver$XORG_SERVER_NNN.patch
75
start_cmd autoreconf -fiv
76
export CFLAGS="$CFLAGS -I/usr/include/drm"
77
start_cmd ./configure $DEFCONFIG \
78
--with-pic --without-dtrace --disable-static --disable-dri \
79
--disable-xinerama --disable-xvfb --disable-xnest --disable-xorg \
80
--disable-dmx --disable-xwin --disable-xephyr --disable-kdrive \
81
--disable-config-hal --disable-config-udev \
82
--disable-dri2 --enable-glx \
83
--with-default-font-path="catalogue:/etc/X11/fontpath.d,built-ins" \
84
--with-xkb-path=/usr/share/X11/xkb \
85
--with-xkb-output=/var/lib/xkb \
86
--with-xkb-bin-directory=/usr/bin \
87
--with-serverconfig-path=/usr/lib/xorg \
92
mee_build() {
93
bee_build
94
(
95
start_cmd cd $B/unix/xserver
96
bee_build TIGERVNC_SRCDIR=$S
97
)
98
}
100
mee_install() {
101
bee_install
102
(
103
start_cmd cd $B/unix/xserver
104
bee_install
105
rm $D$MANDIR/man1/Xserver.1
106
rm $D$LIBDIR/xorg/protocol.txt
107
rm -r $D/var/lib/xkb/
110
## by default this may be 'make install DESTDIR="${D}"'
111
112
###############################################################################
113
##
114
## Additional hints:
115
##
116
## The name of this bee-file should follow the following naming convention:
117
## pkgname-pkgversion-pkgrevision.bee
118
##
119
## You may remove all comments as long as SRCURL[0] is set.
120
##
121
## Everything in this file will be executed in a bash environment.
122
##
123
## Build the package by executing
124
## './pkg-version-N.bee' or
125
## 'beesh ./pkg-version-N.bee'
126
##
127
## see http://beezinga.org/
128
##