source: branches/r9/Makefile.in @ 4840

Last change on this file since 4840 was 4840, checked in by gah, 6 years ago
File size: 43.1 KB
Line 
1
2# ------------------------------------------------------------------------
3#       Makefile for Rappture
4# ------------------------------------------------------------------------
5
6# ------------------------------------------------------------------------
7#       C Compiler options
8# ------------------------------------------------------------------------
9
10RAPPTURE_MAJOR_VERSION =        @RAPPTURE_MAJOR_VERSION@
11RAPPTURE_MINOR_VERSION =        @RAPPTURE_MINOR_VERSION@
12RAPPTURE_RELEASE_SERIAL =       @RAPPTURE_RELEASE_SERIAL@
13X_INCLUDES =            @X_INCLUDES@
14X_LIBRARIES =           @X_LIBRARIES@
15WORDSIZE =              @WORDSIZE@
16version = $(RAPPTURE_MAJOR_VERSION).$(RAPPTURE_MINOR_VERSION).$(RAPPTURE_RELEASE_SERIAL)
17runtime =               $(shell cd ../runtime; pwd)
18TAG =                   trunk
19
20# ------------------------------------------------------------------------
21#       Source and targer installation directories
22# ------------------------------------------------------------------------
23
24bindir =                $(exec_prefix)/bin
25datadir =               @datadir@
26datarootdir =           @datarootdir@
27exec_prefix =           @exec_prefix@
28incdir =                $(prefix)/include
29includedir =            @includedir@
30libdir =                @libdir@
31prefix =                @prefix@
32scriptdir =             $(exec_prefix)/scripts
33pkgdir =                $(exec_prefix)/lib
34srcdir =                $(shell cd @srcdir@; pwd)
35statsdir =              @STATSDIR@
36
37# ------------------------------------------------------------------------
38#       You don't need to edit anything beyond this point
39# ------------------------------------------------------------------------
40
41INSTALL =               @INSTALL@
42INSTALL_DATA =          @INSTALL_DATA@
43DESTDIR = 
44RANLIB =                @RANLIB@
45MAKE =                  make
46SHELL =                 /bin/sh
47AR =                    ar rc
48RM =                    rm -f
49LN_S =                  @LN_S@
50VPATH =                 $(srcdir)
51MKDIR_P =               @MKDIR_P@
52CP =                    /bin/cp
53
54common_flags =          --prefix=$(prefix) --exec_prefix=$(exec_prefix)
55x_flags =
56ifneq ("$(X_INCLUDES)", )
57x_flags += --x-includes=$(X_INCLUDES)
58endif
59ifneq ("$(X_LIBRARIES)", )
60x_flags += --x-includes=$(X_LIBRARIES)
61endif
62
63PATH := $(bindir):$(PATH)
64
65targets = \
66        blt builder cmake examples expat expect glew gui geovis \
67        htmlwidget itcl itk lang librappture nanovis nanoscale \
68        optimizer osg osgearth pymol \
69        pymolproxy shape sqlitetcl tcl tcllib tdom tester tk \
70        tkimg tls video voronoi vtk vtkvis zlib 
71
72.PHONY: $(targets)
73
74.NOTPARALLEL:
75
76all: gui
77
78fullpkg: tester builder renderservers
79
80renderservers: nanoscale nanovis vtkvis geovis pymolproxy
81
82libshell: $(tcllib)/timestamp $(tls)/timestamp $(itcl)/timestamp
83
84# Aliases for package directory names.
85
86blt = blt2.4z
87builder = builder
88cmake = cmake-2.8.12
89examples =examples
90expat = expat-2.0.1
91expect = expect5.45
92glew = glew
93gui = gui
94htmlwidget = htmlwidget-3a14
95itcl = itcl3.3
96itk = itk3.3
97lang = lang
98librappture = librappture
99nanoscale = nanoscale
100nanovis = nanovis
101optimizer = optimizer
102osg = OpenSceneGraph-3.2.0
103osgearth = osgearth-2.5
104pymol = pymol
105pymolproxy = pymolproxy
106shape = shape0.4
107sqlitetcl = sqlite-3071502/tea
108tcl = tcl8.4.19
109tcllib = tcllib-1.12
110tdom = tDOM-0.8.2
111tester = tester
112tk = tk8.4.19
113tkimg = tkimg1.3
114tls = tls1.6
115video = video
116voronoi = voronoi
117vtk = vtk-6.0.0
118vtkvis = vtkvis
119geovis = geovis
120zlib = zlib
121
122subdirs = \
123        $(blt) $(builder) $(cmake) $(examples) $(expat) $(expect) $(glew) \
124        $(gui) $(htmlwidget) $(itcl) $(itk) $(lang) $(librappture) $(nanovis) \
125        $(optimizer) $(osg) $(osgearth) $(pymol) $(pymolproxy) $(shape) \
126        $(sqlitetcl) $(tcl) $(tcllib) $(tdom) $(tester) $(tk) $(tkimg) \
127        $(tls) $(video) $(voronoi) $(vtk) $(vtkvis) $(zlib) $(geovis)
128
129
130clean:
131        $(RM) -r $(subdirs)
132
133# -------------------------------------------------------------------------
134#  BLT
135# -------------------------------------------------------------------------
136
137blt_flags =     \
138        --enable-shared \
139        $(common_flags)
140
141blt: $(blt)/timestamp
142
143clean-blt:
144        $(clean_blt)
145fetch-blt:
146        $(fetch_blt)
147configure-blt:
148        $(configure_blt)
149build-blt:
150        $(build_blt)
151install-blt:
152        $(install_blt)
153touch-blt:
154        $(touch_blt)
155force-blt: $(tcl)/timestamp $(tk)/timestamp
156        + $(clean_blt)
157        + $(fetch_blt)
158        + $(configure_blt)
159        + $(build_blt)
160        + $(install_blt)
161        + $(touch_blt)
162
163define clean_blt
164        $(RM) -r $(blt)
165endef
166define fetch_blt
167        sh $(srcdir)/fetch.sh $(TAG) $(runtime) $(blt)
168endef
169define configure_blt
170        $(MKDIR_P) $(blt)
171        cd $(blt); $(runtime)/$(blt)/configure $(blt_flags)
172endef
173define build_blt
174        $(MAKE)  -C $(blt) all
175endef
176define install_blt
177        $(MAKE) -C $(blt) install
178endef
179define touch_blt
180        touch $(blt)/timestamp
181endef
182
183$(blt)/timestamp: $(tcl)/timestamp $(tk)/timestamp
184        + $(clean_blt)
185        + $(fetch_blt)
186        + $(configure_blt)
187        + $(build_blt)
188        + $(install_blt)
189        + $(touch_blt)
190
191# -------------------------------------------------------------------------
192#  BUILDER
193# -------------------------------------------------------------------------
194
195builder_flags = \
196        --with-tclsh="$(bindir)/tclsh8.4" \
197        --enable-shared \
198        $(common_flags)
199
200builder: $(builder)/timestamp
201
202clean-builder:
203        $(clean_builder)
204fetch-builder:
205        $(fetch_builder)
206configure-builder:
207build-builder:
208        $(build_builder)
209install-builder:
210        $(install_builder)
211touch-builder:
212        $(touch_builder)
213force-builder: $(gui)/timestamp
214        + $(clean_builder)
215        + $(fetch_builder)
216        + $(configure_builder)
217        + $(build_builder)
218        + $(install_builder)
219        + $(touch_builder)
220
221define clean_builder
222        $(MAKE) -C $(builder) clean
223endef
224define fetch_builder
225endef
226define build_builder
227        $(MAKE) -C $(builder) all
228endef
229define install_builder
230        $(MAKE) -C $(builder) install
231endef
232define touch_builder
233        touch $(builder)/timestamp
234endef
235
236$(builder)/timestamp: $(gui)/timestamp
237        + $(clean_builder)
238        + $(fetch_builder)
239        + $(configure_builder)
240        + $(build_builder)
241        + $(install_builder)
242        + $(touch_builder)
243
244# -------------------------------------------------------------------------
245#  CMAKE
246# -------------------------------------------------------------------------
247
248cmake_flags =   \
249        --prefix=$(prefix)
250
251cmake: $(cmake)/timestamp
252
253clean-cmake:
254        $(clean_cmake)
255fetch-cmake:
256        $(fetch_cmake)
257configure-cmake:
258        $(configure_cmake)
259build-cmake:
260        $(build_cmake)
261install-cmake:
262        $(install_cmake)
263touch-cmake:
264        $(touch_cmake)
265force-cmake:
266        + $(clean_cmake)
267        + $(fetch_cmake)
268        + $(configure_cmake)
269        + $(build_cmake)
270        + $(install_cmake)
271        + $(touch_cmake)
272
273define clean_cmake
274        $(RM) -r $(cmake)
275endef
276define fetch_cmake
277        sh $(srcdir)/fetch.sh $(TAG) $(runtime) $(cmake)
278endef
279define configure_cmake
280        $(MKDIR_P) $(cmake)
281        cd $(cmake); $(runtime)/$(cmake)/configure $(cmake_flags)
282endef
283define build_cmake
284        $(MAKE)  -C $(cmake) all
285endef
286define install_cmake
287        $(MAKE) -C $(cmake) install
288endef
289define touch_cmake
290        touch $(cmake)/timestamp
291endef
292
293$(cmake)/timestamp:
294        + $(clean_cmake)
295        + $(fetch_cmake)
296        + $(configure_cmake)
297        + $(build_cmake)
298        + $(install_cmake)
299        + $(touch_cmake)
300
301# -------------------------------------------------------------------------
302#  EXAMPLES
303# -------------------------------------------------------------------------
304
305examples_flags =        \
306        --with-tclsh="$(bindir)/tclsh8.4" \
307        --enable-shared \
308        $(common_flags)
309
310examples: $(examples)/timestamp
311
312clean-examples:
313        $(clean_examples)
314fetch-examples:
315        $(fetch_examples)
316configure-examples:
317        $(configure_examples)
318build-examples:
319        $(build_examples)
320install-examples:
321        $(install_examples)
322touch-examples:
323        $(touch_examples)
324force-examples: $(gui)/timestamp
325        + $(clean_examples)
326        + $(fetch_examples)
327        + $(configure_examples)
328        + $(build_examples)
329        + $(install_examples)
330        + $(touch_examples)
331
332define clean_examples
333        $(MAKE) -C $(examples) clean
334endef
335define fetch_examples
336endef
337define configure_examples
338        $(MKDIR_P) $(examples)
339endef
340define build_examples
341        $(MAKE) -C $(examples) all
342endef
343define install_examples
344        $(MAKE) -C $(examples) install
345endef
346define touch_examples
347        touch $(examples)/timestamp
348endef
349
350$(examples)/timestamp: $(gui)/timestamp
351        + $(clean_examples)
352        + $(fetch_examples)
353        + $(configure_examples)
354        + $(build_examples)
355        + $(install_examples)
356        + $(touch_examples)
357
358# -------------------------------------------------------------------------
359#  EXPAT
360# -------------------------------------------------------------------------
361
362expat_flags =   \
363        --enable-shared \
364        $(common_flags)
365
366expat: $(expat)/timestamp
367
368clean-expat:
369        $(clean_expat)
370fetch-expat:
371        $(fetch_expat)
372configure-expat:
373        $(configure_expat)
374build-expat:
375        $(build_expat)
376install-expat:
377        $(install_expat)
378touch-expat:
379        $(touch_expat)
380force-expat:
381        + $(clean_expat)
382        + $(fetch_expat)
383        + $(configure_expat)
384        + $(build_expat)
385        + $(install_expat)
386        + $(touch_expat)
387
388define clean_expat
389        $(RM) -r $(expat)
390endef
391define fetch_expat
392        sh $(srcdir)/fetch.sh $(TAG) $(runtime) $(expat)
393endef
394define configure_expat
395        $(MKDIR_P) $(expat)
396        cd $(expat); $(runtime)/$(expat)/configure $(expat_flags)
397endef
398define build_expat
399        $(MAKE)  -C $(expat) all
400endef
401define install_expat
402        $(MAKE) -C $(expat) install
403endef
404define touch_expat
405        touch $(expat)/timestamp
406endef
407
408$(expat)/timestamp:
409        + $(clean_expat)
410        + $(fetch_expat)
411        + $(configure_expat)
412        + $(build_expat)
413        + $(install_expat)
414        + $(touch_expat)
415
416# -------------------------------------------------------------------------
417#  EXPECT
418# -------------------------------------------------------------------------
419
420expect_flags =  \
421        --enable-shared \
422        --enable-64bit \
423        --with-tcl=$(libdir) \
424        --with-tclinclude=$(incdir) \
425        $(common_flags)
426
427expect: $(expect)/timestamp
428
429clean-expect:
430        $(clean_expect)
431fetch-expect:
432        $(fetch_expect)
433configure-expect:
434        $(configure_expect)
435build-expect:
436        $(build_expect)
437install-expect:
438        $(install_expect)
439touch-expect:
440        $(touch_expect)
441force-expect: $(tcl)/timestamp $(tk)/timestamp
442        + $(clean_expect)
443        + $(fetch_expect)
444        + $(configure_expect)
445        + $(build_expect)
446        + $(install_expect)
447        + $(touch_expect)
448
449define clean_expect
450        $(RM) -r $(expect)
451endef
452define fetch_expect
453        sh $(srcdir)/fetch.sh $(TAG) $(runtime) $(expect)
454endef
455define configure_expect
456        $(MKDIR_P) $(expect)
457        cd $(expect); $(runtime)/$(expect)/configure $(expect_flags)
458endef
459define build_expect
460        $(MAKE)  -C $(expect) all
461endef
462define install_expect
463        $(MAKE) -C $(expect) install
464endef
465define touch_expect
466        touch $(expect)/timestamp
467endef
468
469$(expect)/timestamp: $(tcl)/timestamp $(tk)/timestamp
470        + $(clean_expect)
471        + $(fetch_expect)
472        + $(configure_expect)
473        + $(build_expect)
474        + $(install_expect)
475        + $(touch_expect)
476
477# -------------------------------------------------------------------------
478#  GLEW
479# -------------------------------------------------------------------------
480
481glew_flags =    \
482        --enable-shared \
483        $(common_flags)
484
485glew: $(glew)/timestamp
486
487clean-glew:
488        $(clean_glew)
489fetch-glew:
490        $(fetch_glew)
491configure-glew:
492        $(configure_glew)
493build-glew:
494        $(build_glew)
495install-glew:
496        $(install_glew)
497touch-glew:
498        $(touch_glew)
499force-glew:
500        + $(clean_glew)
501        + $(fetch_glew)
502        + $(configure_glew)
503        + $(build_glew)
504        + $(install_glew)
505        + $(touch_glew)
506
507define clean_glew
508        $(RM) -r $(glew)
509endef
510define fetch_glew
511        sh $(srcdir)/fetch.sh $(TAG) $(runtime) $(glew)
512endef
513define configure_glew
514        $(MKDIR_P) $(glew)
515        cd $(glew); $(runtime)/$(glew)/configure $(glew_flags)
516endef
517define build_glew
518        $(MAKE)  -C $(glew) all
519endef
520define install_glew
521        $(MAKE) -C $(glew) install
522endef
523define touch_glew
524        touch $(glew)/timestamp
525endef
526
527$(glew)/timestamp:
528        + $(clean_glew)
529        + $(fetch_glew)
530        + $(configure_glew)
531        + $(build_glew)
532        + $(install_glew)
533        + $(touch_glew)
534
535# -------------------------------------------------------------------------
536#  GUI
537# -------------------------------------------------------------------------
538
539gui_flags =     \
540        --with-tclsh="$(bindir)/tclsh8.4" \
541        --enable-shared \
542        $(common_flags)
543
544gui: $(gui)/timestamp
545
546clean-gui:
547        $(clean_gui)
548fetch-gui:
549        $(fetch_gui)
550configure-gui:
551        $(configure_gui)
552build-gui:
553        $(build_gui)
554install-gui:
555        $(install_gui)
556touch-gui:
557        $(touch_gui)
558force-gui: $(librappture)/timestamp \
559                  $(blt)/timestamp \
560                  $(itk)/timestamp \
561                  $(htmlwidget)/timestamp \
562                  $(shape)/timestamp \
563                  $(sqlitetcl)/timestamp \
564                  $(vtk)/timestamp
565        + $(clean_gui)
566        + $(fetch_gui)
567        + $(configure_gui)
568        + $(build_gui)
569        + $(install_gui)
570        + $(touch_gui)
571
572define clean_gui
573        $(RM) -r $(gui)
574endef
575define fetch_gui
576endef
577define configure_gui
578        $(MKDIR_P) $(gui)
579        cd $(gui); $(srcdir)/$(gui)/configure $(gui_flags)
580endef
581define build_gui
582        $(MAKE) -C $(gui) all
583endef
584define install_gui
585        $(MAKE) -C $(gui) install
586endef
587define touch_gui
588        touch $(gui)/timestamp
589endef
590
591$(gui)/timestamp: $(librappture)/timestamp \
592                  $(blt)/timestamp \
593                  $(itk)/timestamp \
594                  $(htmlwidget)/timestamp \
595                  $(shape)/timestamp \
596                  $(sqlitetcl)/timestamp \
597                  $(vtk)/timestamp
598        + $(clean_gui)
599        + $(fetch_gui)
600        + $(configure_gui)
601        + $(build_gui)
602        + $(install_gui)
603        + $(touch_gui)
604
605# -------------------------------------------------------------------------
606#  HTMLWIDGET
607# -------------------------------------------------------------------------
608
609htmlwidget_flags = \
610        --enable-shared \
611        $(common_flags)
612
613htmlwidget: $(htmlwidget)/timestamp
614
615clean-htmlwidget:
616        $(clean_htmlwidget)
617fetch-htmlwidget:
618        $(fetch_htmlwidget)
619configure-htmlwidget:
620        $(configure_htmlwidget)
621build-htmlwidget:
622        $(build_htmlwidget)
623install-htmlwidget:
624        $(install_htmlwidget)
625touch-htmlwidget:
626        $(touch_htmlwidget)
627force-htmlwidget: $(tk)/timestamp
628        + $(clean_htmlwidget)
629        + $(fetch_htmlwidget)
630        + $(configure_htmlwidget)
631        + $(build_htmlwidget)
632        + $(install_htmlwidget)
633        + $(touch_htmlwidget)
634
635define clean_htmlwidget
636        $(RM) -r $(htmlwidget)
637endef
638define fetch_htmlwidget
639        sh $(srcdir)/fetch.sh $(TAG) $(runtime) $(htmlwidget)
640endef
641define configure_htmlwidget
642        $(MKDIR_P) $(htmlwidget)
643        cd $(htmlwidget); $(runtime)/$(htmlwidget)/configure $(htmlwidget_flags)
644endef
645define build_htmlwidget
646        $(MAKE) -C $(htmlwidget) all
647endef
648define install_htmlwidget
649        $(MAKE) -C $(htmlwidget) install
650endef
651define touch_htmlwidget
652        touch $(htmlwidget)/timestamp
653endef
654
655$(htmlwidget)/timestamp: $(tk)/timestamp
656        + $(clean_htmlwidget)
657        + $(fetch_htmlwidget)
658        + $(configure_htmlwidget)
659        + $(build_htmlwidget)
660        + $(install_htmlwidget)
661        + $(touch_htmlwidget)
662
663# -------------------------------------------------------------------------
664#  ITCL
665# -------------------------------------------------------------------------
666
667itcl_flags =    \
668        --enable-shared \
669        $(common_flags)
670
671itcl: $(itcl)/timestamp
672
673clean-itcl:
674        $(clean_itcl)
675fetch-itcl:
676        $(fetch_itcl)
677configure-itcl:
678        $(configure_itcl)
679build-itcl:
680        $(build_itcl)
681install-itcl:
682        $(install_itcl)
683touch-itcl:
684        $(touch_itcl)
685force-itcl:
686        + $(clean_itcl)
687        + $(fetch_itcl)
688        + $(configure_itcl)
689        + $(build_itcl)
690        + $(install_itcl)
691        + $(touch_itcl)
692
693define clean_itcl
694        $(RM) -r $(itcl)
695endef
696define fetch_itcl
697        sh $(srcdir)/fetch.sh $(TAG) $(srcdir) $(itcl)
698endef
699define configure_itcl
700        $(MKDIR_P) $(itcl)
701        cd $(itcl); $(runtime)/$(itcl)/configure $(itcl_flags)
702endef
703define build_itcl
704        $(MAKE)  -C $(itcl) all
705endef
706define install_itcl
707        $(MAKE) -C $(itcl) install
708endef
709define touch_itcl
710        touch $(itcl)/timestamp
711endef
712
713$(itcl)/timestamp: $(tcl)/timestamp
714        + $(clean_itcl)
715        + $(fetch_itcl)
716        + $(configure_itcl)
717        + $(build_itcl)
718        + $(install_itcl)
719        + $(touch_itcl)
720
721# -------------------------------------------------------------------------
722#  ITK
723# -------------------------------------------------------------------------
724
725itk_flags =     \
726        --enable-shared \
727        $(common_flags)
728
729itk: $(itk)/timestamp
730
731clean-itk:
732        $(clean_itk)
733fetch-itk:
734        $(fetch_itk)
735configure-itk:
736        $(configure_itk)
737build-itk:
738        $(build_itk)
739install-itk:
740        $(install_itk)
741touch-itk:
742        $(touch_itk)
743force-itk: $(itcl)/timestamp $(tk)/timestamp
744        + $(clean_itk)
745        + $(fetch_itk)
746        + $(configure_itk)
747        + $(build_itk)
748        + $(install_itk)
749        + $(touch_itk)
750
751define clean_itk
752        $(RM) -r $(itk)
753endef
754define fetch_itk
755        sh $(srcdir)/fetch.sh $(TAG) $(runtime) $(itk)
756endef
757define configure_itk
758        $(MKDIR_P) $(itk)
759        cd $(itk); $(runtime)/$(itk)/configure $(itk_flags)
760endef
761define build_itk
762        $(MAKE) -C $(itk) all
763endef
764define install_itk
765        $(MAKE) -C $(itk) install
766endef
767define touch_itk
768        touch $(itk)/timestamp
769endef
770
771$(itk)/timestamp: $(itcl)/timestamp $(tk)/timestamp
772        + $(clean_itk)
773        + $(fetch_itk)
774        + $(configure_itk)
775        + $(build_itk)
776        + $(install_itk)
777        + $(touch_itk)
778
779# -------------------------------------------------------------------------
780#  LANG
781# -------------------------------------------------------------------------
782
783lang_flags =    \
784        --enable-shared \
785        $(common_flags)
786
787lang: $(lang)/timestamp
788
789clean-lang:
790        $(clean_lang)
791fetch-lang:
792        $(fetch_lang)
793configure-lang:
794        $(configure_lang)
795build-lang:
796        $(build_lang)
797install-lang:
798        $(install_lang)
799touch-lang:
800        $(touch_lang)
801force-lang: $(gui)/timestamp
802        + $(clean_lang)
803        + $(fetch_lang)
804        + $(configure_lang)
805        + $(build_lang)
806        + $(install_lang)
807        + $(touch_lang)
808
809define clean_lang
810        $(RM) -r $(lang)
811endef
812define fetch_lang
813endef
814define configure_lang
815        $(MKDIR_P) $(lang)
816        cd $(lang); $(srcdir)/$(lang)/configure $(lang_flags)
817endef
818define build_lang
819        $(MAKE) -C $(lang) all
820endef
821define install_lang
822        $(MAKE) -C $(lang) install
823endef
824define touch_lang
825        touch $(lang)/timestamp
826endef
827
828$(lang)/timestamp: $(librappture)/timestamp  $(tcl)/timestamp $(itcl)/timestamp
829        + $(clean_lang)
830        + $(fetch_lang)
831        + $(configure_lang)
832        + $(build_lang)
833        + $(install_lang)
834        + $(touch_lang)
835
836
837# -------------------------------------------------------------------------
838#  LIBRAPPTURE
839# -------------------------------------------------------------------------
840
841librappture_flags =     \
842        --enable-shared \
843        $(common_flags)
844
845librappture: $(librappture)/timestamp
846
847clean-librappture:
848        $(clean_librappture)
849fetch-librappture:
850        $(fetch_librappture)
851configure-librappture:
852        $(configure_librappture)
853build-librappture:
854        $(build_librappture)
855install-librappture:
856        $(install_librappture)
857touch-librappture:
858        $(touch_librappture)
859force-librappture:
860        + $(clean_librappture)
861        + $(fetch_librappture)
862        + $(configure_librappture)
863        + $(build_librappture)
864        + $(install_librappture)
865        + $(touch_librappture)
866
867define clean_librappture
868        $(RM) -r $(librappture)
869endef
870define fetch_librappture
871endef
872define configure_librappture
873        $(MKDIR_P) $(librappture)
874        cd $(librappture); $(srcdir)/src/configure $(librappture_flags)
875endef
876define build_librappture
877        $(MAKE)  -C $(librappture) all
878endef
879define install_librappture
880        $(MAKE) -C $(librappture) install
881endef
882define touch_librappture
883        touch $(librappture)/timestamp
884endef
885
886$(librappture)/timestamp:
887        + $(clean_librappture)
888        + $(fetch_librappture)
889        + $(configure_librappture)
890        + $(build_librappture)
891        + $(install_librappture)
892        + $(touch_librappture)
893
894# -------------------------------------------------------------------------
895#  NANOSCALE
896# -------------------------------------------------------------------------
897
898nanoscale_flags =       \
899        --with-statsdir=$(statsdir) \
900        $(common_flags)
901
902nanoscale: $(nanoscale)/timestamp
903
904clean-nanoscale:
905        $(clean_nanoscale)
906fetch-nanoscale:
907        $(fetch_nanoscale)
908configure-nanoscale:
909        $(configure_nanoscale)
910build-nanoscale:
911        $(build_nanoscale)
912install-nanoscale:
913        $(install_nanoscale)
914touch-nanoscale:
915        $(touch_nanoscale)
916force-nanoscale: $(pymol)/timestamp
917        + $(clean_nanoscale)
918        + $(fetch_nanoscale)
919        + $(configure_nanoscale)
920        + $(build_nanoscale)
921        + $(install_nanoscale)
922        + $(touch_nanoscale)
923
924define clean_nanoscale
925        $(RM) -r $(nanoscale)
926endef
927define fetch_nanoscale
928endef
929define configure_nanoscale
930        $(MKDIR_P) $(nanoscale)
931        cd $(nanoscale); $(srcdir)/packages/vizservers/$(nanoscale)/configure $(nanoscale_flags)
932endef
933define build_nanoscale
934        $(MAKE) -C $(nanoscale) all
935endef
936define install_nanoscale
937        $(MAKE) -C $(nanoscale) install
938endef
939define touch_nanoscale
940        touch $(nanoscale)/timestamp
941endef
942
943$(nanoscale)/timestamp: $(pymol)/timestamp
944        + $(clean_nanoscale)
945        + $(fetch_nanoscale)
946        + $(configure_nanoscale)
947        + $(build_nanoscale)
948        + $(install_nanoscale)
949        + $(touch_nanoscale)
950
951
952# -------------------------------------------------------------------------
953#  NANOVIS
954# -------------------------------------------------------------------------
955
956nanovis_flags = \
957        --with-tcllib=$(libdir) \
958        --with-rappture=$(exec_prefix) \
959        --with-vtk="6.0" \
960        --with-vtk-includes=$(incdir) \
961        --with-vtk-libs=$(libdir) \
962        --with-statsdir=$(statsdir) \
963        $(common_flags)
964
965nanovis: $(nanovis)/timestamp
966
967clean-nanovis:
968        $(clean_nanovis)
969fetch-nanovis:
970        $(fetch_nanoscale)
971configure-nanovis:
972        $(configure_nanovis)
973build-nanovis:
974        $(build_nanovis)
975install-nanovis:
976        $(install_nanovis)
977touch-nanovis:
978        $(touch_nanovis)
979force-nanovis: $(librappture)/timestamp $(vtk)/timestamp
980        + $(clean_nanovis)
981        + $(fetch_nanovis)
982        + $(configure_nanovis)
983        + $(build_nanovis)
984        + $(install_nanovis)
985        + $(touch_nanovis)
986
987define clean_nanovis
988        $(RM) -r $(nanovis)
989endef
990define fetch_nanovis
991endef
992define configure_nanovis
993        $(MKDIR_P) $(nanovis)
994        cd $(nanovis); $(srcdir)/packages/vizservers/$(nanovis)/configure $(nanovis_flags)
995endef
996define build_nanovis
997        $(MAKE) -C $(nanovis) all
998endef
999define install_nanovis
1000        $(MAKE) -C $(nanovis) install
1001endef
1002define touch_nanovis
1003        touch $(nanovis)/timestamp
1004endef
1005
1006$(nanovis)/timestamp: $(librappture)/timestamp $(vtk)/timestamp
1007        + $(clean_nanovis)
1008        + $(fetch_nanovis)
1009        + $(configure_nanovis)
1010        + $(build_nanovis)
1011        + $(install_nanovis)
1012        + $(touch_nanovis)
1013
1014# -------------------------------------------------------------------------
1015#  OPTIMIZER
1016# -------------------------------------------------------------------------
1017
1018optimizer_flags =       \
1019        --with-tclsh="$(bindir)/tclsh8.4" \
1020        --enable-shared \
1021        $(common_flags)
1022
1023optimizer: $(optimizer)/timestamp
1024
1025clean-optimizer:
1026        $(clean_optimizer)
1027fetch-optimizer:
1028        $(fetch_optimizer)
1029configure-optimizer:
1030        $(configure_optimizer)
1031build-optimizer:
1032        $(build_optimizer)
1033install-optimizer:
1034        $(install_optimizer)
1035touch-optimizer:
1036        $(touch_optimizer)
1037force-optimizer: $(gui)/timestamp
1038        + $(clean_optimizer)
1039        + $(fetch_optimizer)
1040        + $(configure_optimizer)
1041        + $(build_optimizer)
1042        + $(install_optimizer)
1043        + $(touch_optimizer)
1044
1045define clean_optimizer
1046        $(RM) -r $(optimizer)
1047endef
1048define fetch_optimizer
1049endef
1050define configure_optimizer
1051        $(MKDIR_P) $(optimizer)
1052        cd $(optimizer); $(srcdir)/$(optimizer)/configure $(optimizer_flags)
1053endef
1054define build_optimizer
1055        $(MAKE) -C $(optimizer) all
1056endef
1057define install_optimizer
1058        $(MAKE) -C $(optimizer) install
1059endef
1060define touch_optimizer
1061        touch $(optimizer)/timestamp
1062endef
1063
1064$(optimizer)/timestamp: $(gui)/timestamp
1065        + $(clean_optimizer)
1066        + $(fetch_optimizer)
1067        + $(configure_optimizer)
1068        + $(build_optimizer)
1069        + $(install_optimizer)
1070        + $(touch_optimizer)
1071
1072# -------------------------------------------------------------------------
1073#  OSG
1074# -------------------------------------------------------------------------
1075
1076osg_flags =     \
1077        --with-tclsh="$(bindir)/tclsh8.4" \
1078        --enable-shared \
1079        $(common_flags)
1080
1081osg: $(osg)/timestamp
1082
1083clean-osg:
1084        $(clean_osg)
1085fetch-osg:
1086        $(fetch_osg)
1087configure-osg:
1088        $(configure_osg)
1089build-osg:
1090        $(build_osg)
1091install-osg:
1092        $(install_osg)
1093touch-osg:
1094        $(touch_osg)
1095force-osg: $(gui)/timestamp
1096        + $(clean_osg)
1097        + $(fetch_osg)
1098        + $(configure_osg)
1099        + $(build_osg)
1100        + $(install_osg)
1101        + $(touch_osg)
1102
1103define clean_osg
1104        $(RM) -r $(osg)
1105endef
1106define fetch_osg
1107        sh $(srcdir)/fetch.sh $(TAG) $(runtime) $(osg)
1108endef
1109define configure_osg
1110        $(MKDIR_P) $(osg)
1111        cd $(osg); $(runtime)/$(osg)/configure $(osg_flags)
1112endef
1113define build_osg
1114        $(MAKE) -C $(osg) all
1115endef
1116define install_osg
1117        $(MAKE) -C $(osg) install
1118endef
1119define touch_osg
1120        touch $(osg)/timestamp
1121endef
1122
1123$(osg)/timestamp:
1124        + $(clean_osg)
1125        + $(fetch_osg)
1126        + $(configure_osg)
1127        + $(build_osg)
1128        + $(install_osg)
1129        + $(touch_osg)
1130
1131# -------------------------------------------------------------------------
1132#  OSGEARTH
1133# -------------------------------------------------------------------------
1134
1135osgearth_flags =        \
1136        --with-tclsh="$(bindir)/tclsh8.4" \
1137        --enable-shared \
1138        $(common_flags)
1139
1140osgearth: $(osgearth)/timestamp
1141
1142clean-osgearth:
1143        $(clean_osgearth)
1144fetch-osgearth:
1145        $(fetch_osgearth)
1146configure-osgearth:
1147        $(configure_osgearth)
1148build-osgearth:
1149        $(build_osgearth)
1150install-osgearth:
1151        $(install_osgearth)
1152touch-osgearth:
1153        $(touch_osgearth)
1154force-osgearth: $(gui)/timestamp
1155        + $(clean_osgearth)
1156        + $(fetch_osgearth)
1157        + $(configure_osgearth)
1158        + $(build_osgearth)
1159        + $(install_osgearth)
1160        + $(touch_osgearth)
1161
1162define clean_osgearth
1163        $(RM) -r $(osgearth)
1164endef
1165define fetch_osgearth
1166        sh $(srcdir)/fetch.sh $(TAG) $(runtime) $(osgearth)
1167endef
1168define configure_osgearth
1169        $(MKDIR_P) $(osgearth)
1170        cd $(osgearth); $(runtime)/$(osgearth)/configure $(osgearth_flags)
1171endef
1172define build_osgearth
1173        $(MAKE) -C $(osgearth) all
1174endef
1175define install_osgearth
1176        $(MAKE) -C $(osgearth) install
1177endef
1178define touch_osgearth
1179        touch $(osgearth)/timestamp
1180endef
1181
1182$(osgearth)/timestamp: $(osg)/timestamp
1183        + $(clean_osgearth)
1184        + $(fetch_osgearth)
1185        + $(configure_osgearth)
1186        + $(build_osgearth)
1187        + $(install_osgearth)
1188        + $(touch_osgearth)
1189
1190# -------------------------------------------------------------------------
1191#  PYMOL
1192# -------------------------------------------------------------------------
1193
1194pymol_flags =   \
1195        $(common_flags)
1196
1197pymol: $(pymol)/timestamp
1198
1199clean-pymol:
1200        $(clean_pymol)
1201fetch-pymol:
1202        $(fetch_pymol)
1203configure-pymol:
1204        $(configure_pymol)
1205build-pymol:
1206        $(build_pymol)
1207install-pymol:
1208        $(install_pymol)
1209touch-pymol:
1210        $(touch_pymol)
1211force-pymol: $(glew)/timestamp
1212        + $(clean_pymol)
1213        + $(fetch_pymol)
1214        + $(configure_pymol)
1215        + $(build_pymol)
1216        + $(install_pymol)
1217        + $(touch_pymol)
1218
1219define clean_pymol
1220        $(RM) -r $(pymol)
1221endef
1222define fetch_pymol
1223        sh $(srcdir)/fetch.sh $(TAG) $(runtime) $(pymol)
1224endef
1225define configure_pymol
1226        $(MKDIR_P) $(pymol)
1227        cd $(pymol); $(runtime)/$(pymol)/configure $(pymol_flags)
1228endef
1229define build_pymol
1230        $(MAKE) -C $(pymol) all
1231endef
1232define install_pymol
1233        $(MAKE) -C $(pymol) install
1234endef
1235define touch_pymol
1236        touch $(pymol)/timestamp
1237endef
1238
1239$(pymol)/timestamp: $(glew)/timestamp
1240        + $(clean_pymol)
1241        + $(fetch_pymol)
1242        + $(configure_pymol)
1243        + $(build_pymol)
1244        + $(install_pymol)
1245        + $(touch_pymol)
1246
1247
1248# -------------------------------------------------------------------------
1249#  PYMOLPROXY
1250# -------------------------------------------------------------------------
1251
1252pymolproxy_flags =      \
1253        --with-tcllib=$(libdir) \
1254        --with-statsdir=$(statsdir) \
1255        $(common_flags)
1256
1257pymolproxy: $(pymolproxy)/timestamp
1258
1259clean-pymolproxy:
1260        $(clean_pymolproxy)
1261fetch-pymolproxy:
1262        $(fetch_pymolproxy)
1263configure-pymolproxy:
1264        $(configure_pymolproxy)
1265build-pymolproxy:
1266        $(build_pymolproxy)
1267install-pymolproxy:
1268        $(install_pymolproxy)
1269touch-pymolproxy:
1270        $(touch_pymolproxy)
1271force-pymolproxy: $(pymol)/timestamp
1272        + $(clean_pymolproxy)
1273        + $(fetch_pymolproxy)
1274        + $(configure_pymolproxy)
1275        + $(build_pymolproxy)
1276        + $(install_pymolproxy)
1277        + $(touch_pymolproxy)
1278
1279define clean_pymolproxy
1280        $(RM) -r $(pymolproxy)
1281endef
1282define fetch_pymolproxy
1283endef
1284define configure_pymolproxy
1285        $(MKDIR_P) $(pymolproxy)
1286        cd $(pymolproxy); $(srcdir)/packages/vizservers/$(pymolproxy)/configure $(pymolproxy_flags)
1287endef
1288define build_pymolproxy
1289        $(MAKE) -C $(pymolproxy) all
1290endef
1291define install_pymolproxy
1292        $(MAKE) -C $(pymolproxy) install
1293endef
1294define touch_pymolproxy
1295        touch $(pymolproxy)/timestamp
1296endef
1297
1298$(pymolproxy)/timestamp: $(pymol)/timestamp
1299        + $(clean_pymolproxy)
1300        + $(fetch_pymolproxy)
1301        + $(configure_pymolproxy)
1302        + $(build_pymolproxy)
1303        + $(install_pymolproxy)
1304        + $(touch_pymolproxy)
1305
1306# -------------------------------------------------------------------------
1307#  SHAPE
1308# -------------------------------------------------------------------------
1309
1310shape_flags =   \
1311        --enable-shared \
1312        --with-tclconf=$(libdir) \
1313        --with-tkconf=$(libdir) \
1314        $(common_flags)
1315
1316shape: $(shape)/timestamp
1317
1318clean-shape:
1319        $(clean_shape)
1320fetch-shape:
1321        $(fetch_shape)
1322configure-shape:
1323        $(configure_shape)
1324build-shape:
1325        $(build_shape)
1326install-shape:
1327        $(install_shape)
1328touch-shape:
1329        $(touch_shape)
1330force-shape: $(tk)/timestamp
1331        + $(clean_shape)
1332        + $(fetch_shape)
1333        + $(configure_shape)
1334        + $(build_shape)
1335        + $(install_shape)
1336        + $(touch_shape)
1337
1338define clean_shape
1339        $(RM) -r $(shape)
1340endef
1341define fetch_shape
1342        sh $(srcdir)/fetch.sh $(TAG) $(runtime) $(shape)
1343endef
1344define configure_shape
1345        $(MKDIR_P) $(shape)
1346        cd $(shape); $(runtime)/$(shape)/unix/configure $(shape_flags)
1347endef
1348define build_shape
1349        $(MAKE) -C $(shape) all
1350endef
1351define install_shape
1352        $(MAKE) -C $(shape) install
1353endef
1354define touch_shape
1355        touch $(shape)/timestamp
1356endef
1357
1358$(shape)/timestamp: $(tk)/timestamp
1359        + $(clean_shape)
1360        + $(fetch_shape)
1361        + $(configure_shape)
1362        + $(build_shape)
1363        + $(install_shape)
1364        + $(touch_shape)
1365
1366# -------------------------------------------------------------------------
1367#  SQLITETCL
1368# -------------------------------------------------------------------------
1369
1370sqlitetcl_flags = \
1371        --enable-shared \
1372        $(common_flags)
1373
1374sqlitetcl: $(sqlitetcl)/timestamp
1375
1376clean-sqlitetcl:
1377        $(clean_sqlitetcl)
1378fetch-sqlitetcl:
1379        $(fetch_sqlitetcl)
1380configure-sqlitetcl:
1381        $(configure_sqlitetcl)
1382build-sqlitetcl:
1383        $(build_sqlitetcl)
1384install-sqlitetcl:
1385        $(install_sqlitetcl)
1386touch-sqlitetcl:
1387        $(touch_sqlitetcl)
1388force-sqlitetcl: $(tcl)/timestamp
1389        + $(clean_sqlitetcl)
1390        + $(fetch_sqlitelcl)
1391        + $(configure_sqlitetcl)
1392        + $(build_sqlitetcl)
1393        + $(install_sqlitetcl)
1394        + $(touch_sqlitetcl)
1395
1396define clean_sqlitetcl
1397        $(RM) -r $(sqlitetcl)
1398endef
1399define fetch_sqlitetcl
1400        sh $(srcdir)/fetch.sh $(TAG) $(runtime) $(sqllitetcl)
1401endef
1402define configure_sqlitetcl
1403        $(MKDIR_P) $(sqlitetcl)
1404        cd $(sqlitetcl); $(runtime)/$(sqlitetcl)/configure $(sqlitetcl_flags)
1405endef
1406define build_sqlitetcl
1407        $(MAKE) -C $(sqlitetcl) all
1408endef
1409define install_sqlitetcl
1410        $(MAKE) -C $(sqlitetcl) install
1411endef
1412define touch_sqlitetcl
1413        touch $(sqlitetcl)/timestamp
1414endef
1415
1416$(sqlitetcl)/timestamp: $(tcl)/timestamp
1417        + $(clean_sqlitetcl)
1418        + $(fetch_sqlitelcl)
1419        + $(configure_sqlitetcl)
1420        + $(build_sqlitetcl)
1421        + $(install_sqlitetcl)
1422        + $(touch_sqlitetcl)
1423
1424# -------------------------------------------------------------------------
1425#  TCL
1426# -------------------------------------------------------------------------
1427
1428tcl_flags =     \
1429        --enable-shared \
1430        --disable-threads \
1431        $(common_flags)
1432
1433tcl: $(tcl)/timestamp
1434
1435clean-tcl:
1436        $(clean_tcl)
1437fetch-tcl:
1438        $(fetch_tcl)
1439configure-tcl:
1440        $(configure_tcl)
1441build-tcl:
1442        $(build_tcl)
1443install-tcl:
1444        $(install_tcl)
1445touch-tcl:
1446        $(touch_tcl)
1447force-tcl:
1448        + $(clean_tcl)
1449        + $(fetch_tcl)
1450        + $(configure_tcl)
1451        + $(build_tcl)
1452        + $(install_tcl)
1453        + $(touch_tcl)
1454
1455define fetch_tcl
1456        sh $(srcdir)/fetch.sh trunk $(srcdir) $(tcl)
1457endef
1458define clean_tcl
1459        $(RM) -r $(tcl)
1460endef
1461define fetch_tcl
1462        sh $(srcdir)/fetch.sh $(TAG) $(runtime) $(tcl)
1463endef
1464define configure_tcl
1465        $(MKDIR_P) $(tcl)
1466        cd $(tcl); $(srcdir)/runtime/$(tcl)/unix/configure $(tcl_flags)
1467endef
1468define build_tcl
1469        $(MAKE)  -C $(tcl) all
1470endef
1471define install_tcl
1472        $(MAKE) -C $(tcl) install
1473endef
1474define touch_tcl
1475        touch $(tcl)/timestamp
1476endef
1477
1478$(tcl)/timestamp:
1479        + $(clean_tcl)
1480        + $(fetch_tcl)
1481        + $(configure_tcl)
1482        + $(build_tcl)
1483        + $(install_tcl)
1484        + $(touch_tcl)
1485
1486# -------------------------------------------------------------------------
1487#  TCLLIB
1488# -------------------------------------------------------------------------
1489
1490tcllib_flags =  \
1491        --enable-shared \
1492        $(common_flags)
1493
1494tcllib: $(tcllib)/timestamp
1495
1496clean-tcllib:
1497        $(clean_tcllib)
1498fetch-tcllib:
1499        $(fetch_tcllib)
1500configure-tcllib:
1501        $(configure_tcllib)
1502build-tcllib:
1503        $(build_tcllib)
1504install-tcllib:
1505        $(install_tcllib)
1506touch-tcllib:
1507        $(touch_tcllib)
1508force-tcllib: $(tcl)/timestamp
1509        + $(clean_tcllib)
1510        + $(fetch_tcllib)
1511        + $(configure_tcllib)
1512        + $(build_tcllib)
1513        + $(install_tcllib)
1514        + $(touch_tcllib)
1515
1516define clean_tcllib
1517        $(RM) -r $(tcllib)
1518endef
1519define fetch_tcllib
1520        sh $(srcdir)/fetch.sh $(TAG) $(runtime) $(tcllib)
1521endef
1522define configure_tcllib
1523        $(MKDIR_P) $(tcllib)
1524        cd $(tcllib); $(runtime)/$(tcllib)/configure $(tcllib_flags)
1525endef
1526define build_tcllib
1527        $(MAKE) -C $(tcllib) all
1528endef
1529define install_tcllib
1530        $(MAKE) -C $(tcllib) install
1531endef
1532define touch_tcllib
1533        touch $(tcllib)/timestamp
1534endef
1535
1536$(tcllib)/timestamp: $(tcl)/timestamp
1537        + $(clean_tcllib)
1538        + $(fetch_tcllib)
1539        + $(configure_tcllib)
1540        + $(build_tcllib)
1541        + $(install_tcllib)
1542        + $(touch_tcllib)
1543
1544# -------------------------------------------------------------------------
1545#  TDOM
1546# -------------------------------------------------------------------------
1547
1548tdom_flags =    \
1549        --enable-shared \
1550        $(common_flags)
1551
1552tdom: $(tdom)/timestamp
1553
1554clean-tdom:
1555        $(clean_tdom)
1556fetch-tdom:
1557        $(fetch_tdom)
1558configure-tdom:
1559        $(configure_tdom)
1560build-tdom:
1561        $(build_tdom)
1562install-tdom:
1563        $(install_tdom)
1564touch-tdom:
1565        $(touch_tdom)
1566force-tdom: $(tcl)/timestamp
1567        + $(clean_tdom)
1568        + $(fetch_tdom)
1569        + $(configure_tdom)
1570        + $(build_tdom)
1571        + $(install_tdom)
1572        + $(touch_tdom)
1573
1574define clean_tdom
1575        $(RM) -r $(tdom)
1576endef
1577define fetch_tdom
1578        sh $(srcdir)/fetch.sh $(TAG) $(runtime) $(tdom)
1579endef
1580define configure_tdom
1581        $(MKDIR_P) $(tdom)
1582        cd $(tdom); $(runtime)/$(tdom)/configure $(tdom_flags)
1583endef
1584define build_tdom
1585        $(MAKE) -C $(tdom) all
1586endef
1587define install_tdom
1588        $(MAKE) -C $(tdom) install
1589endef
1590define touch_tdom
1591        touch $(tdom)/timestamp
1592endef
1593
1594$(tdom)/timestamp: $(tcl)/timestamp
1595        + $(clean_tdom)
1596        + $(fetch_tdom)
1597        + $(configure_tdom)
1598        + $(build_tdom)
1599        + $(install_tdom)
1600        + $(touch_tdom)
1601
1602# -------------------------------------------------------------------------
1603#  TESTER
1604# -------------------------------------------------------------------------
1605
1606tester_flags =  \
1607        --with-tclsh="$(bindir)/tclsh8.4" \
1608        --enable-shared \
1609        $(common_flags)
1610
1611tester: $(tester)/timestamp
1612
1613clean-tester:
1614        $(clean_tester)
1615fetch-tester:
1616        $(fetch_tester)
1617configure-tester:
1618        $(configure_tester)
1619build-tester:
1620        $(build_tester)
1621install-tester:
1622        $(install_tester)
1623touch-tester:
1624        $(touch_tester)
1625force-tester: $(gui)/timestamp
1626        + $(clean_tester)
1627        + $(fetch_tester)
1628        + $(configure_tester)
1629        + $(build_tester)
1630        + $(install_tester)
1631        + $(touch_tester)
1632
1633define clean_tester
1634        $(MAKE) -C $(tester) clean
1635endef
1636define fetch_tester
1637endef
1638define configure_tester
1639        $(MKDIR_P) $(tester)
1640endef
1641define build_tester
1642        $(MAKE) -C $(tester) all
1643endef
1644define install_tester
1645        $(MAKE) -C $(tester) install
1646endef
1647define touch_tester
1648        touch $(tester)/timestamp
1649endef
1650
1651$(tester)/timestamp: $(gui)/timestamp
1652        + $(clean_tester)
1653        + $(fetch_tester)
1654        + $(configure_tester)
1655        + $(build_tester)
1656        + $(install_tester)
1657        + $(touch_tester)
1658
1659# -------------------------------------------------------------------------
1660#  TK
1661# -------------------------------------------------------------------------
1662
1663tk_flags =      \
1664        --enable-shared \
1665        --disable-threads \
1666        $(common_flags)
1667
1668tk: $(tk)/timestamp
1669
1670clean-tk:
1671        $(clean_tk)
1672fetch-tk:
1673        $(fetch_tk)
1674configure-tk:
1675        $(configure_tk)
1676build-tk:
1677        $(build_tk)
1678install-tk:
1679        $(install_tk)
1680touch-tk:
1681        $(touch_tk)
1682force-tk: $(tcl)/timestamp
1683        + $(clean_tk)
1684        + $(fetch_tk)
1685        + $(configure_tk)
1686        + $(build_tk)
1687        + $(install_tk)
1688        + $(touch_tk)
1689
1690define clean_tk
1691        $(RM) -r $(tk)
1692endef
1693define fetch_tk
1694        sh $(srcdir)/fetch.sh $(TAG) $(runtime) $(tk)
1695endef
1696define configure_tk
1697        $(MKDIR_P) $(tk)
1698        cd $(tk); $(runtime)/$(tk)/unix/configure $(tk_flags)
1699endef
1700define build_tk
1701        $(MAKE)  -C $(tk) all
1702endef
1703define install_tk
1704        $(MAKE) -C $(tk) install
1705endef
1706define touch_tk
1707        touch $(tk)/timestamp
1708endef
1709
1710$(tk)/timestamp: $(tcl)/timestamp
1711        + $(clean_tk)
1712        + $(fetch_tk)
1713        + $(configure_tk)
1714        + $(build_tk)
1715        + $(install_tk)
1716        + $(touch_tk)
1717
1718# -------------------------------------------------------------------------
1719#  TKING
1720# -------------------------------------------------------------------------
1721
1722tkimg_flags =   \
1723        --enable-shared \
1724        $(common_flags)
1725
1726tkimg: $(tkimg)/timestamp
1727
1728clean-tkimg:
1729        $(clean_tkimg)
1730fetch-tkimg:
1731        $(fetch_tkimg)
1732configure-tkimg:
1733        $(configure_tkimg)
1734build-tkimg:
1735        $(build_tkimg)
1736install-tkimg:
1737        $(install_tkimg)
1738touch-tkimg:
1739        $(touch_tkimg)
1740force-tkimg: $(tk)/timestamp
1741        + $(clean_tkimg)
1742        + $(fetch_tkimg)
1743        + $(configure_tkimg)
1744        + $(build_tkimg)
1745        + $(install_tkimg)
1746        + $(touch_tkimg)
1747
1748define clean_tkimg
1749        $(RM) -r $(tkimg)
1750endef
1751define fetch_tkimg
1752        sh $(srcdir)/fetch.sh $(TAG) $(runtime) $(tkimg)
1753endef
1754define configure_tkimg
1755        $(MKDIR_P) $(tkimg)
1756        cd $(tkimg); $(runtime)/$(tkimg)/configure $(tkimg_flags)
1757endef
1758define build_tkimg
1759        $(MAKE) -C $(tkimg) all
1760endef
1761define install_tkimg
1762        $(MAKE) -C $(tkimg) install
1763endef
1764define touch_tkimg
1765        touch $(tkimg)/timestamp
1766endef
1767
1768$(tkimg)/timestamp: $(tk)/timestamp
1769        + $(clean_tkimg)
1770        + $(fetch_tkimg)
1771        + $(configure_tkimg)
1772        + $(build_tkimg)
1773        + $(install_tkimg)
1774        + $(touch_tkimg)
1775
1776# -------------------------------------------------------------------------
1777#  TLS
1778# -------------------------------------------------------------------------
1779
1780tls_flags =     \
1781        --enable-shared \
1782        $(common_flags)
1783
1784tls: $(tls)/timestamp
1785
1786clean-tls:
1787        $(clean_tls)
1788fetch-tls:
1789        $(fetch_tls)
1790configure-tls:
1791        $(configure_tls)
1792build-tls:
1793        $(build_tls)
1794install-tls:
1795        $(install_tls)
1796touch-tls:
1797        $(touch_tls)
1798force-tls: $(tcl)/timestamp
1799        + $(clean_tls)
1800        + $(fetch_tls)
1801        + $(configure_tls)
1802        + $(build_tls)
1803        + $(install_tls)
1804        + $(touch_tls)
1805
1806define clean_tls
1807        $(RM) -r $(tls)
1808endef
1809define fetch_tls
1810        sh $(srcdir)/fetch.sh $(TAG) $(runtime) $(tkimg)
1811endef
1812define configure_tls
1813        $(MKDIR_P) $(tls)
1814        cd $(tls); $(runtime)/$(tls)/configure $(tls_flags)
1815endef
1816define build_tls
1817        $(MAKE) -C $(tls) all
1818endef
1819define install_tls
1820        $(MAKE) -C $(tls) install
1821endef
1822define touch_tls
1823        touch $(tls)/timestamp
1824endef
1825
1826$(tls)/timestamp: $(tcl)/timestamp
1827        + $(clean_tls)
1828        + $(fetch_tls)
1829        + $(configure_tls)
1830        + $(build_tls)
1831        + $(install_tls)
1832        + $(touch_tls)
1833
1834# -------------------------------------------------------------------------
1835#  VIDEO
1836# -------------------------------------------------------------------------
1837
1838video_flags =   \
1839        --with-tclsh="$(bindir)/tclsh8.4" \
1840        --enable-shared \
1841        $(common_flags)
1842
1843video: $(video)/timestamp
1844
1845clean-video:
1846        $(clean_video)
1847fetch-video:
1848        $(fetch_video)
1849configure-video:
1850        $(configure_video)
1851build-video:
1852        $(build_video)
1853install-video:
1854        $(install_video)
1855touch-video:
1856        $(touch_video)
1857force-video: $(gui)/timestamp
1858        + $(clean_video)
1859        + $(fetch_video)
1860        + $(configure_video)
1861        + $(build_video)
1862        + $(install_video)
1863        + $(touch_video)
1864
1865define clean_video
1866        $(RM) -r $(video)
1867endef
1868define fetch_video
1869endef
1870define configure_video
1871        $(MKDIR_P) $(video)
1872        cd $(video); $(srcdir)/$(video)/configure $(video_flags)
1873endef
1874define build_video
1875        $(MAKE) -C $(video) all
1876endef
1877define install_video
1878        $(MAKE) -C $(video) install
1879endef
1880define touch_video
1881        touch $(video)/timestamp
1882endef
1883
1884$(video)/timestamp: $(gui)/timestamp
1885        + $(clean_video)
1886        + $(fetch_video)
1887        + $(configure_video)
1888        + $(build_video)
1889        + $(install_video)
1890        + $(touch_video)
1891
1892
1893# -------------------------------------------------------------------------
1894#  VORONOI
1895# -------------------------------------------------------------------------
1896
1897voronoi_flags = \
1898        --enable-shared \
1899        $(common_flags)
1900
1901voronoi: $(voronoi)/timestamp
1902
1903clean-voronoi:
1904        $(clean_voronoi)
1905fetch-voronoi:
1906        $(fetch_voronoi)
1907configure-voronoi:
1908        $(configure_voronoi)
1909build-voronoi:
1910        $(build_voronoi)
1911install-voronoi:
1912        $(install_voronoi)
1913touch-voronoi:
1914        $(touch_voronoi)
1915force-voronoi:
1916        + $(clean_voronoi)
1917        + $(fetch_voronoi)
1918        + $(configure_voronoi)
1919        + $(build_voronoi)
1920        + $(install_voronoi)
1921        + $(touch_voronoi)
1922
1923define clean_voronoi
1924        $(RM) -r $(voronoi)
1925endef
1926define fetch_voronoi
1927        sh $(srcdir)/fetch.sh $(TAG) $(runtime) $(voronoi)
1928endef
1929define configure_voronoi
1930        $(MKDIR_P) $(voronoi)
1931        cd $(voronoi); $(runtime)/$(voronoi)/configure $(voronoi_flags)
1932endef
1933define build_voronoi
1934        $(MAKE)  -C $(voronoi) all
1935endef
1936define install_voronoi
1937        $(MAKE) -C $(voronoi) install
1938endef
1939define touch_voronoi
1940        touch $(voronoi)/timestamp
1941endef
1942
1943$(voronoi)/timestamp:
1944        + $(clean_voronoi)
1945        + $(fetch_voronoi)
1946        + $(configure_voronoi)
1947        + $(build_voronoi)
1948        + $(install_voronoi)
1949        + $(touch_voronoi)
1950
1951# -------------------------------------------------------------------------
1952#  VTK
1953# -------------------------------------------------------------------------
1954
1955vtk_flags =     \
1956        $(common_flags)
1957
1958vtk: $(vtk)/timestamp
1959
1960clean-vtk:
1961        $(clean_vtk)
1962fetch-vtk:
1963        $(fetch_vtk)
1964configure-vtk:
1965        $(configure_vtk)
1966build-vtk:
1967        $(build_vtk)
1968install-vtk:
1969        $(install_vtk)
1970touch-vtk:
1971        $(touch_vtk)
1972force-vtk: $(cmake)/timestamp $(glew)/timestamp $(tk)/timestamp
1973        + $(clean_vtk)
1974        + $(fetch_vtk)
1975        + $(configure_vtk)
1976        + $(build_vtk)
1977        + $(install_vtk)
1978        + $(touch_vtk)
1979
1980define clean_vtk
1981        $(RM) -r $(vtk)
1982endef
1983define fetch_vtk
1984        sh $(srcdir)/fetch.sh $(TAG) $(srcdir) $(vtk)
1985endef
1986define configure_vtk
1987        $(MKDIR_P) $(vtk)
1988        cd $(vtk); $(runtime)/$(vtk)/configure $(vtk_flags)
1989endef
1990define build_vtk
1991        $(MAKE)  -C $(vtk) all
1992endef
1993define install_vtk
1994        $(MAKE) -C $(vtk) install
1995endef
1996define touch_vtk
1997        touch $(vtk)/timestamp
1998endef
1999
2000$(vtk)/timestamp: $(cmake)/timestamp $(glew)/timestamp $(tk)/timestamp
2001        + $(clean_vtk)
2002        + $(fetch_vtk)
2003        + $(configure_vtk)
2004        + $(build_vtk)
2005        + $(install_vtk)
2006        + $(touch_vtk)
2007
2008# -------------------------------------------------------------------------
2009#  VTKVIS
2010# -------------------------------------------------------------------------
2011
2012vtkvis_flags =  \
2013        --with-tcllib=$(libdir) \
2014        --with-rappture=$(libdir) \
2015        --with-vtk="6.0" \
2016        --with-vtk-includes=$(incdir) \
2017        --with-vtk-libs=$(libdir) \
2018        --with-statsdir=$(statsdir) \
2019        $(common_flags)
2020
2021vtkvis: $(vtkvis)/timestamp
2022
2023clean-vtkvis:
2024        $(clean_vtkvis)
2025fetch-vtkvis:
2026        $(fetch_vtkvis)
2027configure-vtkvis:
2028        $(configure_vtkvis)
2029build-vtkvis:
2030        $(build_vtkvis)
2031install-vtkvis:
2032        $(install_vtkvis)
2033touch-vtkvis:
2034        $(touch_vtkvis)
2035force-vtkvis: $(vtk)/timestamp
2036        + $(clean_vtkvis)
2037        + $(fetch_vtkvis)
2038        + $(configure_vtkvis)
2039        + $(build_vtkvis)
2040        + $(install_vtkvis)
2041        + $(touch_vtkvis)
2042
2043define clean_vtkvis
2044        $(RM) -r $(vtkvis)
2045endef
2046define fetch_vtkvis
2047endef
2048define configure_vtkvis
2049        $(MKDIR_P) $(vtkvis)
2050        cd $(vtkvis); $(srcdir)/packages/vizservers/$(vtkvis)/configure $(vtkvis_flags)
2051endef
2052define build_vtkvis
2053        $(MAKE) -C $(vtkvis) all
2054endef
2055define install_vtkvis
2056        $(MAKE) -C $(vtkvis) install
2057endef
2058define touch_vtkvis
2059        touch $(vtkvis)/timestamp
2060endef
2061
2062$(vtkvis)/timestamp: $(vtk)/timestamp
2063        + $(clean_vtkvis)
2064        + $(fetch_vtkvis)
2065        + $(configure_vtkvis)
2066        + $(build_vtkvis)
2067        + $(install_vtkvis)
2068        + $(touch_vtkvis)
2069
2070# -------------------------------------------------------------------------
2071#  GEOVIS
2072# -------------------------------------------------------------------------
2073
2074geovis_flags =  \
2075        --with-tcllib=$(libdir) \
2076        --with-rappture=$(libdir) \
2077        --with-vtk="6.0" \
2078        --with-vtk-includes=$(incdir) \
2079        --with-vtk-libs=$(libdir) \
2080        --with-statsdir=$(statsdir) \
2081        $(common_flags)
2082
2083geovis: $(geovis)/timestamp
2084
2085clean-geovis:
2086        $(clean_geovis)
2087fetch-geovis:
2088        $(fetch_geovis)
2089configure-geovis:
2090        $(configure_geovis)
2091build-geovis:
2092        $(build_geovis)
2093install-geovis:
2094        $(install_geovis)
2095touch-geovis:
2096        $(touch_geovis)
2097force-geovis: $(vtk)/timestamp
2098        + $(clean_geovis)
2099        + $(fetch_geovis)
2100        + $(configure_geovis)
2101        + $(build_geovis)
2102        + $(install_geovis)
2103        + $(touch_geovis)
2104
2105define clean_geovis
2106        $(RM) -r $(geovis)
2107endef
2108define fetch_geovis
2109endef
2110define configure_geovis
2111        $(MKDIR_P) $(geovis)
2112        cd $(geovis); $(srcdir)/packages/vizservers/$(geovis)/configure $(geovis_flags)
2113endef
2114define build_geovis
2115        $(MAKE) -C $(geovis) all
2116endef
2117define install_geovis
2118        $(MAKE) -C $(geovis) install
2119endef
2120define touch_geovis
2121        touch $(geovis)/timestamp
2122endef
2123
2124$(geovis)/timestamp: $(osgearth)/timestamp
2125        + $(clean_geovis)
2126        + $(fetch_geovis)
2127        + $(configure_geovis)
2128        + $(build_geovis)
2129        + $(install_geovis)
2130        + $(touch_geovis)
2131
2132# -------------------------------------------------------------------------
2133#  ZLIB
2134# -------------------------------------------------------------------------
2135
2136zlib_flags =    \
2137        --enable-shared \
2138        $(common_flags)
2139
2140zlib: $(zlib)/timestamp
2141
2142clean-zlib:
2143        $(clean_zlib)
2144fetch-zlib:
2145        $(fetch_zlib)
2146configure-zlib:
2147        $(configure_zlib)
2148build-zlib:
2149        $(build_zlib)
2150install-zlib:
2151        $(install_zlib)
2152touch-zlib:
2153        $(touch_zlib)
2154force-zlib:
2155        + $(clean_zlib)
2156        + $(fetch_zlib)
2157        + $(configure_zlib)
2158        + $(build_zlib)
2159        + $(install_zlib)
2160        + $(touch_zlib)
2161
2162define clean_zlib
2163        $(RM) -r $(zlib)
2164endef
2165define fetch_zlib
2166        sh $(srcdir)/fetch.sh $(TAG) $(runtime) $(zlib)
2167endef
2168define configure_zlib
2169        $(MKDIR_P) $(zlib)
2170        cd $(zlib); $(runtime)/$(zlib)/configure $(zlib_flags)
2171endef
2172define build_zlib
2173        $(MAKE) -C $(zlib) all
2174endef
2175define install_zlib
2176        $(MAKE) -C $(zlib) install
2177endef
2178define touch_zlib
2179        touch $(zlib)/timestamp
2180endef
2181
2182$(zlib)/timestamp:
2183        + $(clean_zlib)
2184        + $(fetch_zlib)
2185        + $(configure_zlib)
2186        + $(build_zlib)
2187        + $(install_zlib)
2188        + $(touch_zlib)
Note: See TracBrowser for help on using the repository browser.