3
# Sample debian/rules that uses debhelper.
4
# GNU copyright 1997 to 1999 by Joey Hess.
6
# Modified to make a template file for a multi-binary package with separated
7
# build-arch and build-indep targets by Bill Allombert 2001
9
# Uncomment this to turn on verbose mode.
12
# This has to be exported to make some magic below work.
15
# These are used for cross-compiling and for saving the configure script
16
# from having to guess our platform (since we know it already)
17
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
18
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
23
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
28
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
32
unix/config.status: unix/configure
34
# Add here commands to configure the package.
37
CFLAGS="$(CFLAGS)" ./configure \
38
--host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) \
39
--prefix=/usr --mandir=\$${prefix}/share/man \
40
--infodir=\$${prefix}/share/info \
45
CFLAGS="$(CFLAGS)" ./configure \
46
--host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) \
47
--prefix=/usr --mandir=\$${prefix}/share/man \
48
--infodir=\$${prefix}/share/info \
54
build: build-arch build-indep
56
build-arch: build-arch-stamp build-java-stamp build-server-stamp
57
build-arch-stamp: unix/config.status
59
touch build-arch-stamp
61
build-java-stamp: build-arch-stamp
62
touch build-java-stamp
64
build-server-stamp: build-arch-stamp
66
dpkg-source -x ./xsrc/xorg-server_*dsc
67
ln -sf xorg-server-1.4.1~git20080118 xorg-server
68
cd xorg-server && debian/rules patch
69
cd unix && ln -s ../xorg-server-1.4.1~git20080118 xorg-server-1.4.1~git20080118
70
mkdir -p xorg-server/hw/vnc
71
cp -a /usr/include/pixman-1/pixman.h xorg-server-*/hw/vnc/
72
cp -a unix/xc/programs/Xserver/vnc/Xvnc/xvnc.cc \
73
unix/xc/programs/Xserver/Xvnc.man \
74
unix/xc/programs/Xserver/vnc/*.h \
75
unix/xc/programs/Xserver/vnc/*.cc \
77
cp -a xorg-server-*/cfb/cfb.h xorg-server-*/hw/vnc
78
cp -a xorg-server-*/cfb/cfbmap.h xorg-server-*/hw/vnc
79
cp -a xorg-server-*/fb/fb.h xorg-server-*/hw/vnc
80
cp -a xorg-server-*/fb/fbrop.h xorg-server-*/hw/vnc
81
cp -a xorg-server-*/mfb/mfb.h xorg-server-*/hw/vnc
82
cd xorg-server && patch -p1 < ../debian/patches/xorg-vnc-debian.patch
83
sed -i -e 's,xor,c_xor,' -e 's,and,c_and,' \
84
xorg-server-*/hw/vnc/cfb.h \
85
xorg-server-*/hw/vnc/cfbmap.h \
86
xorg-server-*/hw/vnc/fb.h \
87
xorg-server-*/hw/vnc/mfb.h \
88
xorg-server-*/hw/vnc/fbrop.h \
89
xorg-server-*/hw/vnc/pixman.h
90
cd xorg-server && automake
91
cd xorg-server && autoconf
92
cd xorg-server && ./configure \
95
--with-mesa-source=/usr/share/mesa-source \
96
--with-default-font-path="/usr/share/fonts/X11/misc,/usr/share/fonts/X11/cyrillic,/usr/share/fonts/X11/100dpi/:unscaled,/usr/share/fonts/X11/75dpi/:unscaled,/usr/share/fonts/X11/Type1,/usr/share/fonts/X11/100dpi,/usr/share/fonts/X11/75dpi,/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType" \
97
--with-serverconfig-path=/etc/X11/xserver \
98
--with-rgb-path=/etc/X11/rgb \
107
--disable-kdrive-vesa \
110
--disable-xorgconfig \
112
--with-xkb-path=/usr/share/X11/xkb \
113
--with-xkb-output=/var/lib/xkb \
114
--enable-xfree86-utils \
115
--with-int10=x86emu \
118
# --with-os-name="$$(lsb_release -ds)" \
119
# --with-os-vendor="$$(lsb_release -is)" \
121
$(MAKE) -C xorg-server
123
touch build-server-stamp
126
build-indep: build-indep-stamp
127
build-indep-stamp: unix/config.status
129
# Add here commands to compile the indep part of the package.
131
touch build-indep-stamp
136
-rm -Rf $(CURDIR)/debian/tmp
137
rm -f build-arch-stamp build-indep-stamp #CONFIGURE-STAMP#
139
# Add here commands to clean up after the build process.
140
-rm -f config.log config.status config.cache config.guess config.sub
142
-$(MAKE) -C common distclean
143
-$(MAKE) -C common clean
144
-$(MAKE) -C unix distclean
145
-$(MAKE) -C unix clean
146
#ifneq "$(wildcard /usr/share/misc/config.sub)" ""
147
# cp -f /usr/share/misc/config.sub config.sub
149
#ifneq "$(wildcard /usr/share/misc/config.guess)" ""
150
# cp -f /usr/share/misc/config.guess config.guess
153
rm -f xorg-server unix/xorg-server-1.* xorg-server_*
154
rm -rf xorg-server-1.*
158
install: install-indep install-arch
165
## # Add here commands to install the indep part of the package into
166
## # debian/<package>-doc.
177
# Add here commands to install the arch part of the package into
179
#$(MAKE) install prefix=$(CURDIR)/debian/vnc4/usr
180
mkdir -p $(CURDIR)/debian/tmp/usr/bin
181
mkdir -p $(CURDIR)/debian/tmp/usr/share/man/man1
182
mkdir -p $(CURDIR)/debian/tmp/usr/lib/xorg/modules/extensions
183
cd unix && ./vncinstall \
184
$(CURDIR)/debian/tmp/usr/bin \
185
$(CURDIR)/debian/tmp/usr/share/man \
186
$(CURDIR)/debian/tmp/usr/lib/xorg/modules/extensions
187
rename "s/vncviewer/xvncviewer/;" \
188
debian/tmp/usr/bin/* \
189
debian/tmp/usr/share/man/man1/*
190
rename "s/vnc/vnc4/;" \
191
debian/tmp/usr/bin/* \
192
debian/tmp/usr/share/man/man1/*
195
# Must not depend on anything. This is to be called by
196
# binary-arch/binary-indep
197
# in another 'make' thread.
206
# dh_installlogrotate
226
# Build architecture independant packages using the common target.
227
binary-indep: build-indep install-indep
228
## $(MAKE) -f debian/rules DH_OPTIONS=-i binary-common
230
# Build architecture dependant packages using the common target.
231
binary-arch: build-arch install-arch
232
$(MAKE) -f debian/rules DH_OPTIONS=-a binary-common
234
binary: binary-indep binary-arch
235
.PHONY: build clean binary-indep binary-arch binary install install-indep install-arch