get gnuradio and boost from stock
[wextoolbox.git] / wextoolbox.mk
1 #
2 # declare the packages to be built and their dependencies
3 # initial version from Mark Huang
4 # Mark Huang <mlhuang@cs.princeton.edu>
5 # Copyright (C) 2003-2006 The Trustees of Princeton University
6 # rewritten by Thierry Parmentelat - INRIA Sophia Antipolis
7 #
8 ### NOTES on diffs with onelab
9 # 2.6.27 vs 2.6.22 - does not need iwlwifi exception anymore
10 # does not include:
11 # ipfw (might just work) - svn:ipfw
12 # ipfwslice - svn:ipfw
13 # nozomi (does not work on 2.6.27) svn:nozomi
14 # comgt - svn:comgt
15 # umts-backend - svn:planetlab-umts-tools
16 # umts-frontend - svn:planetlab-umts-tools
17 # dummynet_image - svn:dummynet_image
18
19 #
20 # see doc in Makefile  
21 #
22
23 ########## this should not be needed with f14 anymore 
24 #f14# #
25 #f14# # boost
26 #f14# # 
27 #f14# # we rebuild this one only b/c f10 only has 1.34 and gnuradio needs >= 1.35
28 #f14# # this build is based on the f11 rpm, i.e. boost-1.37
29 #f14# #
30 #f14# boost-MODULES := boost
31 #f14# boost-SPEC := boost.spec
32 #f14# boost-BUILD-FROM-SRPM := yes
33 #f14# ALL += boost
34 #f14# IN_BOOTSTRAPFS += boost
35 #f14# 
36 #f14# #
37 #f14# # gnuradio
38 #f14# #
39 #f14# gnuradio-MODULES := gnuradio
40 #f14# gnuradio-SPEC := gnuradio.spec
41 #f14# gnuradio-BUILD-FROM-SRPM := yes
42 #f14# # boost-devel needs boost !
43 #f14# gnuradio-DEPEND-DEVEL-RPMS := boost boost-devel
44 #f14# ALL += gnuradio
45 #f14# IN_BOOTSTRAPFS += gnuradio
46
47 #
48 # bbn
49 #
50 bbn-MODULES := bbn_80211
51 bbn-SPEC := bbn_80211.spec
52 bbn-BUILD-FROM-SRPM := yes
53 # now from the stock repo
54 bbn-DEVEL-RPMS := gnuradio gnuradio-devel boost boost-devel
55 #bbn-DEPEND-DEVEL-RPMS := gnuradio gnuradio-devel boost boost-devel
56 ALL += bbn
57 IN_BOOTSTRAPFS += bbn
58
59 #
60 # crunchxml
61 #
62 crunchxml-MODULES := crunchxml
63 crunchxml-SPEC := crunchxml.spec
64 crunchxml-BUILD-FROM-SRPM := yes
65 ALL += crunchxml
66 IN_BOOTSTRAPFS += crunchxml
67
68 #
69 # spectools
70 #
71 spectools-MODULES := spectools
72 spectools-SPEC := spectools.spec
73 spectools-BUILD-FROM-SRPM := yes
74 ALL += spectools
75 IN_BOOTSTRAPFS += spectools
76
77 #
78 # sge
79 #
80 sge-MODULES := sge
81 sge-SPEC := sge.spec
82 sge-BUILD-FROM-SRPM := yes
83 # turning this off - current focus is on deploying the sge box separately from myplc
84 # packaging is still broken, and we're exploring a ready-t-o-use distro on centos
85 # ALL += sge
86 # IN_BOOTSTRAPFS += sge
87
88 #
89 # kernel
90 #
91 # use a package name with srpm in it:
92 # so the source rpm is created by running make srpm in the codebase
93 #
94
95 kernel-MODULES := linux-2.6
96 kernel-SPEC := kernel-2.6.spec
97 kernel-BUILD-FROM-SRPM := yes
98 ifeq "$(HOSTARCH)" "i386"
99 kernel-RPMFLAGS:= --target i686
100 else
101 kernel-RPMFLAGS:= --target $(HOSTARCH)
102 endif
103 # this is useful for 2.6.22 but will not be needed anymore with 2.6.27
104 kernel-SPECVARS += iwlwifi=1 
105 kernel-SPECVARS += kernelconfig=planetlab
106 KERNELS += kernel
107
108 kernels: $(KERNELS)
109 kernels-clean: $(foreach package,$(KERNELS),$(package)-clean)
110
111 ALL += $(KERNELS)
112 # this is to mark on which image a given rpm is supposed to go
113 IN_BOOTCD += $(KERNELS)
114 IN_VSERVER += $(KERNELS)
115 IN_BOOTSTRAPFS += $(KERNELS)
116
117 #
118 # madwifi
119 #
120 madwifi-MODULES := madwifi
121 madwifi-SPEC := madwifi.spec
122 madwifi-BUILD-FROM-SRPM := yes
123 madwifi-DEPEND-DEVEL-RPMS := kernel-devel
124 madwifi-SPECVARS = kernel_version=$(kernel.rpm-version) \
125         kernel_release=$(kernel.rpm-release) \
126         kernel_arch=$(kernel.rpm-arch)
127 ALL += madwifi
128 IN_BOOTSTRAPFS += madwifi
129
130 #
131 # iptables
132 #
133 iptables-MODULES := iptables
134 iptables-SPEC := iptables.spec
135 iptables-DEPEND-DEVEL-RPMS := kernel-devel kernel-headers
136 ALL += iptables
137 IN_BOOTSTRAPFS += iptables
138
139 #
140 # iproute
141 #
142 iproute-MODULES := iproute2
143 iproute-SPEC := iproute.spec
144 ALL += iproute
145 IN_BOOTSTRAPFS += iproute
146 IN_VSERVER += iproute
147 IN_BOOTCD += iproute
148
149 #
150 # ipfw: root context module, and slice companion
151 #
152 ipfwroot-MODULES := ipfw
153 ipfwroot-SPEC := planetlab/ipfwroot.spec
154 ipfwroot-DEPEND-DEVEL-RPMS := kernel-devel
155 ipfwroot-SPECVARS = kernel_version=$(kernel.rpm-version) \
156         kernel_release=$(kernel.rpm-release) \
157         kernel_arch=$(kernel.rpm-arch)
158 ALL += ipfwroot
159
160 ipfwslice-MODULES := ipfw
161 ipfwslice-SPEC := planetlab/ipfwslice.spec
162 ipfwslice-SPECVARS = kernel_version=$(kernel.rpm-version) \
163         kernel_release=$(kernel.rpm-release) \
164         kernel_arch=$(kernel.rpm-arch)
165 ALL += ipfwslice
166
167 #
168 # umts: root context stuff
169 #
170 umts-backend-MODULES := planetlab-umts-tools
171 umts-backend-SPEC := backend.spec
172 IN_BOOTSTRAPFS += umts-backend
173 ALL += umts-backend
174
175 #
176 # umts: slice tools
177 #
178 umts-frontend-MODULES := planetlab-umts-tools
179 umts-frontend-SPEC := frontend.spec
180 IN_VSERVER += umts-frontend
181 ALL += umts-frontend
182
183 #
184 # util-vserver
185 #
186 util-vserver-MODULES := util-vserver
187 util-vserver-SPEC := util-vserver.spec
188 util-vserver-RPMFLAGS:= --without dietlibc
189 ALL += util-vserver
190 IN_BOOTSTRAPFS += util-vserver
191
192 #
193 # libnl - local import
194 # we need either 1.1 or at least 1.0.pre6
195 # rebuild this on centos5 - see kexcludes in build.common
196 #
197 local_libnl=false
198 ifeq "$(DISTRONAME)" "centos5"
199 local_libnl=true
200 endif
201
202 ifeq "$(local_libnl)" "true"
203 libnl-MODULES := libnl
204 libnl-SPEC := libnl.spec
205 libnl-BUILD-FROM-SRPM := yes
206 # this sounds like the thing to do, but in fact linux/if_vlan.h comes with kernel-headers
207 libnl-DEPEND-DEVEL-RPMS := kernel-devel kernel-headers
208 ALL += libnl
209 IN_BOOTSTRAPFS += libnl
210 endif
211
212 #
213 # util-vserver-pl
214 #
215 util-vserver-pl-MODULES := util-vserver-pl
216 util-vserver-pl-SPEC := util-vserver-pl.spec
217 util-vserver-pl-DEPEND-DEVEL-RPMS := util-vserver-lib util-vserver-devel util-vserver-core 
218 ifeq "$(local_libnl)" "true"
219 util-vserver-pl-DEPEND-DEVEL-RPMS += libnl libnl-devel
220 endif
221 ALL += util-vserver-pl
222 IN_BOOTSTRAPFS += util-vserver-pl
223
224 #
225 # NodeUpdate
226 #
227 nodeupdate-MODULES := nodeupdate
228 nodeupdate-SPEC := NodeUpdate.spec
229 ALL += nodeupdate
230 IN_BOOTSTRAPFS += nodeupdate
231
232 #
233 # ipod
234 #
235 ipod-MODULES := PingOfDeath
236 ipod-SPEC := ipod.spec
237 ALL += ipod
238 IN_BOOTSTRAPFS += ipod
239
240 #
241 # NodeManager
242 #
243 nodemanager-MODULES := nodemanager
244 nodemanager-SPEC := NodeManager.spec
245 ALL += nodemanager
246 IN_BOOTSTRAPFS += nodemanager
247
248 #
249 # pl_sshd
250 #
251 sshd-MODULES := pl_sshd
252 sshd-SPEC := pl_sshd.spec
253 ALL += sshd
254 IN_BOOTSTRAPFS += sshd
255
256 #
257 # codemux: Port 80 demux
258 #
259 codemux-MODULES := codemux
260 codemux-SPEC   := codemux.spec
261 ALL += codemux
262 IN_BOOTSTRAPFS += codemux
263
264 #
265 # fprobe-ulog
266 #
267 fprobe-ulog-MODULES := fprobe-ulog
268 fprobe-ulog-SPEC := fprobe-ulog.spec
269 ALL += fprobe-ulog
270 IN_BOOTSTRAPFS += fprobe-ulog
271
272 #
273 # pf2slice
274 #
275 pf2slice-MODULES := pf2slice
276 pf2slice-SPEC := pf2slice.spec
277 ALL += pf2slice
278
279 #
280 # PlanetLab Mom: Cleans up your mess
281 #
282 mom-MODULES := Mom
283 mom-SPEC := pl_mom.spec
284 ALL += mom
285 IN_BOOTSTRAPFS += mom
286
287 #
288 # inotify-tools - local import
289 # rebuild this on centos5 (not found) - see kexcludes in build.common
290 #
291 local_inotify_tools=false
292 ifeq "$(DISTRONAME)" "centos5"
293 local_inotify_tools=true
294 endif
295
296 ifeq "$(local_inotify_tools)" "true"
297 inotify-tools-MODULES := inotify-tools
298 inotify-tools-SPEC := inotify-tools.spec
299 inotify-tools-BUILD-FROM-SRPM := yes
300 IN_BOOTSTRAPFS += inotify-tools
301 ALL += inotify-tools
302 endif
303
304 #
305 # vsys
306 #
307 vsys-MODULES := vsys
308 vsys-SPEC := vsys.spec
309 ifeq "$(local_inotify_tools)" "true"
310 vsys-DEPEND-DEVEL-RPMS := inotify-tools inotify-tools-devel
311 endif
312 IN_BOOTSTRAPFS += vsys
313 ALL += vsys
314
315 #
316 # vsys-scripts
317 #
318 vsys-scripts-MODULES := vsys-scripts
319 vsys-scripts-SPEC := vsys-scripts.spec
320 IN_BOOTSTRAPFS += vsys-scripts
321 ALL += vsys-scripts
322
323 #
324 # PLCAPI
325 #
326 plcapi-MODULES := plcapi
327 plcapi-SPEC := PLCAPI.spec
328 ALL += plcapi
329 IN_MYPLC += plcapi
330
331 #
332 # drupal
333
334 drupal-MODULES := drupal
335 drupal-SPEC := drupal.spec
336 drupal-BUILD-FROM-SRPM := yes
337 ALL += drupal
338 IN_MYPLC += drupal
339
340 #
341 # use the plewww module instead
342 #
343 plewww-MODULES := plewww
344 plewww-SPEC := plewww.spec
345 ALL += plewww
346 IN_MYPLC += plewww
347
348 #
349 # www-register-wizard
350 #
351 www-register-wizard-MODULES := www-register-wizard
352 www-register-wizard-SPEC := www-register-wizard.spec
353 ALL += www-register-wizard
354 IN_MYPLC += www-register-wizard
355
356 #
357 # pcucontrol
358 #
359 pcucontrol-MODULES := pcucontrol
360 pcucontrol-SPEC := pcucontrol.spec
361 ALL += pcucontrol
362
363 #
364 # pyopenssl
365 #
366 pyopenssl-MODULES := pyopenssl
367 pyopenssl-SPEC := pyOpenSSL.spec
368 pyopenssl-BUILD-FROM-SRPM := yes
369 ALL += pyopenssl
370
371 #
372 # pyaspects
373 #
374 pyaspects-MODULES := pyaspects
375 pyaspects-SPEC := pyaspects.spec
376 pyaspects-BUILD-FROM-SRPM := yes
377 ALL += pyaspects
378
379 #
380 # nodeconfig
381 #
382 nodeconfig-MODULES := nodeconfig
383 nodeconfig-SPEC := nodeconfig.spec
384 ALL += nodeconfig
385 IN_MYPLC += nodeconfig
386
387 #
388 # bootmanager
389 #
390 bootmanager-MODULES := bootmanager
391 bootmanager-SPEC := bootmanager.spec
392 ALL += bootmanager
393 IN_MYPLC += bootmanager
394
395 #
396 # pypcilib : used in bootcd
397
398 pypcilib-MODULES := pypcilib
399 pypcilib-SPEC := pypcilib.spec
400 ALL += pypcilib
401 IN_BOOTCD += pypcilib
402
403 #
404 # pyplnet
405 #
406 pyplnet-MODULES := pyplnet
407 pyplnet-SPEC := pyplnet.spec
408 ALL += pyplnet
409 IN_BOOTSTRAPFS += pyplnet
410 IN_MYPLC += pyplnet
411 IN_BOOTCD += pyplnet
412
413 #
414 # bootcd
415 #
416 bootcd-MODULES := bootcd build
417 bootcd-SPEC := bootcd.spec
418 bootcd-DEPEND-PACKAGES := $(IN_BOOTCD)
419 bootcd-DEPEND-FILES := RPMS/yumgroups.xml
420 bootcd-RPMDATE := yes
421 ALL += bootcd
422 IN_MYPLC += bootcd
423
424 #
425 # vserver : reference image for slices
426 #
427 vserver-MODULES := vserver-reference build
428 vserver-SPEC := vserver-reference.spec
429 vserver-DEPEND-PACKAGES := $(IN_VSERVER)
430 vserver-DEPEND-FILES := RPMS/yumgroups.xml
431 vserver-RPMDATE := yes
432 ALL += vserver
433 IN_BOOTSTRAPFS += vserver
434
435 #
436 # bootstrapfs
437 #
438 bootstrapfs-MODULES := bootstrapfs build
439 bootstrapfs-SPEC := bootstrapfs.spec
440 bootstrapfs-DEPEND-PACKAGES := $(IN_BOOTSTRAPFS)
441 bootstrapfs-DEPEND-FILES := RPMS/yumgroups.xml
442 bootstrapfs-RPMDATE := yes
443 ALL += bootstrapfs
444 IN_MYPLC += bootstrapfs
445
446 #
447 # noderepo
448 #
449 # all rpms resulting from packages marked as being in bootstrapfs and vserver
450 NODEREPO_RPMS = $(foreach package,$(IN_BOOTSTRAPFS) $(IN_VSERVER),$($(package).rpms))
451 # replace space with +++ (specvars cannot deal with spaces)
452 SPACE=$(subst x, ,x)
453 NODEREPO_RPMS_3PLUS = $(subst $(SPACE),+++,$(NODEREPO_RPMS))
454
455 noderepo-MODULES := bootstrapfs 
456 noderepo-SPEC := noderepo.spec
457 # package requires all regular packages
458 noderepo-DEPEND-PACKAGES := $(IN_BOOTSTRAPFS) $(IN_VSERVER)
459 noderepo-DEPEND-FILES := RPMS/yumgroups.xml
460 #export rpm list to the specfile
461 noderepo-SPECVARS = node_rpms_plus=$(NODEREPO_RPMS_3PLUS)
462 noderepo-RPMDATE := yes
463 ALL += noderepo
464 IN_MYPLC += noderepo
465
466 #
467 # MyPLC : lightweight packaging, dependencies are yum-installed in a vserver
468 #
469 myplc-MODULES := myplc
470 myplc-SPEC := myplc.spec
471 myplc-DEPEND-FILES := myplc-release RPMS/yumgroups.xml
472 ALL += myplc
473
474 # myplc-docs only contains docs for PLCAPI and NMAPI, but
475 # we still need to pull MyPLC, as it is where the specfile lies, 
476 # together with the utility script docbook2drupal.sh
477 myplc-docs-MODULES := myplc plcapi nodemanager 
478 myplc-docs-SPEC := myplc-docs.spec
479 ALL += myplc-docs
480
481 # using some other name than myplc-release, as this is a make target already
482 release-MODULES := myplc
483 release-SPEC := myplc-release.spec
484 release-RPMDATE := yes
485 ALL += release