~superm1/baracuda/trunk

« back to all changes in this revision

Viewing changes to debian/rules.old

  • Committer: Mario Limonciello
  • Date: 2008-02-02 03:00:06 UTC
  • Revision ID: supermario@portablemario-20080202030006-nsyurkqj9agwqdjw
initial checkin

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/make -f
 
2
# -*- makefile -*-
 
3
# Sample debian/rules that uses debhelper.
 
4
# GNU copyright 1997 to 1999 by Joey Hess.
 
5
#
 
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
 
8
 
 
9
# Uncomment this to turn on verbose mode.
 
10
#export DH_VERBOSE=1
 
11
 
 
12
# This has to be exported to make some magic below work.
 
13
export DH_OPTIONS
 
14
 
 
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)
 
19
 
 
20
 
 
21
CFLAGS = -Wall -g
 
22
 
 
23
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
 
24
        CFLAGS += -O0
 
25
else
 
26
        CFLAGS += -O2
 
27
endif
 
28
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
 
29
        INSTALL_PROGRAM += -s
 
30
endif
 
31
 
 
32
unix/config.status: unix/configure
 
33
        dh_testdir
 
34
        # Add here commands to configure the package.
 
35
        cd unix && autoconf
 
36
        cd unix && \
 
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 \
 
41
                \
 
42
                --with-installed-zlib
 
43
        cd common && autoconf
 
44
        cd common && \
 
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 \
 
49
                \
 
50
                --with-installed-zlib
 
51
 
 
52
 
 
53
#Architecture
 
54
build: build-arch build-indep
 
55
 
 
56
build-arch: build-arch-stamp build-java-stamp build-server-stamp
 
57
build-arch-stamp:  unix/config.status
 
58
        $(MAKE) -C unix
 
59
        touch build-arch-stamp
 
60
 
 
61
build-java-stamp: build-arch-stamp
 
62
        touch build-java-stamp
 
63
 
 
64
build-server-stamp: build-arch-stamp
 
65
        rm -rf xorg-xserver*
 
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 \
 
76
                xorg-server-*/hw/vnc/
 
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 \
 
93
             --disable-static \
 
94
             --enable-xorg \
 
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 \
 
99
             --enable-xtrap \
 
100
             --disable-dmx \
 
101
             --enable-vfb \
 
102
             --enable-kdrive \
 
103
             --enable-xephyr \
 
104
             --disable-xsdl \
 
105
             --disable-xfake \
 
106
             --disable-xfbdev \
 
107
             --disable-kdrive-vesa \
 
108
             --disable-lbx \
 
109
             --enable-freetype \
 
110
             --disable-xorgconfig \
 
111
             --disable-xorgcfg \
 
112
             --with-xkb-path=/usr/share/X11/xkb \
 
113
             --with-xkb-output=/var/lib/xkb \
 
114
             --enable-xfree86-utils \
 
115
             --with-int10=x86emu \
 
116
             --disable-type1
 
117
 
 
118
#               --with-os-name="$$(lsb_release -ds)" \
 
119
#               --with-os-vendor="$$(lsb_release -is)" \
 
120
 
 
121
        $(MAKE) -C xorg-server
 
122
 
 
123
        touch build-server-stamp
 
124
 
 
125
 
 
126
build-indep: build-indep-stamp
 
127
build-indep-stamp:  unix/config.status
 
128
 
 
129
        # Add here commands to compile the indep part of the package.
 
130
        #$(MAKE) doc
 
131
        touch build-indep-stamp
 
132
 
 
133
clean:
 
134
        dh_testdir
 
135
        dh_testroot
 
136
        -rm -Rf $(CURDIR)/debian/tmp
 
137
        rm -f build-arch-stamp build-indep-stamp #CONFIGURE-STAMP#
 
138
 
 
139
        # Add here commands to clean up after the build process.
 
140
        -rm -f config.log config.status config.cache config.guess config.sub
 
141
        -rm -Rf buildtemp
 
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
 
148
#endif
 
149
#ifneq "$(wildcard /usr/share/misc/config.guess)" ""
 
150
#       cp -f /usr/share/misc/config.guess config.guess
 
151
#endif
 
152
 
 
153
        rm -f xorg-server unix/xorg-server-1.* xorg-server_*
 
154
        rm -rf xorg-server-1.*
 
155
 
 
156
        dh_clean
 
157
 
 
158
install: install-indep install-arch
 
159
install-indep:
 
160
##      dh_testdir
 
161
##      dh_testroot
 
162
##      dh_clean -k -i
 
163
##      dh_installdirs -i
 
164
##
 
165
##      # Add here commands to install the indep part of the package into
 
166
##      # debian/<package>-doc.
 
167
##      #INSTALLDOC#
 
168
##
 
169
##      dh_install -i
 
170
 
 
171
install-arch:
 
172
        dh_testdir
 
173
        dh_testroot
 
174
        dh_clean -k -s
 
175
        dh_installdirs -s
 
176
 
 
177
        # Add here commands to install the arch part of the package into
 
178
        # debian/tmp.
 
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/*
 
193
        dh_install -s
 
194
 
 
195
# Must not depend on anything. This is to be called by
 
196
# binary-arch/binary-indep
 
197
# in another 'make' thread.
 
198
binary-common:
 
199
        dh_testdir
 
200
        dh_testroot
 
201
        dh_installchangelogs
 
202
        dh_installdocs
 
203
        dh_installexamples
 
204
        dh_installmenu
 
205
#       dh_installdebconf
 
206
#       dh_installlogrotate
 
207
#       dh_installemacsen
 
208
#       dh_installpam
 
209
#       dh_installmime
 
210
#       dh_installinit
 
211
#       dh_installcron
 
212
#       dh_installinfo
 
213
        dh_installman
 
214
        dh_link
 
215
        dh_fixperms
 
216
        dh_strip
 
217
        dh_compress
 
218
#       dh_perl
 
219
#       dh_python
 
220
        dh_makeshlibs
 
221
        dh_installdeb
 
222
        dh_shlibdeps
 
223
        dh_gencontrol
 
224
        dh_md5sums
 
225
        dh_builddeb
 
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
 
229
 
 
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
 
233
 
 
234
binary: binary-indep binary-arch
 
235
.PHONY: build clean binary-indep binary-arch binary install install-indep install-arch