My favorites
▼
|
Sign in
coot
Interactive molecular graphics
Project Home
Downloads
Wiki
Issues
Source
Checkout
Browse
Changes
Source path:
svn
/
trunk
/
build-it-win
‹r3951
r4002
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
# -*-shell-script-*-s
# Prerequisites: sed, GNU make, libtool, wget
#
# (and for autogening: GNU m4, GNU autoconf, GNU automake)
#
# libz is optional for the moment
# 1.3 Put RELEASE-NOTES on web site too
# 1.4 Apply both of Ezra's patches of today Wed Mar 2 22:51:36 GMT 2005
# Update clipper version (the one with shelx .fcf ability)
# 1.5 Apply Ezra's gtkglarea patch and GSL patch.
# Update version of FFTW and other updates from MATSUURA Takanori.
# 1.6 Update to mmdb-1.0.8 [# for molrep output]
# 1.7 Fix logic of fftw test
# 1.8 Add the clipper edcalc patch (suggested by Ezra ages ago)
# 1.9 Add Fedora Core 4 support and testing for the need to build mccp4,
# mmdb and clipper.
# 1.10 Tidy up nightly code.
# 1.11 Add code testing the need for guile_gui and goosh.
# 1.12 Tidy nightly code again.
# 1.13 Don't escape the "."s in gsub for new gawk (Ward Smith).
# 1.14 20050628 Test for imlib on the installation, not the system (ignore
# the system).
# 1.15 20050709 Add glib gstrfuncs patch
# 1.16 20050709 Update to guile 1.6.7 and add lt_preloaded_symbols patch
# 1.17 20050721 Added clipper status code to compiling clipper part.
# Redirect stderr output?
# fix build_mccp4 problem.
# 1.18 20050722 Fix guile build (wrong http tar file).
# Added freeglut
# 1.19 20050803 Update version of guile-gtk to 0.41
# 1.20 20050815 Several updates and clean up from MATSUURA Takanori.
# 1.21 20050815 Stop if wget test fails.
# 1.22 20050916 Update build for freeglut to use --disable-warnings and
# CFLAGS
# 1.23 20050916 Move "set" so we don't see confusing default coot_version
# 1.24 20051012 Do pre-release tars for a few days.
# 1.25 20051017 Don't make install if Coot's makes fails. Don't make -k
# 1.26 20051018 Handle clipper nxmap patch.
# 1.27 20051027 [Gif, Paris] Fix tarred directory for nightly pre-release
# tars.
# 1.28 20051101 Fix the md5sum for nxmap.h
# 1.29 20051104 Apply most of MATSUURA Takanori's fixes.
# Use CCP4 libs (mtz, clipper, mmdb).
# 1.30 20051109 Darwin setting of FC for CCP4 libs configure.
# 1.31 20051114 Fix coot tar file problem on building pre-release (or not).
# 1.32 20060205 Add scripting variable debugging (its currently not making
# python tar files)
# 1.33 20060214 Get wget testing tar file from YSBL, not chem.gla
# 1.34 20060219 Correct the install position of libccp4c.la
# 1.35 20060219 create time stamp with current time, not the time of
# the previous ccp4 libs file, now the find ctime test works
# as I wanted.
# 1.36 20060220 Add a libmmdb.la too.
# 1.37 20060222 Add Bob Nolte's proxy settings
# 1.38 20060224 dylib variable for libmmdb.la and libccp4c.la
# 1.39 20060225 Fix sedding of libmmdb.la and libccp4c.la
# 1.40 20060323 copy over coot.py to share/coot/python (if we built with
# python)
# 1.41 20060401 Big changes for ccp4 5.0.2 ccp4c libs.
# 1.42 20060404 Various small build debuggings.
# 1.43 20060405 Fix do_nightlies syntax error and fix up glut_prefix build
# problem.
# 1.44 20060405 Fix the tarred directory name when this is not a pre-release
# 1.45 20060406 Check for missing reference structures and monomer lib and
# install them if needed.
# 1.46 20060418 use install_top_dir variable to copy over coot.py (not
# $coot_prefix!)
# 1.47 20060419 Remove the mmdb binaries
# 1.48 20060420 J. Maclean says no guile. He is right. So check install for
# guile, not system.
# 1.49 20060420 Replace many $AUTOBUILD_INSTALLED with $install_top_dir.
# 1.50 20060421 Replace other $AUTOBUILD_INSTALLED with $install_top_dir for
# tar file creation.
# 1.51 20060425 net-http was installing into the wrong place because it had
# been set to install_top_dir, but this was not set as a shell
# (or configured) variable so it was just blank [James Murray].
# Now we export install_top_dir.
# 1.52 20060427 Don't add unecessary tagging of -pre-release to tar_dir at
# the end.
# 1.53 20060503 Force GSL to be in $install_top_dir rather than anywhere.
# 1.54 20060519 Update to extract the right coot version from the release and
# pre-release directories.
# 1.55 20060621 Shuffle around the test for using pre-release
# 1.56 20060626 Fixes from MATSUURA Takanori. Shuffle around the usage of
# install_top_dir.
# 1.57 20060704 run imlib-config from the installation, not anywhere.
# 1.58 20060705 Fix wrong directory to build libtiff.
# 1.59 20060706 guile-config should run with an argument, otherise it
# returns with exit status 1 (and we test for non-zero).
# 1.60 20060706 Fix (directory for) mmdb include file test.
# 1.61 20060707 Add to coot configure line the option for guile_gtk
# 1.62 20060708 Fix coot_prerelease_exists typo in setting install_top_dir
# (oops).
# 1.63 20060708 Add jpeg dependency for imlib
# 1.64 20060708 Add libungif test to installation, not system (imlib
# dependency).
# 1.65 20060710 Add removal of coot_wrap_guile.cc compilation when python
# scripting.
# 1.66 20060710 Python on a Sunday.
# 1.67 20060711 Try to fix up the Makefile for PNG.
# 1.68 20060723 Add in the updates to ltmain.sh, ltconfig and config.guess/sub
# for Mactel build. Add build for readline.
# Readline version typo fixed.
# 1.69 20060724 ENABLE_PYTHON_COOT variable is tested. Don't display
# a variables if we are using a proxy.
# 1.70 20060728 pass CFLAGS and LDFLAGS to guile's configure
# 1.71 20060730 Add test for 64-bit Linux to update config.xxxs and libtool.
# Installation readline built now, not system.
# 1.72 20060801 Use mmdb-1.0.8-ysbl-2, which installs includes in the include
# dir. This matches clipper cif_data_io.cpp which presumes that
# it is there. (And is a clean thing to do anyway).
# 1.73 20060801 Use the new version of libccp4c, with some of Ralf's patches
# and includes that go into include/ccp4 dir.
# 1.74 20060801 Use CCP4_CXXFLAGS argument to clipper (it does the wrong thing
# with --with-ccp4)
# 1.75 20060801 Use -pre-2 version of SSMlib, that has -Ixxx/include/mmdb to
# find mmdb include files.
# 1.76 20060808 test for libjpeg.$shared_lib_ext not libjpeg.so. LTE bug.
# 1.77 20060818 Force update of libtool and config files for libjpeg. Extend
# the make install proceedure. Lynn Ten Eyck reported problems
# here.
# 1.78 20060823 Add poll fix and getpwuid fix to glib build on Intel Mac.
# 1.79 20060827 Add fix for gtk-canvas from fink for Intel Mac.
# 1.80 20061002 Change freeglut test to test instaltion, not system.
# 1.81 20061012 The path used to find *-config files should be the same one
# that new executables are added (it was $AUTOBUILD_INSTALLED)
# and it should be $AUTOBUILD_INSTALLED-pre-release/bin) when
# we are building a pre-release.
# 1.82 20061012 Change the destination tar file so that there are nightly
# and stable directories for the binary tar files on the web
# server.
# 1.83 20061107 cd to the clipper dir when building clipper. Pirate and
# bucca are not (attempted to be) built then.
# 1.84 20061107 Capture and report error status from make in GSL (intel mac
# build fails).
# 1.85 20061107 Use GSL version 1.8, which includes Charles Ballard's fix for
# fp_regs.h
# 1.86 20061108 Add fink-based args for configure of gtk for Darwin
# 1.87 20061108 Fix ltmain.sh updating for Gtk (oops!).
# 1.88 20061122 Fix coot tar directory now that we have revision numbers in
# tar file name.
# 1.89 20061123 Fix/add test for ssmlib build (now depends on mmdb build) and
# libccp4c build (now depends on xxx/include/ccp4/cmtzlib.h).
# 1.90 20061128 Allow the user to specify if the dependencies should be checked
# on the system or only in the autobuild installed directory.
# Needs more checks to use this. Currently only glib and gtk
# tests.
# 1.91 20061211 Don't make install for guile-gtk if the make fails - or the
# dependency check for guile-gtk in coot's configure passes
# when it should fail (maybe).
# 1.92 20061212 Apply Charles Ballards libtool patch for Macs for imlib and
# guile-gtk.
# 1.93 20061212 Fiddle the env vars to compile gtk+ on Mac.
# 1.94 20070104 Non-pre-release build problems, BINARY_DEST_DIR
# 2.01 20070109 imlib tar gz should be downloaded from the correct directory
# (sigh).
# 2.02 20070117 Try to compile clipper with -fno-strict-aliasing
# 2.03 20070123 Tell us where the gtkglarea include file was found.
# 2.04 20070124 GCC 3.2 on RH8 machine cannot compile new clipper, so add a
# patch if needed.
# 2.05 20070216 Put libtiff after libjpeg and give tiff's configure command
# line args to find jpeg.
# 2.06 20070306 Put in the clipper<->ccp4 new dist patch.
# 2.07 20070319 Remove == comparisons - Lothar Esser.
# 2.08 20070424 --with-jpeg-lib-dir should be a lib dir!
# 2.09 20070501 Fix the setting of coot_version when no pre-release set.
# 2.10 20071002 Post install slim the binaries. Add helper functions.
# 2.11 20071005 Add some debugging to make_tar. It doesn't seem to work
# currently.
# 2.12 20071005 Fix post_install_slim call.
# 2.13 20071005 Fix slim_dir
# 2.14 20071006 Adjust python scripting settings, so that it should try
# to compile with python most of the time now.
# 2.15 20071008 Fix extra fi, uncommented typo.
# 2.16 20071010 ENABLE_PYTHON_COOT=no for now.
# 2.17 20071105 Swap out DL Clipper for York clipper [whoosh, bang, kerpow!]
# enable-cns
# 2.18 20071105 Backpeddle to mmdb 1.08. Baah.
# 2.19 20071108 Version 1.08-ysbl-3 of mmdb.
# 2.20 20071118 No longer make the full fat tar file.
# 2.21 20071120 Sourcefource no longer distributes libungif, now in
# ysbl software/extras
# 2.22 20071121 set the architecture for ubuntu systems.
# 2.23 20071125 Fix typo in recent fixes.
# 2.24 20071126 Fix setting of systype for MacOSX, hopefully.
# 2.25 20071126 Another try to fix setting of systype for MacOSX.
# 2.26 20071130 Try to enable python
# 2.27 20071207 More python tinkering. Upgrade to 2.5.1
# 2.28 20071207 Add greg. If in York, use it to test before installing.
# 2.29 20071208 Setup CCP4 and use it to test coot before making binaries.
# 2.30 20071209 Add dewinter's ccp4 setup in setup_ccp4.
# 2.31 20071212 Redirect testing output to $LOGS/$HOST-testing.log
# 2.32 20071213 Copy over the ChangeLog, README and RELEASE-NOTES on good test
# 2.33 20071215 Pythonize only sometimes, default off.
# 2.34 20071215 Tell us some Python info
# 2.35 20071215 Python settings outside the subshell.
# 2.36 20071219 Set up for testing and tars on biop too.
# 3.00 20080108 Gtk+-2 version
# 3.01 20080118 Add GtkGlExt
# 3.02 20080121 Tinker with guile build settings.
# 3.03 20080124 Build GTK2 from scratch: librsvg, cairo, pango, glitz. glib, gtk+-2
# 3.04 20080128 Add a test for the existance of pygtk
# 3.05 20080129 Add pkg-config and pygobject
# 3.06 20080130 Add test for pycairo
# 3.07 20080130 pycairo needs 1.4.12 - so test for cairo, setting build_gtk=1 on
# failure
# 3.08 20080130 Remove static patch (for sgi). Add test/build for freetype2
# 3.09 20080130 fontconfig added too.
# 3.10 20080131 Change HOSTLOGDIR to include gtk2 to separate it from gtk1 build logs.
# 3.11 20080201 Fix problem in scripting args to coot's configure.
# 3.12 20080207 Add test and build of ATK, needed for gtk+2.10.x
# 3.13 20080208 lib cleaning problems, add debugging.
# 3.14 20080208 Try requiring gtk 2.10
#
# BL says:: I should do build versioning tooo!
# let's start with 1.1
#
# 1.1 08/05/11 switch to new style Refmac library
# 1.2 25/06/11 apply clipper thread patch
# 1.3 31/07/11 add proper goocanvas.
script_version=1.3
# :: NOTE::
# this "strange" construction of variable names: x=${x:=thing} sets the
# variable x only if it has not previously been defined.
#
# So, the idea is that you write a wrapper for this script (defining typically
# AUTOBUILD_INSTALLED, AUTOBUILD_BUILD, LOGS and build_coot_prerelease) then
# source this file. That means that you (probably) don't have to edit your
# version of build-it every time it changes.
# ENABLE_PYTHON_COOT: if ENABLE_PYTHON_COOT is set to 0 or "no" then
# python coot is not enable (guile coot is enabled). if
# ENABLE_PYTHON_COOT is set, but not set to 0 or no then python coot
# is enabled. If ENABLE_PYTHON_COOT is not set, the guile-coot is
# enabled (python coot is not enabled).
# Pythonizing coot makes non-transferable binararies (why?). Let
# the pythonness be controlled on the command line:
#
ENABLE_PYTHON_COOT=yes
# for Windows we shall have an option to enable Guile and python is default
if [ "$1" = "guile" ] ; then
ENABLE_GUILE_COOT=yes
build_type=-guile
else
ENABLE_GUILE_COOT=no
build_type=
fi
# Set the host and the OS.
# Fairly fundamental.
#
OS=`uname`
HOST=`hostname`
# Do we need to use a proxy server to get documents from the web? (set
# to 1 if we do)
use_proxy=${use_proxy:=}
# if we do need a proxy then we should give the proxy host and port too:
proxy_host=${proxy_host:=myproxy.com}
proxy_port=${proxy_port:=800}
no_proxy=${no_proxy:=".corp.net.com"}
# This is where the compiled binaries/libraries/data get installed:
# Note that the directory name must NOT end in a /
#
AUTOBUILD_INSTALLED=${AUTOBUILD_INSTALLED:=${HOME}/autobuild/${OS}-${HOST}}
# or perhaps, for the adventurous:
#AUTOBUILD_INSTALLED=$CCP4_MASTER
# This is where the actual build (compilation) master directory is:
# a temporary or scratch directory would be sensible.
#
# AUTOBUILD_BUILD=${HOME}/autobuild
# I'm putting my build on "scratch space"
AUTOBUILD_BUILD=${AUTOBUILD_BUILD:=/home/bernhard/autobuild}
# This is where the build logs go:
# suggested value:
# LOGS=$AUTOBUILD_BUILD/logs
# but I want to put my log file on the web, so I put them here:
LOGS=${LOGS:=$HOME/public_html/build-logs/${OS}-${HOST}}
PUBLIC_HTML_LOGS=/z/build-logs
# set this to "no" if you don't want to compile the pre-release code.
# build_coot_prerelease=
build_coot_prerelease=${build_coot_prerelease:=1}
# We shall we check dependencies?
#
# Should we look for gtk etc on the system or only in the installed
# build directory? We want to do the first if we are a person using
# this build script to build coot themselves and we want to do the
# second to build a external-dependency-free coot build (like making
# the binary tars distributed from York).
# check_dependencies_in_install_only=
check_dependencies_in_install_only=1
# get build specials, e.g. change the compiler or the compiler options
# (e.g build for debugging), extra libraries etc setup LD_LIBRARY_DIR
# (or whatever) to include the autobuild library dir so that
# intermediate (configure compile) programs run and the addition to
# the path of GNU make and wget.
#
# use this to specify config_extras
#
# options are: GL_prefix, e.g. SunOS has Mesa Graphics - this is
# where to find them:
# glut_prefix, optionally can use freeglut
#
# Suggested value: comment out this line
specs=${specs:=$HOME/autobuild/build-scripts/${HOST}-specials}
# Make nightly binary tarballs?
# You probably don't want to do this, so recommended is do_nightlies=0
do_nightlies=${do_nightlies:=1}
# if you do want to build them where should they go?
# NIGHTLY_DEST_DIR=$AUTOBUILD_BUILD
NIGHTLY_DEST_DIR=${NIGHTLY_DEST_DIR:=${HOME}/public_html/software/binaries/nightlies/pre-release}
# if we are not building a nightly/pre-release, i.e. this is a binary
# for a stable release, they go somewhere else:
#
STABLE_DEST_DIR=${STABLE_DEST_DIR:=${HOME}/public_html/software/binaries/stable}
# When we fail to extract the correct tar file from the web site, what
# shall we build instead?
#
fallback_coot_version=coot-0.5.2
# ----------------------------------------------------------------
# End of tinkering with parameters.
# ----------------------------------------------------------------
# First, check that this is bash.
#
if [ "$BASH" = "" ] ; then
echo this shell is not bash\!
echo this script must be run with bash\!
exit
fi
# now the functions:
function mkdir_maybe {
dir=$1
if [ ! -e "$dir" ] ; then
mkdir $dir
fi
}
# Give args: prefix-dir and (based on is-static-flag) either
# "clear-static" or "clear-dynamic" #
#
function post_install_slim {
echo we are slimming directory $1
fat_dir="$1"
cleaned_dir="$2"
clear_type="$3"
echo fat_dir is $fat_dir
echo clear_type is $clear_type
echo cleaned_dir is $cleaned_dir
mkdir_maybe $cleaned_dir
mkdir_maybe $cleaned_dir/bin
mkdir_maybe $cleaned_dir/lib
lib_sos=`cd $fat_dir && ls -1 lib/lib*.so*`
lib_as=`cd $fat_dir && ls -1 lib/lib*.a`
if [ "$clear_type" = "clear-dynamic" ] ; then
keep_lib_archs="$lib_as"
fi
if [ "$clear_type" = "clear-static" ] ; then
keep_lib_archs="$lib_sos"
fi
for file in etc html info man share bin/coot bin/coot-real \
bin/findwaters bin/findwaters-real bin/findligand bin/findligand-real \
bin/guile lib/$python_version $keep_lib_archs ;
do
dn=`dirname $file`
if [ -e $fat_dir/$file ] ; then
echo rsync -axr $fat_dir/$file $cleaned_dir/$dn
rsync -axr $fat_dir/$file $cleaned_dir/$dn
else
echo $fat_dir/$file does not exist
fi
done
}
function make_tar {
echo in make_tar args: $1 $2
echo in make_tar: in dir: $PWD
tar_dir=$1
tar_file_name=$2
cd $install_top_dir/..
if [ -e $tar_dir ] ; then
echo taring nightly... from $tar_dir to $tar_file_name
tar czf $tar_file_name $tar_dir
status=$?
if [ "$status" != 0 ] ; then
echo ERROR:: tar czf $tar_file_name $tar_dir failed!
echo ERROR:: tar failed > $tar_file_name.md5sum
rm $tar_file_name
else
md5sum $tar_file_name > $tar_file_name.md5sum
/bin/ls -l $tar_file_name >> $tar_file_name.md5sum
echo done tar successfully.
fi
else
echo ERROR:: tar target directory $tar_dir does not exist.
fi
}
function setup_ccp4 {
# we have access to $OS and $arch.
if test "$OS" = Linux ; then
setup_file=/y/programs/xtal/ccp4-6.0/ccp4-6.0/include/ccp4.setup-sh
if test -e $setup_file ; then
. $setup_file
fi
setup_file=/lmb/dorset/linux_software/ccp4-6.0/include/ccp4.setup-bash
if test -e $setup_file ; then
. $setup_file
fi
fi
if test "$OS" = Darwin ; then
. /usr/local/ccp4-6.0.2/bin/ccp4.setup-sh
fi
}
# exit
function my_exit {
exit_arg=$1
shift
extra_args=$*
# remove evtl. existing coot-version files
# and installer variable file
rm -f $install_top_dir/coot-version
# even if failed
# we write a number of variables to a file which we import in the
# masta script so that we preserve these
# first remove an the old file
var_file=${HOME}/wincoot-installer-variables
echo deleting $var_file
rm -f $var_file
echo LOGS=${LOGS} > $var_file
echo NIGHTLY_DEST_DIR=${NIGHTLY_DEST_DIR} >> $var_file
echo wincoot_version=$wincoot_version >> $var_file
echo build_coot_prerelease=$build_coot_prerelease >> $var_file
echo coot_build_status=$coot_build_status >> $var_file
echo coot_test_status=$coot_test_status >> $var_file
echo binary_type_latest=$binary_type_latest >> $var_file
echo HOSTLOG_STUB=$compilers_dir${build_type} >> $var_file
echo fail-build $extra_args > $LOGS/gtk2${build_type}-test-status
if [ -e $LOGS/gtk2${build_type}-build-status ] ; then
rm $LOGS/gtk2${build_type}-build-status
fi
# now copy the log files
cp -r ${LOGS} ${PUBLIC_HTML_LOGS}
echo copy the log files from ${LOGS} to ${PUBLIC_HTML_LOGS}
exit $exit_arg
}
# Return 0 on success, 1 on failure (or not tested)
#
#
# This can only be run when the coot tar file and greg tests have been
# untared (in this particular build)
#
# we should be in the directory where coot was untarred for building
# when this function was called.
#
function test_coot_guile {
echo testing with greg
echo currently we are here:
pwd
date
if [ "$1" != "" ] ; then
coot_binary=$1
else
coot_binary=$install_top_dir/bin/coot/real
fi
if test "$run_tests" = true ; then
# let's test our new coot
# the greg tests are where the coot source code was untarred.
#
if [ ! -d greg-tests ] ; then
echo greg-tests dir missing
return 1
fi
setup_ccp4
cat <<EOF > command-line-greg.scm
(use-modules (ice-9 greg))
(set! greg-tools (list "greg-tests"))
(set! greg-debug #t)
(set! greg-verbose 5)
(let ((r (greg-test-run)))
(if r
(coot-real-exit 0)
(coot-real-exit 1)))
EOF
echo $install_top_dir/bin/coot-real --no-graphics --script command-line-greg.scm
$install_top_dir/bin/coot-real --no-graphics --script command-line-greg.scm
status=$?
if [ $status = 0 ] ; then
echo test_coot: coot test passed
return 0
else
echo test_coot: coot test failed
return 1
fi
else
echo run_tests is not true, not testing
return 1
fi
}
# Return 0 on success, 1 on failure (or not tested)
#
# we should be in the directory where coot was untarred for building
# when this function was called.
#
function test_coot_python {
echo testing with python unittest
echo currently we are here:
pwd
date
if [ "$1" != "" ] ; then
coot_binary=$1
else
coot_binary=$install_top_dir/bin/coot-real
fi
if test "$run_tests" = true ; then
# let's test our new coot
# first clean up coot-backup otherwise we'll fill up the disk
echo removing old backup-files in coot-backup
rm coot-backup/*
# for python build we need to set COOT_PYTHON_DIR and COOT_HOME
COOT_PYTHON_DIR=$install_top_dir/share/coot/python
COOT_HOME=$HOME
PYTHONPATH=$COOT_PYTHON_DIR
PYTHONHOME=$install_top_dir/bin
export PYTHONPATH
export PYTHONHOME
export COOT_PYTHON_DIR
export COOT_HOME
echo $coot_binary --no-graphics --script python-tests/coot_unittest.py
$coot_binary --no-graphics --script python-tests/coot_unittest.py
status=$?
echo BL DEBUG status of tests is $status
if [ $status = 0 ] ; then
echo test_coot_python: coot test passed
return 0
else
echo test_coot_python: coot test failed
return 1
fi
else
echo run_tests is not true, not testing
return 1
fi
}
# now on to some code!
if [ "$use_proxy" = 1 ] ; then
# establish proxy settings
printf "Proxy user: "
read proxy_user
printf "Proxy password: "
read -s proxy_pass
printf "\n"
http_proxy="http://${proxy_user}:${proxy_pass}@${proxy_host}:${proxy_port}/"
https_proxy="http://${proxy_user}:${proxy_pass}@${proxy_host}:${proxy_port}/"
ftp_proxy="http://${proxy_user}:${proxy_pass}@${proxy_host}:${proxy_port}/"
ssl_proxy="http://${proxy_user}:${proxy_pass}@${proxy_host}:${proxy_port}/"
export http_proxy https_proxy ftp_proxy ssl_proxy no_proxy
fi
# use the right (GNU) tar and provide the path to wget (needed
# for downloads) and to GNU make - (which is necesary for python
# at least).
#
# So that python and the *-configs are found when it is installed:
# A bit of a kludge because we do testing for pre-release later.
# It's a logical mess.
#
#we shall add the PATH for python here too:
# BL says: not sure if we really want the pre install PATH to be set here too
#if test "$build_coot_prerelease" = 1 ; then
# PATH=${AUTOBUILD_INSTALLED}-pre-release-gtk2${build_type}/bin:${AUTOBUILD_INSTALLED}-pre-release-gtk2${build_type}/python2.5:$PATH
#else
# PATH=$AUTOBUILD_INSTALLED-gtk2$build_type/bin:$AUTOBUILD_INSTALLED-gtk2$build_type/python2.5:$PATH
#fi
PATH=$PATH:/usr/local/bin:/usr/sbin:/usr/bsd:/sbin:/usr/bin:/bin:
PATH=$PATH:/etc:/usr/etc
#
export PATH
echo PATH is now: $PATH
echo AUTOBUILD_BUILD is $AUTOBUILD_BUILD
# This is where the sources downloaded from network go:
AUTOBUILD_SOURCES=${AUTOBUILD_BUILD}/sources
echo AUTOBUILD_SOURCES is $AUTOBUILD_SOURCES
if (! test -d ${AUTOBUILD_SOURCES}) ; then
mkdir -p ${AUTOBUILD_SOURCES}
fi
# now make the build logs directory
mkdir -p $LOGS
shared_static_flag="--disable-shared"
shared_lib_ext=dll
systype=unknown
# malloc.h business, Darwin does not have malloc.h
# used in the gtk_canvas build
have_malloc=1
if test "$OS" = "Darwin" ; then
have_malloc=0
fix_ulong=1
update_libtool=1
update_config_guess_sub=1
shared_static_flag="--disable-static"
shared_lib_ext=dylib
need_readline_patch=1
# uname -a gives processor type in last field on Darwin
processor=`uname -a | awk '{print $(NF)}'`
need_gtk_imlib_libtool_fix=1
if test "$processor" = "i386" ; then
need_glib_getpwuid_fix=1
need_glib_poll_fix=1
need_gtk_canvas_patch=1
fi
osversion=`sw_vers -productVersion`
systype=MacOSX-${osversion}-${processor}
fi
# redirect the output.
#
# exec 2>&1 > $LOGS/$HOST.log
# Try not to redirect standard out so that it goes to
# the sub-shell log? (testing)
echo INFO:: redirecting std output to $LOGS/gtk2${build_type}-build.log
exec > $LOGS/gtk2${build_type}-build.log
echo This is script version $script_version for Gtk2
# local tinkering because our sgi runs out of room on /tmp on compiling
if [ $HOST = batman ] ; then
TMPDIR=$HOME/tmp
export TMPDIR
fi
date
#
if [ -n "$specs" ] ; then
if [ -e "$specs" ] ; then
echo running these extras:
echo . --------------------------------
cat "$specs"
. "$specs"
echo . --------------------------------
fi
fi
#initially unset:
if test $OS = Linux ; then
architecture=`uname -i`
# uname -i and uname -p (strangely) return unknown on my ubuntu
if test $architecture = unknown ; then
architecture=`uname -m`
fi
fi
# now architecture is something like i386 or x86_64
# now test for 64 bit Linux:
if test "$OS" = "Linux" ; then
processor=`uname -a | awk '{print $NF}'`
# on my Redhat i386, uname returns:
# Linux kalypso 2.6.12-1.1398_FC4 #1 Fri Jul 15 00:52:32 EDT 2005 i686 athlon i386 GNU/Linux
# 64 bit Ubuntu:
# Linux kalypso 2.6.22-14-generic #1 SMP Sun Oct 14 21:45:15 GMT 2007 x86_64 GNU/Linux
# from that I presume we need $(NF-2) to get the arch (not NF-1). Eh?
# arch=`uname -a | awk '{print $(NF-1)}'`
arch=`uname -a | awk '{print $(NF-1)}'`
echo currently architecture is $architecture
if test "$architecture" = x86_64 -o "$architecture" = ia64 ; then
update_libtool=1
update_config_guess_sub=1
else
echo this is not a 64 bit machine
fi
fi
if test $OS = Linux ; then
which rpm > /dev/null
have_rpm=$?
if [ $have_rpm = 0 ] ; then
for i in fedora redhat centos ; do
dist=`rpm -q --qf '%{name}' ${i}-release`
if test $? = 0 ; then
dist_name=`echo ${dist} | sed s/\-release//g`
dist_ver=`rpm -q --qf '%{version}' ${i}-release`
break
else
dist_name='unknown'
fi
done
else
dist_name='unknown'
fi
case ${dist_name} in
redhat )
case ${dist_ver} in
[0-9] | [0-9].[0-9]* )
systype=${architecture}-redhat-${dist_ver}
;;
* )
systype=rhel-`echo ${dist_ver} | sed s/[A-Za-z]//g`
;;
esac
;;
fedora | centos )
systype=${architecture}-${dist_name}-${dist_ver}
;;
* )
if test -r /etc/issue; then
dist_name=`awk 'NR==1{print tolower($1)}' /etc/issue`
dist_ver=`awk 'NR==1{print tolower($2)}' /etc/issue`
systype=${architecture}-${dist_name}-${dist_ver}
else
systype=${architecture}-unknown-Linux
fi
;;
esac
fi
if test $OS = IRIX64 ; then
osversion=`uname -r`
systype=${osversion}-sgi
fi
if test $OS = IRIX ; then
osversion=`uname -r`
systype=${osversion}-sgi
fi
if test $OS = OSF1 ; then
osversion=`uname -r | sed s/V//g`
systype=${osversion}-OSF1
fi
if test "$OS" = "MINGW32_NT-5.1" ; then
systype=`uname -m`
fi
echo systype: $systype
echo update_libtool: $update_libtool
echo update_config_guess_sub: $update_config_guess_sub
# give us some diagnostic shell information:
# (what extra things did $specs give us?)
#
if [ "$use_proxy" = 1 ] ; then
echo no diagnostic variables, we are using a proxy.
else
set
fi
# We want to add some compiler info in the directory name.
# If CC is set, use that,
# If not, try gcc,
# if not, try cc
#
# Similarly for the c++ compiler info
# If CXX is set, use that
# if not, try g++
# if not, try c++
if [ -n "$CC" ] ; then
# CC was set
gcctest=`$CC --version | awk 'NR==1 {print $2}'`
if [ "$gcctest" != "(GCC)" ] ; then
# but not gcc
v=$CC-`$CC -v`
if [ $? -ne 0 ] ; then
v="missing_version"
fi
else
# gcc
v=$CC-`$CC --version | awk 'NR==1 {print $3}'`
fi
else
# CC not set
v=gcc-`gcc -dumpversion | head -1`
if [ $? -ne 0 ] ; then
# not gcc
# try cc
v=cc-`cc -v`
if [ $? -ne 0 ] ; then
v="missing_version"
fi
fi
fi
if [ -n "$CXX" ] ; then
# CXX was set
gxxtest=`$CXX-$CXX --version | awk 'NR==1 {print $2}'`
if [ "$gxxtest" != "(GCC)" ] ; then
# but not g++
w=$CXX-`$CXX -v`
if [ $? -ne 0 ] ; then
w="missing_cxx_version"
fi
else
# g++
w=$CXX-`$CXX --version | awk 'NR==1 {print $3}'`
fi
else
# CXX not set
w=g++-`g++ -dumpversion | head -1`
if [ $? -ne 0 ] ; then
# not g++
# try c++
w=c++-`c++ -v`
if [ $? -ne 0 ] ; then
# try CC
w=CC-`CC -v`
if [ $? -ne 0 ] ; then
w="missing_c++_version"
fi
fi
fi
# note that g++ 3.2 cannot compile clipper's test_contrib.cpp.
# So, if we have g++ 3.2 or less, then we need to get and apply
# test_contrib.cpp.patch
awk -vversion=$w 'BEGIN{ exit (version+0 >= 3.3)}'
wvers=$?
if [ $wvers = 0 ] ; then
need_clipper_contrib_patch=true
fi
fi
# do we actually have g++ (or c++?)
if ! g++ --version ; then
if ! c++ --version ; then
echo no c++/g++ compiler. Exit now
my_exit 2
fi
fi
# so now we have v and w set to something. We
# need to sanitize that something.
v_fid=`echo $v | sed 's/ /_/g'`
w_fid=`echo $w | sed 's/ /_/g'`
compilers_dir=gtk2-${v_fid}_and_${w_fid}
HOSTLOGDIR=$LOGS/$compilers_dir${build_type}
if [ ! -e $HOSTLOGDIR ] ; then
mkdir -p $HOSTLOGDIR
if [ $? -ne 0 ] ; then
#
echo DISASTER: could not make directory $HOSTLOGDIR
echo exiting.
my_exit 2
fi
fi
# need to add test that make is GNU make
echo "Testing version of make"
MAKE=make
make --version
if [ $? -ne 0 ] ; then
# definately not GNU make
# Try gmake then....
gmake --version
if [ $? -ne 0 ] ; then
nomake=1
else
MAKE=gmake
nomake=0
fi
if [ $nomake -eq 1 ] ; then
echo Ooops. Your make '(' `which make` ')' is not GNU make and gmake not found.
echo Exiting now.
my_exit 2
fi
fi
echo testing for patch
patch --version > /dev/null
if [ $? -ne 0 ] ; then
echo no patch - exit now
my_exit 2
fi
if [ ! -e "$AUTOBUILD_BUILD" ] ; then
mkdir "$AUTOBUILD_BUILD"
if [ $? -ne 0 ] ; then
echo mkdir of the AUTOBUILD_DIR "$AUTOBUILD_BUILD" failed.
my_exit 2
fi
fi
cd $AUTOBUILD_BUILD
if [ $? -ne 0 ] ; then
echo $AUTOBUILD_BUILD failed for some reason. Now in `pwd`
fi
# for ccp4 (20051104) compatibility, we can't use colons in the date string
date=`date -u +'%Y-%m-%d__T%H_%M_%S'`
echo Date: $date
# now in $AUTOBUILD_BUILD
# we dont want to have the 'stupid' date and time in there...
# I dont like it
mkdir ${HOST}${build_type}
if [ $? -ne 0 ] ; then
echo mkdir ${HOST}${build_type} failed for some reason. Now in `pwd`
fi
cd ${HOST}${build_type}
if [ $? -ne 0 ] ; then
echo cd ${HOST}${build_type} failed for some reason. Now in `pwd`
fi
build_dir=`pwd`
echo checking wget
echo which wget
which wget
wget "http://www.ysbl.york.ac.uk/~emsley/build-logs/build-notes"
if [ $? -ne 0 ] ; then
echo wget failed for some reason
echo exiting now.
my_exit 1
else
echo Done wget check.
WGET="wget -N -P ${AUTOBUILD_SOURCES}"
fi
# latest version (without .tar.gz extension)
coot_version=$fallback_coot_version
pre_release_server_dir=http://www.ysbl.york.ac.uk/~emsley/software/pre-release/
pre_release_server_dir=http://www.biop.ox.ac.uk/coot/software/source/pre-releases/
pre_release_server_dir=http://lmb.bioch.ox.ac.uk/coot/software/source/pre-releases/
release_server_dir=http://www.ysbl.york.ac.uk/~emsley/software/
release_server_dir=http://www.biop.ox.ac.uk/coot/software/source/releases/
release_server_dir=http://lmb.bioch.ox.ac.uk/coot/software/source/releases
${WGET} -O ${AUTOBUILD_SOURCES}/index.html -o ${AUTOBUILD_SOURCES}/wget-e.s.p.log $release_server_dir
${WGET} -O ${AUTOBUILD_SOURCES}/index-pre-release.html -o ${AUTOBUILD_SOURCES}/wget-e.s.p.log $pre_release_server_dir
pre_release_files_html=""
if [ $build_coot_prerelease = 1 ] ; then
pre_release_files_html=${AUTOBUILD_SOURCES}/index-pre-release.html
fi
if [ $build_coot_prerelease = yes ] ; then
pre_release_files_html=${AUTOBUILD_SOURCES}/index-pre-release.html
fi
coot_version_tmp=`egrep href ${AUTOBUILD_SOURCES}/index.html $pre_release_files_html | sed -e 's/.*">//' -e 's/<.*//' | awk '
BEGIN {bmajor = -1; bminor = -1; bmicro = -1; }
# /^coot-[0-9]\.[0-9]+\.[0-9]+.*\.tar\.gz/ {
/^coot-[0-9]\.[0-9]+.*\.tar\.gz$/ {
n = split($1,arr,"[-.]");
# print n,"parts";
# print arr[1], arr[2], arr[3], arr[4];
# print arr[5], arr[6], arr[7], arr[8];
major = arr[2] + 0;
minor = arr[3] + 0;
micro = arr[4] + 0;
# print "testing best:",file, bmajor, bminor, bmicro,"vs. this:", major, minor, micro
if (major > bmajor) {
file = $1;
bmajor = major;
bminor = minor;
bmicro = micro;
} else {
if (major == bmajor) {
if (minor > bminor) {
file = $1;
bmajor = major;
bminor = minor;
bmicro = micro;
} else {
if (minor == bminor) {
if (micro >= bmicro) {
file = $1;
bmajor = major;
bminor = minor;
bmicro = micro;
}
}
}
}
}
}
END {
gsub(".tar.gz.*", "", file);
print file; # which is a version now.
}
'`
if [ -z "$coot_version_tmp" ] ; then
echo clever coot_version extraction failed, using default.
else
coot_version=$coot_version_tmp
echo setting coot_version to $coot_version from extraction
fi
# are we doing a pre-release in York?
#
# problem here? generic_prefix is not yet set. What happens to coot_prefix?
#
#domainname=`domainname`
domainname="yorksbl"
coot_prefix=
if test -z "$build_coot_prerelease" ; then
if [ "$domainname" = "yorksbl" ] ; then
# we are in York, let's try the pre-release coot...
echo we are in York
build_coot_prerelease=1
fi
fi
if [ "$domainname" = "yorksbl" ] ; then
# we are in York, let's test. Always.
echo we are in York
run_tests=true
fi
if [ "$domainname" = "biop" ] ; then
run_tests=true
fi
echo BUILDING prelease variable $build_coot_prerelease
# override the switch which turns off the building of the pre-release here:
# build_coot_prerelease=1
# Let's initially set coot_prerelease_exists to not-exist, then we
# try to download it from the Coot web site, and if it exists we set
# coot_prerelease_exists to 1. If it doesn't exist, we don't do that
# of course and we also don't make the install_top_dir to be the pre-release
# directory later on.
coot_prerelease_exists=
if test "$build_coot_prerelease" = 1 ; then
${WGET} -O ${AUTOBUILD_SOURCES}/index.html -o ${AUTOBUILD_SOURCES}/wget-e.s.p.log $pre_release_server_dir
coot_version_pre=`egrep href ${AUTOBUILD_SOURCES}/index.html | sed -e 's/.*">//' -e 's/<.*//' | awk ' /^coot-[0-9]\.[0-9]+.*-pre.*\.tar\.gz$/ {
last=$0 }
END {
print last
}
'`
echo INFO:: building pre-release and coot_version_pre is $coot_version_pre
if [ -z "$coot_version_pre" ] ; then
echo trying to build pre-release coot, but failed to find pre-release version
# this may actually be a stable release here
build_coot_prerelease=0
BINARY_TAR_DEST_DIR=$STABLE_DEST_DIR
mkdir -p ${BINARY_TAR_DEST_DIR}
else
build_coot_prerelease=1 # belt and braces
coot_prerelease_exists=1
# tinker with coot_prefix, it is generic_prefix with pre-release added to prefix dir
coot_prefix="--prefix=${AUTOBUILD_INSTALLED}-pre-release-gtk2${build_type} ${config_extras:-}"
coot_source_tar_file=$pre_release_server_dir/$coot_version_pre
coot_version=`echo $coot_version_pre | sed s/\.tar.gz//`
BINARY_TAR_DEST_DIR=$NIGHTLY_DEST_DIR
mkdir -p ${NIGHTLY_DEST_DIR}
echo INFO:: set the target destination for binary tar file \(BINARY_TAR_DEST_DIR\) to $NIGHTLY_DEST_DIR
fi
else
# this is a stable release
BINARY_TAR_DEST_DIR=$STABLE_DEST_DIR
mkdir -p ${BINARY_TAR_DEST_DIR}
fi
echo INFO:: binary tar destination dir: BINARY_TAR_DEST_DIR is $BINARY_TAR_DEST_DIR
# set the build prefix for installed stuff. Put everything in the
# pre-release directory if we are building a pre-release.
# (Perhaps this bit of code should go down lower, where we test
# build_coot_prerelease again
#
# we need install_top_dir because we use it to copy over coot.py
# to the install python directory.
#
if [ "$build_coot_prerelease" = 1 ] ; then
if [ "$coot_prerelease_exists" = 1 ] ; then
generic_prefix="--prefix=${AUTOBUILD_INSTALLED}-pre-release-gtk2${build_type} ${config_extras:-}"
install_top_dir=${AUTOBUILD_INSTALLED}-pre-release-gtk2${build_type}
else
# don't use pre-release
generic_prefix="--prefix=${AUTOBUILD_INSTALLED}-gtk2${build_type} ${config_extras:-}"
coot_prefix="$generic_prefix"
install_top_dir=${AUTOBUILD_INSTALLED}-gtk2${build_type}
fi
else
# not pre-release
generic_prefix="--prefix=${AUTOBUILD_INSTALLED}-gtk2${build_type} ${config_extras:-}"
install_top_dir=${AUTOBUILD_INSTALLED}-gtk2${build_type}
coot_prefix="$generic_prefix"
fi
# we shall include python here too
# but first define the versions
#python_version=python2.5
#pver=2.5.2
# no 2.6.7 for windows yet, need 2.6 because of gtk 2.16, cos of gtkglext
#pver=2.6.7
pver=2.6.6
pver_short=${pver%.*}
python_version=python${pver_short}
PATH=$install_top_dir/bin:$install_top_dir/${python_version}:$PATH
echo the path before testing for installed modules is $PATH
installed_check_maybe_prefix=
if [ "$check_dependencies_in_install_only" = 1 ] ; then
installed_check_maybe_prefix=$install_top_dir/bin/
fi
# we need to export this for net-http, because it doesn't set
# variables from configure, we rely on a shell (environment) variable.
export install_top_dir
echo testing for install_top_dir: "$install_top_dir"
if [ ! -e "$install_top_dir" ] ; then
echo $install_top_dir does not exist
echo making directory $install_top_dir
mkdir -p $install_top_dir
if [ $? -ne 0 ] ; then
echo DISASTER: $install_top_dir does not exist and no way
echo to make it.
my_exit 2
fi
else
echo INFO:: $install_top_dir exists already.
fi
echo done testing for $install_top_dir
if [ ! -e "$install_top_dir/lib" ] ; then
echo making "$install_top_dir/lib"
mkdir -p "$install_top_dir/lib"
if [ $? -ne 0 ] ; then
echo DISASTER: $install_top_dir/lib cannot be created
echo to make it.
my_exit 2
fi
fi
#
# append or set LD_LIBRARY_PATH
#
if [ -z "$LD_LIBRARY_PATH" ] ; then
LD_LIBRARY_PATH=$install_top_dir/lib
else
LD_LIBRARY_PATH=$install_top_dir/lib:$LD_LIBRARY_PATH
fi
export LD_LIBRARY_PATH
#for Macs:
if [ -z "$LD_LIBRARY_PATH" ] ; then
DYLD_LIBRARY_PATH=$install_top_dir/lib
else
DYLD_LIBRARY_PATH=$install_top_dir/lib:$LD_LIBRARY_PATH
fi
export DYLD_LIBRARY_PATH
#
# IRIX64 (on batman at least) does not seem to use LD_LIBRARY_PATH,
# it uses, instead, LD_LIBRARYN32_PATH. So we set that for all
# systems, hoping that it won't do any harm on other systems.
#
#
LD_LIBRARYN32_PATH=$LD_LIBRARY_PATH
export LD_LIBRARYN32_PATH
# ccp4_system_type can be one of the following
# irix irix64 sunos sunos64 aix hpux osf1 linux freebsd
# linux_compaq_compilers linux_intel_compilers generic Darwin
# ia64_linux_intel Darwin_ibm_compilers linux_ibm_compilers
ccp4_system_type="$OS"
if test "$OS" = Linux ; then
ccp4_system_type=linux
else
if test "$OS" = IRIX64 ; then
ccp4_system_type=irix64
else
if test "$OS" = IRIX ; then
ccp4_system_type=irix
else
if test "$OS" = Darwin ; then
ccp4_system_type=Darwin
else
if test "$OS" = MINGW* ; then
# not sure if really needed later?!
ccp4_system_type=MinGW
fi
fi
fi
fi
fi
echo ccp4_system_type $ccp4_system_type
# check for swig
#
echo this swig:
which swig > /dev/null
have_swig=$?
if [ $have_swig = 0 ] ; then
swig -version
if [ "$architecture" = x86_64 ] ; then
swig_version=`swig -version | awk 'NF { print $NF; exit }'`
if [ "$swig_version" = 1.3.34 ] ; then
echo oops this swig is broken. Need to upgrade to 1.3.36
my_exit 2
else
echo system has swig. Good.
fi
else
echo system is not 64 bit, no problems swig 1.3.34
fi
else
echo swig required - not found.
my_exit 2
fi
# Hope this doesnt mess things on windows?!
# clean up old test status
date_str=`date +"%a_%d_%b_%H:%M"`
echo build-in-progress @$date_str > $LOGS/gtk2$build_type-build-status
echo waiting for build... > $LOGS/gtk2$build_type-test-status
# ----------------------------------------------------------------------------
# ----------------------------------------------------------------------------
# which components?
# ----------------------------------------------------------------------------
# ----------------------------------------------------------------------------
#
# Often there are components provided by the operating system or optional
# installs thereof.
#
build_mmdb=0
build_ssmlib=0
build_fftw=0
build_clipper=0
build_guile=0
build_guile_www=0
build_guile_gui=0
build_libtool=0
build_net_http=0
build_gsl=0
# build_libungif=0
# build_libtiff=0
# build_libjpeg=0
# build_libpng=0
# build_imlib=0
# build_gtk_canvas=0
build_goocanvas=
build_python=
build_guile_gtk=
build_gtkglext=
#build_freeglut=0
build_glib=
#build_readline=
build_curl=
#build_libidn=
build_guile_lib=0
build_gettext=0
build_gtk=0
#gnome_canvas????
# In Gtk2, we presume that glib, gtk2 and gnomecanvas are available.
# We shall test for these, but not build them.
# Where might the "system" components be?
#
non_standard_dir_list="/usr/freeware /sw /opt/gnome $install_top_dir"
dir_list="/usr /usr/X11R6 /usr/local $non_standard_dir_list"
# fftw
# We can eventually get fancy on this... but then clipper configure
# needs changing.
# The test is -n, i.e. a non-zero string length to build things.
#
# We need to test the $AUTOBUILD_INSTALLED directory for fftw because any
# other place could quite well have the fftw that is compiled with doubles.
#
if test -e $install_top_dir/include/fftw.h ; then
echo installation has fftw
build_fftw=
fi
if test -n "$build_fftw" ; then
echo fftw should be built
build_fftw=1
fi
if [ -e $install_top_dir/include/curl/curl.h ] ; then
echo installation has curl/libcurl
else
echo curl/libcurl should be build
build_curl=1
fi
# test for pkg-config
which pkg-config
if pkg-config --atleast-pkgconfig-version 0.16 ; then
build_pkg_config=
echo pkg-config is new enough `pkg-config --version`
else
build_pkg_config=1
echo pkg-config should be built
fi
# This allows standard pkg-config to find gtkglext and several other things.
# PKG_CONFIG_PATH=$install_top_dir/lib/pkgconfig:/usr/lib/pkgconfig
# but we dont want to do this and only get the newly installed components
PKG_CONFIG_PATH=$install_top_dir/lib/pkgconfig
export PKG_CONFIG_PATH
echo PKG_CONFIG_PATH is $PKG_CONFIG_PATH
# is the system gtk+2 new enough? Needs to be 2.8 or better
build_gtk=
# Do we have freetype2? cairo depends on it.
if pkg-config freetype2 ; then
build_freetype2=
echo system/installation has freetype2
else
echo freetype2 should be built
build_gtk=2
build_freetype2=1
build_cairo=1
build_pycairo=1
fi
# Do we have fontconfig? cairo depends on it.
if test -z "$build_freetype2" ; then
if pkg-config fontconfig ; then
build_fontconfig=
echo system/installation has fontconfig
else
echo fontconfig should be built
build_gtk=2
build_fontconfig=1
build_cairo=1
build_pycairo=1
fi
else
echo no freetype, fontconfig should be built too.
build_gtk=2
build_fontconfig=1
build_cairo=1
build_pycairo=1
fi
# gtk 2.10.x says that it needs atk >= 1.9.0
if pkg-config --atleast-version=1.22 atk ; then
echo atk is up to date
build_atk=
else
echo atk should be built
build_gtk=2
build_atk=1
fi
if pkg-config --atleast-version=2.18.0 glib-2.0 ; then
# have glib
echo glib is up to date
build_glib=
else
echo glib is not up to date, rebuild glib - maybe.
build_gtk=1
build_glib=1
fi
if pkg-config --atleast-version=0.5.6 glitz ; then
# have glitz
echo glitz is up to date
build_glitz=
else
echo glitz is not up to date, rebuild glitz, maybe
build_glitz=1
fi
# Pango depends on cairo.
#
if pkg-config --atleast-version=1.8.1 cairo ; then
# have cairo
echo cairo is up to date
build_cairo=
else
echo cairo is not not up to date, rebuild gtk and friends
build_pango=1
build_cairo=1
build_gtk=1
fi
# pango version 1.12 is what gtk2+ 2.10.14 needs
if [ "$build_pango" != 1 ] ; then
if pkg-config --atleast-version=1.12 pango ; then
echo pango is up to date
build_pango=
else
echo build pango and friends
build_pango=1
build_gtk=2
fi
fi
# Test the output of pkg-config gtk+-2.0 for recent enough gtk.
# If not, then build it yourself.
#
# Experiment, to force bragg3 to compile gtk+2
#
# was 2.8
needed_gtk_version=2.14
#
pkg-config --atleast-version=$needed_gtk_version gtk+-2.0
gtk_pkg_config_status=$?
if [ "$gtk_pkg_config_status" = 0 ] ; then
build_cairo=
if [ "$build_gtk" != 2 ] ; then
build_gtk=
fi
echo :::::::: gtk version is at least $needed_gkt_version
echo :::::::: gtk version is `pkg-config --modversion gtk+-2.0`
else
# no recent/good gtk
echo :::::::: gtk and dependencies need to be built
build_gtk=1
build_gettext=1
fi
# freeglut
# for dir in ${dir_list} ; do
if test -e ${install_top_dir}/include/GL/freeglut_std.h ; then
echo installation has Freeglut
build_freeglut=
glut_prefix="--with-glut-prefix=${install_top_dir}"
else
#test for normal glut
if test -e ${install_top_dir}/include/GL/glut.h ; then
echo installation has glut
glut_prefix="--with-glut-prefix=${install_top_dir}"
build_freeglut=
else
build_freeglut=1
fi
fi
# done
if test -n "$build_freeglut" ; then
echo freeglut should be built
build_freeglut=1
glut_prefix="--with-glut-prefix=$install_top_dir"
fi
build_libtool=1
if test -e ${install_top_dir}/lib/libltdl.dll.a ; then
build_libtool=
fi
if test -z "$build_libtool" ; then
echo installation has libtool
else
echo libtool should be built
fi
build_gmp=1
if test -e ${install_top_dir}/lib/libgmp.dll.a ; then
echo installation has gmp
build_gmp=
else
echo gmp should be built
fi
build_readline=1
#
# guile dependency readline. chihiro has bad build in
# guile-1.6.7/guile-readline/readline.c:107 'rl_pending_input' undeclared
# So installation needs to build readline (sigh).
#
if test -e ${install_top_dir}/include/readline/readline.h ; then
build_readline=
fi
if test -z "$build_readline" ; then
echo installation has readline
else
echo readline needs to be built
fi
# Darwin currently has guile-1.6 and guile (which is an older version)
# we want to use guile-1.6 if it exists.
# This need to be fixed for Macs I guess. We need 1.8.3 not 1.6
#
# echo guile-1.6-config will fail on non-fink non-mac systems
# guile-1.6-config --version
# if test $? = 0 ; then
# echo linking in fink 1.6 guile...
# rm -f $install_top_dir/bin/guile
# rm -f $install_top_dir/bin/guile-config
# rm -f $install_top_dir/bin/guile-snarf
# ln -s /sw/bin/guile-1.6 $install_top_dir/bin/guile
# ln -s /sw/bin/guile-1.6-config $install_top_dir/bin/guile-config
# ln -s /sw/bin/guile-1.6-snarf $install_top_dir/bin/guile-snarf
# fi
echo atempting to run installed guile-config \(this may fail, that\'s OK\).
$install_top_dir/bin/guile-config --version
if test $? != 0 ; then
echo guile should be built
build_guile=1
else
# We have a seen a situation somehow where bin/guile-config is installed
# but include/libguile.h is not. Strange. Let's test for libguile.h too.
if test -e $install_top_dir/include/libguile.h ; then
echo installation has guile
build_guile=
else
echo no include/libguile.h. guile should be built
echo no include/libguile.h. guile-gtk should be built
build_guile_gtk=1
build_guile=1
fi
fi
# guile-gui
if test -f $install_top_dir/share/guile/gui/paren-match.scm ; then
echo installation has guile-gui
build_guile_gui=
else
echo guile-gui needs to be installed
build_guile_gui=1
fi
# goosh
if test -f $install_top_dir/share/guile/site/goosh.scm ; then
echo installation has goosh
build_guile_goosh=
else
build_guile_goosh=1
echo guile goosh needs to be installed
fi
# guile-lib
if test -f $install_top_dir/share/guile/site/sxml/simple.scm ; then
echo installation has guile-lib
build_guile_lib=
else
build_guile_lib=1
echo guile-lib needs to be installed
fi
# do we have greg?
# LD_LIBRARY_PATH has been set by now
echo testing for greg using `which guile`
guile -c '(use-modules (ice-9 greg))'
status=$?
echo guile greg status $status
if test $status = 0 ; then
echo installation has greg
build_greg=
else
echo greg should be built
build_greg=1
fi
# ============= python ================
#
# python_version is the filename of the python executable. For python
# 2.5.1 it is python2.5, not python2.5.1
#
python -V
if test $? != 0 ; then
echo python should be built
build_python=1
build_pygtk=1
build_pycairo=1
build_pygobject=1
else
python_version_installed=`python -V 2>&1`
python_target_version="Python $pver"
case "$python_version_installed" in
"$python_target_version")
echo installation has python, $python_version_installed
which python
build_python=
;;
*)
echo python $python_version_installed installed but not up to date...
echo python should be built
build_python=1
build_pygobject=1
build_pycairo=1
build_pygtk=1
;;
esac
fi
# test for pygobject
if test -z "$build_pygobject" ; then
if test -e $install_top_dir/$python_version/include/pygtk-2.0/pygobject.h ; then
echo installation has pygobject
build_pygobject=
else
echo pygobject NOT exists, pygobject should be built
build_pygobject=1
build_pycairo=1
build_pygtk=1
fi
fi
# test for pycairo
if test -z "$build_pycairo" ; then
if test -e $install_top_dir/$python_version/include/pycairo/pycairo.h ; then
echo installation has pycairo
build_pycairo=
else
echo pycairo NOT exists, pycairo should be built
build_pycairo=1
build_pygtk=1
fi
fi
# test for pygtk
if test -z "$build_pygtk" ; then
if test -e $install_top_dir/$python_version/Lib/site-packages/gtk-2.0/gtk/keysyms.py ; then
echo pygtk keysyms exists, no build pygtk
else
echo pygtk keysyms NOT exists, pygtk should be built
build_pygtk=1
fi
fi
# force the GSL config to be in $install_top_dir, rather than
# potenially getting it from the system
# but does this compile cleanly on Mac OS X? I've forgotten.
# Perhaps we will need to be more clever and potentially use
# the fink GSL if it is available.
$install_top_dir/bin/gsl-config --prefix
if test $? != 0 ; then
echo gsl should be built
build_gsl=1
else
gsl_version=`gsl-config --version`
needed_gsl_version=1.3
# tmp value
build_gsl=`awk -v A=$gsl_version -v N=$needed_gsl_version 'BEGIN{x = (A+0)>(N+0) ? 0 : 1; print x}'`
echo system/installation has the GSL version $gsl_version
echo build_gsl is $build_gsl
if [ $build_gsl = 1 ] ; then
echo need to build GSL
build_gsl=1
else
echo GSL is up to date
# set build_gsl to blank:
build_gsl=
fi
fi
# ##############################################################
# test for GtkGLExt
# ##############################################################
build_gtkglext=1
if [ "$build_gtk" = "" ] ; then
if test -e ${install_top_dir}/lib/libgtkglext-win32-1.0.dll.a ; then
build_gtkglext=
fi
if test -z "$build_gtkglext" ; then
echo installation has gtkglext
else
echo gtkglext should be built
fi
fi
# ##############################################################
# test for guile-gtk
# ##############################################################
# guile-gtk, only look in installation, not system.
if [ "$build_gtk" = "" ] ; then
for dir in ${install_top_dir} ; do
if test -e "${dir}/include/guile-gtk.h" ; then
echo installation has guile-gtk
if [ "$build_guile" != 1 ] ; then
build_guile_gtk=
else
build_guile_gtk=1
fi
fi
done
fi
if test -n "${build_guile_gtk}" ; then
echo guile-gtk should be built
build_guile_gtk=1
fi
# ##############################################################
# test for gnomecanvas
# ##############################################################
# test for gnomecanvas here
if [ "$build_gtk" = "" ] ; then
pkg-config --modversion libgnomecanvas-2.0
if [ $? = 0 ] ; then
gnome_canvas_result=`pkg-config --modversion libgnomecanvas-2.0`
case ${gnome_canvas_result} in
2.*)
echo system has libgnomecanvas-2.0
;;
*)
echo system does not have libgnomecanvas-2.0
my_exit 2
;;
esac
else
echo pkg-config does not find libgnomecanvas-2.0. Exiting.
fi
else
echo gnomecanvas need to be built
build_libgnomecanvas=1
fi
# ##############################################################
# test for goocanvas
# ##############################################################
if [ "$build_goocanvas" = "" ] ; then
# has it been installed?
#
if [ -e "${install_top_dir}/include/goocanvas-1.0.0/goocanvaswidget.h" ] ; then
build_goocanvas=no
goocanvas_args="--with-goocanvas-prefix=$install_top_dir"
fi
# is it compilable? (do we have the right gtk (etc) version?)
#
if pkg-config gtk+-2.0 --atleast-version 2.12 ; then
echo goocanvas: recent enough gtk+ version
if pkg-config cairo --atleast-version 1.4 ; then
echo goocanvas: recent enough cairo version
# yes, compilable
goocanvas_args="--with-goocanvas-prefix=$install_top_dir"
else
echo goocanvas: Cairo is too old. Goocanvas needs cairo 1.4 or later. You have:
pkg-config cairo --modversion
build_goocanvas=no
fi
else
echo goocanvas: gtk+-2.0 too old. Goocanvas needs 2.12 or later. You have:
pkg-config gtk+-2.0 --modversion
build_goocanvas=no
fi
fi
echo goocanvas: goocanvas_args set to $goocanvas_args
# test for mmdb: Does mmdb_file.h exist, and if it does, does it
# contain MMDBF_IgnoreHash. If not, then build mmdb.
#
# CCP4 mmdb installs in the include/mmdb directory, but mmdb-1.0.8
# installs just in include (I prefer the CCP4 way and the mmdb-1.0.8
# should be fixed at some stage).
#
# 20060801 mmdb has indeed been updated at the prompting of Lynn Ten Eyck.
# so now we assign mmdb_inc_sub_dir to be mmdb not blank.
#
mmdb_inc_sub_dir="mmdb"
#
if test -e "${install_top_dir}/include/$mmdb_inc_sub_dir/mmdb_file.h" ; then
grep MMDBF_IgnoreHash ${install_top_dir}/include/$mmdb_inc_sub_dir/mmdb_file.h
if [ "$?" = "0" ] ; then
echo mmdb should not be built
build_mmdb=
else
echo INFO:: mmdb installed, but MMDBF_IgnoreHash test fails, rebuilding mmdb.
build_mmdb=1
fi
else
echo installation has no mmdb, build mmdb.
build_mmdb=1
fi
if [ -e $install_top_dir/include/ssm_align.h ] ; then
if [ "$build_mmdb" = 1 ] ; then
build_ssmlib=1
else
echo SSMlib should not be built
build_ssmlib=
fi
else
build_ssmlib=1
fi
# clipper depends on mmdb, so if mmdb was built, the so must clipper.
# likewise for fftw.
#
build_clipper=1
if [ -z "$build_mmdb" ] ; then
# we potentially can pass the building of clipper:
echo INFO:: shall we build clipper: mmdb not to be built
if [ -z "$build_fftw" ] ; then
echo INFO:: shall we build clipper: fftw not to be built
# test for new ccp4-based clipper (for mtz and maps)
if [ -e $install_top_dir/include/clipper/ccp4/ccp4_mtz_io.h ] ; then
echo $install_top_dir/include/clipper/ccp4/ccp4_mtz_io.h exist
if [ -e $install_top_dir/include/clipper/contrib/sfscale.h ] ; then
echo $install_top_dir/include/clipper/contrib/sfscale.h exist
build_clipper=
else
echo $install_top_dir/include/clipper/contrib/sfscale.h not exist, building clipper
build_clipper=1
fi
else
echo $install_top_dir/include/clipper/ccp4/ccp4_mtz_io.h not exist, building clipper
fi
fi
else
echo mmdb needs to be built, so clipper needs building.
fi
# shall we build libccp4c?
if [ -e $install_top_dir/lib/libccp4c.la ] ; then
if [ -e $install_top_dir/include/ccp4/cmtzlib.h ] ; then
# no need to rebuild
build_ccp4c=
else
build_ccp4c=1
fi
else
build_ccp4c=1
fi
# Here we can force the building of clipper because we don't
# know if the dependency libccp4c.la was from 6.0 or 5.0.2
# But, let's not do that any more.
# build_clipper=
# build_ccp4c=
# -----------------------------------------------------------------------------
# -----------------------------------------------------------------------------
# build components
# -----------------------------------------------------------------------------
# -----------------------------------------------------------------------------
#
# libccp4c:
if test -n "$build_ccp4c" ; then
echo BUILDING: libccp4c
${WGET} http://www.ysbl.york.ac.uk/~emsley/software/extras/libccp4c-5.0.2-ysbl-2.tar.gz
${WGET} http://lmb.bioch.ox.ac.uk/coot/software/extras/ccp4-libs-underlay-2.tar.gz
${WGET} http://www.ysbl.york.ac.uk/~lohkamp/software/extras/ccp4_library_utils.c.patch
${WGET} http://www.ysbl.york.ac.uk/~emsley/software/extras/martyn-extras.tar.gz
(
date
echo BL debug gzip -dc ${AUTOBUILD_SOURCES}/libccp4c-5.0.2-ysbl-2.tar.gz
which gzip
gzip -dc ${AUTOBUILD_SOURCES}/libccp4c-5.0.2-ysbl-2.tar.gz | tar xf -
echo BL debug we are here `pwd`
cd libccp4c-5.0.2-ysbl-2
# apply the ccp4 new files
gzip -dc ${AUTOBUILD_SOURCES}/ccp4-libs-underlay-2.tar.gz | tar xf -
#cp src/*.[ch] .
gzip -dc ${AUTOBUILD_SOURCES}/martyn-extras.tar.gz | tar xf -
patch -p0 < ${AUTOBUILD_SOURCES}/ccp4_library_utils.c.patch
./configure $generic_prefix
$MAKE
$MAKE install
) 2>&1 > $HOSTLOGDIR/01-libccp4c.txt
else
echo not building libccp4c:
fi
#
# mmdb
#
#
# mmdb
#
if test -n "$build_mmdb" ; then
echo BUILDING mmdb:
#
# mmdb_version=1.0.10. Not yet.
# mmdb_version=1.0.8-ysbl-3
# mmdb_version=1.12
mmdb_version=1.19
mmdb_version=1.21
mmdb_version=1.22
mmdb_version=1.23.2
mmdb_version=1.24
# only configure, make required?!
${WGET} http://www.ysbl.york.ac.uk/~emsley/software/mmdb-$mmdb_version.tar.gz
# now we need to patch to not play with string definitions
#${WGET} http://www.ysbl.york.ac.uk/~lohkamp/software/extras/mmdb-1.23.2-mattype_.h.patch
#${WGET} http://www.ysbl.york.ac.uk/~lohkamp/software/extras/mmdb-1.23.2-file_.cpp.patch
${WGET} http://www.ysbl.york.ac.uk/~lohkamp/software/extras/mmdb-1.24-mattype_.h.patch
(
date
gzip -dc ${AUTOBUILD_SOURCES}/mmdb-$mmdb_version.tar.gz | tar xf -
echo gzip -dc ${AUTOBUILD_SOURCES}/mmdb-$mmdb_version.tar.gz
cd mmdb-$mmdb_version
pwd
# str stuff and newline
patch -p0 < ${AUTOBUILD_SOURCES}/mmdb-1.24-mattype_.h.patch
# patch to read long lines in a cif file
#patch -p0 < ../mmdb-mmcif-long-line.patch
./configure $generic_prefix
$MAKE
$MAKE install
# now remove the mmdb binaries!
# not needed any more? FIXME
rm $install_top_dir/bin/mwater
rm $install_top_dir/bin/ncont
rm $install_top_dir/bin/pdbcur
) > $HOSTLOGDIR/02-mmdb.txt 2>&1
else
echo not building mmdb:
fi
if test -n "$build_ssmlib" ; then
echo BUILDING SSMlib:
#
# wget http://www.ysbl.york.ac.uk/~emsley/software/extras/SSMlib-0.0-pre-1-ysbl.tar.gz
ssmlib_version=0.0-pre-2-ysbl
${WGET} http://www.ysbl.york.ac.uk/~emsley/software/extras/SSMlib-$ssmlib_version.tar.gz
(
date
gzip -dc ${AUTOBUILD_SOURCES}/SSMlib-$ssmlib_version.tar.gz | tar xf -
cd SSMlib-$ssmlib_version
./configure $generic_prefix --with-mmdb-prefix=$install_top_dir
$MAKE
$MAKE install
) > $HOSTLOGDIR/02-ssmlib.txt 2>&1
else
echo not building ssmlib:
fi
# fftw
if test -n "$build_fftw" ; then
echo BUILDING fftw:
#
${WGET} http://www.ysbl.york.ac.uk/~emsley/software/fftw-2.1.5.tar.gz
${WGET} http://www.ysbl.york.ac.uk/~emsley/software/extras/fftw-configure-stuff.tar.gz
(
date
pwd
gzip -dc ${AUTOBUILD_SOURCES}/fftw-2.1.5.tar.gz | tar xf -
gzip -dc ${AUTOBUILD_SOURCES}/fftw-configure-stuff.tar.gz | tar xf -
cd fftw-2.1.5
./configure $generic_prefix --enable-shared --enable-float
$MAKE
$MAKE install
) > $HOSTLOGDIR/03-fftw.txt 2>&1
else
echo not building fftw:
fi
# # clipper
# #
# #
if test -n "$build_clipper" ; then
# clipper: we use the ccp4 version of clipper now.
# (it uses configure, not scons)
#
echo BUILDING clipper:
# clipper_version is for the file name on the server, clipper_dir_version is the directory
# that files untars into.
#clipper_version=20ac
#clipper_version=2.1-081201-ac
#clipper_version=2.1-090210-ac
#clipper_version=2.1-090522-ac
#clipper_version=2.1-091215-ac
clipper_version=2.1-100511-ac
clipper_dir_version=2.1
${WGET} http://www.ysbl.york.ac.uk/~cowtan/clipper/clipper-$clipper_version.tar.gz
# 20110921 hack in a temporary solution, while Kevin's new clipper
# is not available yet from his site.
${WGET} http://lmb.bioch.ox.ac.uk/coot/software/extras/clipper-2.1-110915-fixup.tar.gz
# fix threading on windows, i.e. disable
${WGET} http://www.ysbl.york.ac.uk/~lohkamp/software/extras/clipper-2.1.thread.patch
if [ "$need_clipper_contrib_patch" = true ] ; then
${WGET} http://www.ysbl.york.ac.uk/~emsley/software/extras/clipper_test_contrib.cpp.patch
fi
(
# temp hack
# echo Unzipping ${AUTOBUILD_SOURCES}/clipper-$clipper_version.tar.gz
# gzip -dc ${AUTOBUILD_SOURCES}/clipper-$clipper_version.tar.gz | tar xf -
#
gzip -dc ${AUTOBUILD_SOURCES}/clipper-2.1-110915-fixup.tar.gz | tar xf -
cd clipper-$clipper_dir_version
pwd
date
# make clipper
echo . ------------------------------------------------------------------------------
echo . " clipper "
echo . ------------------------------------------------------------------------------
if [ "$need_clipper_contrib_patch" = true ] ; then
patch -p0 < ${AUTOBUILD_SOURCES}/clipper_test_contrib.cpp.patch
fi
patch -p0 < ${AUTOBUILD_SOURCES}/clipper-2.1.thread.patch
./configure --prefix=$install_top_dir \
--with-fftw=$install_top_dir \
--with-mmdb=$install_top_dir \
--with-ccp4=$install_top_dir \
--enable-shared \
--enable-mmdb \
--enable-cif \
--enable-ccp4 \
--enable-minimol \
--enable-cns \
CXXFLAGS="-g -O2 -fno-strict-aliasing -DCLIPPER_DISABLE_THREADS"
# We have to disable the threading for now, no clean exit from (Win)Coot
# CXXFLAGS="-g -O2 -fno-strict-aliasing"
# not need any more ?!
# CCP4_CXXFLAGS=-I$install_top_dir/include CCP4_LIBS=$install_top_dir/lib/libccp4c.la \
# we don't want to make the clipper executables, so let's cd in to the clipper libs and
# make (just) those.
cd clipper
# it seems that examples do not compile on windows (hope it has no ill effect
$MAKE
status=$?
clipper_status=$status
if [ "$clipper_status" != 0 ] ; then
echo make of clipper failed - exit 2 from internal shell.
exit 2
else
$MAKE install
fi
) > $HOSTLOGDIR/04-clipper.txt 2>&1
clipper_build_status=$?
if [ $clipper_build_status != 0 ] ; then
echo clipper build failed, exiting
my_exit 2
fi
else
echo not building clipper:
fi
# freeglut
# we use 'normal' glut
if test -n "$build_freeglut" ; then
echo BUILDING freeglut:
#nate's version is not good as it requires 'manual' adjustments to compilation
#${WGET} http://www.xmission.com/~nate/glut/glut-3.7.6-bin.zip
# we get another version instead
${WGET} http://www.martinpayne.me.uk/software/development/OpenGL/GLUT/GLUT-MinGW-3.7.6-2.mp.zip
(
date
pwd
cd $build_dir
7z x -y ${AUTOBUILD_SOURCES}/GLUT-MinGW-3.7.6-2.mp.zip
glut_prefix="--with-glut-prefix=$install_top_dir"
echo INFO:: setting glut_prefix to $glut_prefix
# now move the files to the right place
cd GLUT
mkdir $install_top_dir/include/GL
cp glut.h $install_top_dir/include/GL
cp glut32.dll $install_top_dir/bin
cp libglut32.a $install_top_dir/lib
# and whilst we are here let's get the openGL extensions as well
${WGET} http://www.opengl.org/registry/api/glext.h
${WGET} http://www.opengl.org/registry/api/glxext.h
${WGET} http://www.opengl.org/registry/api/wglext.h
cp ${AUTOBUILD_SOURCES}/glext.h $install_top_dir/include/GL
cp ${AUTOBUILD_SOURCES}/gxlext.h $install_top_dir/include/GL
cp ${AUTOBUILD_SOURCES}/wglext.h $install_top_dir/include/GL
cd ${AUTOBUILD_SOURCES}
) > $HOSTLOGDIR/05-freeglut.txt 2>&1
else
echo not building freeglut:
fi
###############################################################################
########## pkg-config (blimey) #############
###############################################################################
if test -n "$build_pkg_config" ; then
echo BUILDING pkg-config:
#
pkg_config_version=0.25-1
${WGET} http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/pkg-config_${pkg_config_version}_win32.zip
(
date
cd $install_top_dir
7z x -y ${AUTOBUILD_SOURCES}/pkg-config_${pkg_config_version}_win32.zip
cd -
) > $HOSTLOGDIR/05-pkg-config.txt 2>&1
else
echo not building pkg-conifg:
fi
###############################################################################
########## build gtk and friends #############
###############################################################################
# well I guess on windows it's easier to just download the binaries and dev
# packages (in case we need them for later)
# Building of the gtk2 dependencies depend on pkg-config.
# configure: error: *** pkg-config too old; version 0.16 or better required.
# Get a recent pkg-config here:
# http://pkgconfig.freedesktop.org/releases/pkg-config-0.23.tar.gz
# gtk2 build says that pango depends on cairo:
# checking Pango flags... configure: error:
# *** Pango not found. Pango built with Cairo support is required
# *** to build GTK+. See http://www.pango.org for Pango information.
#
# so, if we build cairo, we must build pango too
# just to make sure we download in sources
cd ${AUTOBUILD_SOURCES}
if test -n "$build_gtk" ; then
echo BUILDING Gtk+-2 and/or dependencies...
(
if [ "$build_atk" = 1 ] ; then
echo ======================================================
echo BUILDING atk binaries
echo ======================================================
atk_major_version=1.32
atk_version=1.32.0-1
${WGET} http://ftp.gnome.org/pub/gnome/binaries/win32/atk/${atk_major_version}/atk_${atk_version}_win32.zip
${WGET} http://ftp.gnome.org/pub/gnome/binaries/win32/atk/${atk_major_version}/atk-dev_${atk_version}_win32.zip
date
cd $install_top_dir
7z x -y ${AUTOBUILD_SOURCES}/atk_${atk_version}_win32.zip
7z x -y ${AUTOBUILD_SOURCES}/atk-dev_${atk_version}_win32.zip
cd -
else
echo not BUILDING atk
fi
# dont think we really need glitz!?
if [ "$build_glib" = 1 ] ; then
echo ======================================================
echo BUILDING glib binaries and dev
echo ======================================================
glib_major_version=2.28
glib_version=2.28.1-1
${WGET} http://ftp.gnome.org/pub/gnome/binaries/win32/glib/${glib_major_version}/glib_${glib_version}_win32.zip
${WGET} http://ftp.gnome.org/pub/gnome/binaries/win32/glib/${glib_major_version}/glib-dev_${glib_version}_win32.zip
cd $install_top_dir
7z x -y ${AUTOBUILD_SOURCES}/glib_${glib_version}_win32.zip
7z x -y ${AUTOBUILD_SOURCES}/glib-dev_${glib_version}_win32.zip
cd -
glib_status=0
else
echo not BUILDING glib
fi
# cairo(?) dependends on freetype2 (RedHat 8 doesn't have it)
if [ "$build_freetype2" = 1 ] ; then
echo ======================================================
echo BUILDING freetype2
echo ======================================================
freetype2_version=2.4.4-1
${WGET} http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/freetype_${freetype2_version}_win32.zip
${WGET} http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/freetype-dev_${freetype2_version}_win32.zip
cd $install_top_dir
7z x -y ${AUTOBUILD_SOURCES}/freetype_${freetype2_version}_win32.zip
7z x -y ${AUTOBUILD_SOURCES}/freetype-dev_${freetype2_version}_win32.zip
cd -
else
echo NOT BUILDING freetype2
fi
# cairo(?) dependends on fontconfig (include file?) to define `FC_RGBA_UNKNOWN'
# fontconfig depends on Freetype2 (what fun).
if [ "$build_fontconfig" = 1 ] ; then
echo ======================================================
echo BUILDING fontconfig and expat
echo ======================================================
fontconfig_version=2.8.0-2
# we need libexpat for fontconfig
expat_version=2.0.1-1
${WGET} http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/fontconfig_${fontconfig_version}_win32.zip
${WGET} http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/fontconfig-dev_${fontconfig_version}_win32.zip
${WGET} http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/expat_${expat_version}_win32.zip
cd $install_top_dir
7z x -y ${AUTOBUILD_SOURCES}/fontconfig_${fontconfig_version}_win32.zip
7z x -y ${AUTOBUILD_SOURCES}/fontconfig-dev_${fontconfig_version}_win32.zip
7z x -y ${AUTOBUILD_SOURCES}/expat_${expat_version}_win32.zip
cd -
else
echo NOT BUILDING fontconfig
fi
if [ "$build_cairo" = 1 ] ; then
echo ======================================================
echo BUILDING cairo
echo ======================================================
cairo_version=1.10.2-1
${WGET} http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/cairo_${cairo_version}_win32.zip
${WGET} http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/cairo-dev_${cairo_version}_win32.zip
cd $install_top_dir
7z x -y ${AUTOBUILD_SOURCES}/cairo_${cairo_version}_win32.zip
7z x -y ${AUTOBUILD_SOURCES}/cairo-dev_${cairo_version}_win32.zip
cd -
else
echo NOT BUILDING cairo
fi
if [ "$build_pango" = 1 ] ; then
echo ======================================================
echo BUILDING pango
echo ======================================================
pango_major_version=1.28
pango_version=1.28.3-1
${WGET} http://ftp.gnome.org/pub/gnome/binaries/win32/pango/${pango_major_version}/pango_${pango_version}_win32.zip
${WGET} http://ftp.gnome.org/pub/gnome/binaries/win32/pango/${pango_major_version}/pango-dev_${pango_version}_win32.zip
cd $install_top_dir
7z x -y ${AUTOBUILD_SOURCES}/pango_${pango_version}_win32.zip
7z x -y ${AUTOBUILD_SOURCES}/pango-dev_${pango_version}_win32.zip
cd -
pango_status=0
else
echo NOT BUILDING pango
fi
# librsvg depends on libpng and lib-xml-2, so we shall get these
if [ "$pango_status" = 0 ] ; then
echo ======================================================
echo BUILDING libpng, libtiff, and libjpeg
echo ======================================================
libpng_version=1.4.3-1
libjpeg_version=8-1
#libtiff_version=3.8.2-1
libtiff_version=3.9.2-1
#zlib_version=1.2.3
zlib_version=1.2.5-2
${WGET} http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/libpng_${libpng_version}_win32.zip
${WGET} http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/libpng-dev_${libpng_version}_win32.zip
${WGET} http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/jpeg_${libjpeg_version}_win32.zip
#${WGET} http://downloads.sourceforge.net/gnuwin32/tiff-$libtiff_version-bin.zip
${WGET} http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/libtiff_${libtiff_version}_win32.zip
#${WGET} http://downloads.sourceforge.net/gnuwin32/zlib-$zlib_version-bin.zip
#${WGET} http://downloads.sourceforge.net/gnuwin32/zlib-$zlib_version-lib.zip
${WGET} http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/zlib_${zlib_version}_win32.zip
${WGET} http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/zlib-dev_${zlib_version}_win32.zip
cd $install_top_dir
7z x -y ${AUTOBUILD_SOURCES}/libpng_${libpng_version}_win32.zip
7z x -y ${AUTOBUILD_SOURCES}/libpng-dev_${libpng_version}_win32.zip
7z x -y ${AUTOBUILD_SOURCES}/jpeg_${libjpeg_version}_win32.zip
7z x -y ${AUTOBUILD_SOURCES}/libtiff_${libtiff_version}_win32.zip
7z x -y ${AUTOBUILD_SOURCES}/zlib_${zlib_version}_win32.zip
7z x -y ${AUTOBUILD_SOURCES}/zlib-dev_${zlib_version}_win32.zip
cp libjpeg-8.dll libjpeg-uchar-boolean-8.dll
cd -
else
echo NOT BUILDING libpng
fi
if [ "$pango_status" = 0 ] ; then
echo ======================================================
echo BUILDING libxml2
echo ======================================================
#libxml2_version=2.4.12
libxml2_version=2.7.7-1
#${WGET} http://downloads.sourceforge.net/gnuwin32/libxml2-$libxml2_version-bin.zip
${WGET} http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/libxml2_${libxml2_version}_win32.zip
cd $install_top_dir
7z x -y ${AUTOBUILD_SOURCES}/libxml2_${libxml2_version}_win32.zip
# now we need to make a pkg-config file
echo 'prefix=/target' > ${AUTOBUILD_INSTALLED}/lib/pkgconfig/libxml-2.0.pc
echo 'exec_prefix=${prefix}' >> ${AUTOBUILD_INSTALLED}/lib/pkgconfig/libxml-2.0.pc
echo 'libdir=${exec_prefix}/lib' >> ${AUTOBUILD_INSTALLED}/lib/pkgconfig/libxml-2.0.pc
echo 'includedir=${prefix}/include' >> ${AUTOBUILD_INSTALLED}/lib/pkgconfig/libxml-2.0.pc
echo '' >> ${AUTOBUILD_INSTALLED}/lib/pkgconfig/libxml-2.0.pc
echo '' >> ${AUTOBUILD_INSTALLED}/lib/pkgconfig/libxml-2.0.pc
echo 'Name: libXML' >> ${AUTOBUILD_INSTALLED}/lib/pkgconfig/libxml-2.0.pc
echo 'Version: '$libxml2_version >> ${AUTOBUILD_INSTALLED}/lib/pkgconfig/libxml-2.0.pc
echo 'Description: libXML library version2.' >> ${AUTOBUILD_INSTALLED}/lib/pkgconfig/libxml-2.0.pc
echo 'Libs: -L${libdir} -lxml2 -lz' >> ${AUTOBUILD_INSTALLED}/lib/pkgconfig/libxml-2.0.pc
echo 'Cflags: -I${includedir}/libxml2 ' >> ${AUTOBUILD_INSTALLED}/lib/pkgconfig/libxml-2.0.pc
# and make a copy of the dll
cp bin/libxml2-2.dll bin/libxml2.dll
cd -
else
echo NOT BUILDING libxml2
fi
# and we need libiconv
if [ "$glib_status" = 0 ] ; then
echo ======================================================
echo BUILDING libiconv
echo ======================================================
libiconv_version=1.9.1
${WGET} http://http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/libiconv-${libiconv_version}.bin.woe32.zip
cd $install_top_dir
7z x -y ${AUTOBUILD_SOURCES}/libiconv-${libiconv_version}.bin.woe32.zip
cd -
else
echo NOT BUILDING libiconv
fi
# cairo depends dependends on librsvg (for testing) otherwise warning.
# But. librsvg depends on pango (the pangoft2 part). This is crazy.
# But. cairo depend on librsvg (doesn't it?)
# Does cairo depend on pango? Yes.
if [ "$pango_status" = 0 ] ; then
echo ======================================================
echo BUILDING librsvg and its extras, croco, gsf, bzip2
echo ======================================================
librsvg_major_version=2.26
librsvg_version=2.26.2-1
${WGET} http://ftp.gnome.org/pub/GNOME/binaries/win32/librsvg/${librsvg_major_version}/librsvg_${librsvg_version}_win32.zip
# ${WGET} http://ftp.gnome.org/pub/GNOME/binaries/win32/librsvg/2.22/librsvg-dev_${librsvg_version}_win32.zip
${WGET} http://ftp.gnome.org/pub/GNOME/binaries/win32/librsvg/${librsvg_major_version}/svg-gdk-pixbuf-loader_${librsvg_version}_win32.zip
${WGET} http://ftp.gnome.org/pub/GNOME/binaries/win32/librsvg/${librsvg_major_version}/svg-gtk-engine_${librsvg_version}_win32.zip
# and we need croco, gsf and bzip for librsvg to run properly
${WGET} http://ftp.gnome.org/pub/gnome/binaries/win32/libcroco/0.6/libcroco_0.6.2-1_win32.zip
${WGET} http://ftp.gnome.org/pub/gnome/binaries/win32/libgsf/1.14/libgsf-1.14.4.zip
${WGET} http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/libbzip2-1.0.2.zip
# now need gdk-pixbuf too (not included anywhere else any more)
# not yet only when using gtk above 2.20/22 or so
#gdk_pixbuf_major_version=2.22
#gdk_pixbuf_version=${gdk_pixbuf_major_version}.1-1
#${WGET} http://ftp.gnome.org/pub/GNOME/binaries/win32/gdk-pixbuf/${gdk_pixbuf_major_version}/gdk-pixbuf_{gdk_pixbuf_version}_win32.zip
cd $install_top_dir
7z x -y ${AUTOBUILD_SOURCES}/librsvg_${librsvg_version}_win32.zip
# 7z x ${AUTOBUILD_SOURCES}/librsvg-dev_${librsvg_version}_win32.zip
7z x -y ${AUTOBUILD_SOURCES}/svg-gdk-pixbuf-loader_${librsvg_version}_win32.zip
7z x -y ${AUTOBUILD_SOURCES}/svg-gtk-engine_${librsvg_version}_win32.zip
7z x -y ${AUTOBUILD_SOURCES}/libcroco-0.6.1.zip
7z x -y ${AUTOBUILD_SOURCES}/libgsf-1.14.4.zip
7z x -y ${AUTOBUILD_SOURCES}/libbzip2-1.0.2.zip
#7z x -y ${AUTOBUILD_SOURCES}/gdk-pixbuf_{gdk_pixbuf_version}_win32.zip
cd -
# we shall run gdk-pixbuf-query loader
# but after we have gtk+!!!
else
echo NOT BUILDING librsvg
fi
if [ "$build_gtk" = 1 ] ; then
echo ======================================================
echo BUILDING gtk+2
echo ======================================================
# versions later up to 2.24 are not working with gtkglext on win32!!
gtk2_major_version=2.16
gtk2_version=2.16.6-3
${WGET} http://ftp.gnome.org/pub/gnome/binaries/win32/gtk+/${gtk2_major_version}/gtk+_${gtk2_version}_win32.zip
${WGET} http://ftp.gnome.org/pub/gnome/binaries/win32/gtk+/${gtk2_major_version}/gtk+-dev_${gtk2_version}_win32.zip
cd $install_top_dir
7z x -y ${AUTOBUILD_SOURCES}/gtk+_${gtk2_version}_win32.zip
7z x -y ${AUTOBUILD_SOURCES}/gtk+-dev_${gtk2_version}_win32.zip
cd -
else
echo NOT BUILDING gtk2
fi
if test -n "$gtk_set_failure" ; then
exit 1
fi
if [ "$build_gettext" = 1 ] ; then
echo ======================================================
echo BUILDING gettext
echo ======================================================
gettext_version=0.18.1.1-2
${WGET} http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/gettext-runtime_${gettext_version}_win32.zip
${WGET} http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/gettext-runtime-dev_${gettext_version}_win32.zip
cd $install_top_dir
7z x -y ${AUTOBUILD_SOURCES}/gettext-runtime_${gettext_version}_win32.zip
7z x -y ${AUTOBUILD_SOURCES}/gettext-runtime-dev_${gettext_version}_win32.zip
cd -
else
echo NOT BUILDING gettext
fi
# run query loader to be able to load svg icons properly
# FIXME:: this should be relative path!!
cp $install_top_dir/etc/gtk-2.0/gdk-pixbuf.loaders $install_top_dir/etc/gtk-2.0/gdk-pixbuf.loaders.orig
gdk-pixbuf-query-loaders > $install_top_dir/etc/gtk-2.0/gdk-pixbuf.loaders
# now we have absolute paths in the file, let's make them relative
# to avoid running the gdk-pixbuf.loaders during install
sed -e "s|C:\/msys$install_top_dir|..|" \
$install_top_dir/etc/gtk-2.0/gdk-pixbuf.loaders > tmp.loaders
mv $install_top_dir/etc/gtk-2.0/gdk-pixbuf.loaders $install_top_dir/etc/gtk-2.0/gdk-pixbuf.loaders.bak
mv tmp.loaders $install_top_dir/etc/gtk-2.0/gdk-pixbuf.loaders
) > $HOSTLOGDIR/06-gtk-prerequisites.txt 2>&1
if test "$?" != 0 ; then
echo gtk set failed somewhere
fi
fi
cd $build_dir
if test -n "$build_gtkglext" ; then
echo BUILDING gtkglext:
gtkglext_version=1.2.0
${WGET} http://surfnet.dl.sourceforge.net/sourceforge/gtkglext/gtkglext-$gtkglext_version.tar.gz
${WGET} http://www.ysbl.york.ac.uk/~lohkamp/software/extras/gtkglext_configure.patch
(date
pwd
gzip -dc ${AUTOBUILD_SOURCES}/gtkglext-$gtkglext_version.tar.gz | tar xf -
cd gtkglext-$gtkglext_version
echo gtk+-2.0 version:
pkg-config gtk+-2.0 --modversion
# gtk+ 2.20 needs converting GTK_WIDGET_REALIZED to gtk_widget_get_realised, but
# gtk+ 2.18 does not (it fails if we add that patch), so use a simpler one.
# BL says: for 1.16 we dont need to patch
if pkg-config gtk+-2.0 --atleast-version 2.18 ; then
patch_file=gtk-gtkglwidget.c-for-modern-gtk-for-2.18.patch
echo we have sufficiently new version of gtk+, we need to patch gtkglext with $patch_file
if pkg-config gtk+-2.0 --atleast-version 2.20 ; then
patch_file=gtk-gtkglwidget.c-for-modern-gtk.patch
fi
${WGET} http://lmb.bioch.ox.ac.uk/coot/software/extras/$patch_file
if patch -p0 < ${AUTOBUILD_SOURCES}/$patch_file ; then
echo gtkglext patched good.
else
echo gtkglext patch fail.
my_exit 2
fi
else
echo version of gtk is old, no need to patch gtkglext.
fi
patch -p0 < ${AUTOBUILD_SOURCES}/gtkglext_configure.patch
./configure --build=i386-pc-mingw32 $generic_prefix
$MAKE
status=$?
if [ "$status" != 0 ] ; then
echo make of gtkglext failed
else
$MAKE install
fi
cd -
) > $HOSTLOGDIR/06-pre-gtkglext.txt 2>&1
else
echo not building gtkglext:
fi
##################### gnomecanvas #####################################
cd ${AUTOBUILD_SOURCES}
## libgnomecanvas
#
if test -n "$build_libgnomecanvas" ; then
echo BUILDING libgnomecanvas:
# we need gail and libartlgpl for gnomecanvas
libgnomecanvas_major_version=2.30
libgnomecanvas_version=2.30.1-1
#gail_version=1.22.0
libart_version=2.3.19
${WGET} http://ftp.gnome.org/pub/gnome/binaries/win32/libgnomecanvas/$libgnomecanvas_major_version/libgnomecanvas_${libgnomecanvas_version}_win32.zip
${WGET} http://ftp.gnome.org/pub/gnome/binaries/win32/libgnomecanvas/$libgnomecanvas_major_version/libgnomecanvas-dev_${libgnomecanvas_version}_win32.zip
# not needed any more as included in gtk+ now
#${WGET} http://ftp.gnome.org/pub/gnome/binaries/win32/gail/1.22/gail-${gail_version}.zip
${WGET} http://ftp.gnome.org/pub/gnome/binaries/win32/libart_lgpl/2.3/libart_lgpl-$libart_version.zip
${WGET} http://ftp.gnome.org/pub/gnome/binaries/win32/libart_lgpl/2.3/libart_lgpl-dev-$libart_version.zip
cd $install_top_dir
(
7z x -y ${AUTOBUILD_SOURCES}/libgnomecanvas_${libgnomecanvas_version}_win32.zip
7z x -y ${AUTOBUILD_SOURCES}/libgnomecanvas-dev_${libgnomecanvas_version}_win32.zip
#7z x -y ${AUTOBUILD_SOURCES}/gail-$gail_version.zip
7z x -y ${AUTOBUILD_SOURCES}/libart_lgpl-$libart_version.zip
7z x -y ${AUTOBUILD_SOURCES}/libart_lgpl-dev-$libart_version.zip
cd -
) > $HOSTLOGDIR/09-gnomecanvas.txt 2>&1
else
echo NOT BUILDING libgnomecanvas
fi
echo done with Gtk+-2 and dependencies...
##################### goocanvas #####################################
if [ "$build_goocanvas" != "no" ] ; then
echo BUILDING goocanvas
goocanvas_major_version=1.0
goocanvas_version=${goocanvas_major_version}.0
${WGET} http://ftp.gnome.org/pub/gnome/binaries/win32/goocanvas/${goocanvas_major_version}/goocanvas-${goocanvas_version}-win32.zip
${WGET} http://ftp.gnome.org/pub/gnome/binaries/win32/goocanvas/${goocanvas_major_version}/goocanvas-dev-${goocanvas_version}-win32.zip
(date
cd $install_top_dir
pwd
7z x -y ${AUTOBUILD_SOURCES}/goocanvas-${goocanvas_version}-win32.zip
7z x -y ${AUTOBUILD_SOURCES}/goocanvas-dev-${goocanvas_version}-win32.zip
cd -
) > $HOSTLOGDIR/06-pre-goocanvas.txt
else
echo NOT BUILDING goocanvas
fi
###############################################################################
########## build python and friends #############
###############################################################################
# So that python is found when it is installed:
#
PATH=$install_top_dir/bin:$install_top_dir/$python_version:$PATH
export PATH
# python_version is the filename of the python executable. For python
# 2.5.1 it is python2.5, not python2.5.1
#
# python
#
cd $install_top_dir
mkdir $python_version
cd $python_version
# get the full directory
py_inst_dir=`pwd -W`
# convert / to \ for windows file names
py_inst_dir=${py_inst_dir//\//\\}
cd $install_top_dir/bin
py_dll_dir=`pwd -W`
py_dll_dir=${py_dll_dir//\//\\}
echo py_inst_dir is: $py_inst_dir
echo py_dll_dir is: $py_dll_dir
if test -n "$build_python" ; then
echo BUILDING Python ${pver}:
#
cd ${AUTOBUILD_SOURCES}
${WGET} http://www.python.org/ftp/python/$pver/python-$pver.msi
#${WGET} http://www.ysbl.york.ac.uk/~lohkamp/software/extras/unittest_skip_win.patch
(
date
pwd
echo msiexec /i python-$pver.msi TARGETDIR=$py_inst_dir DLLDIR=$py_dll_dir ALLUSERS=1 /qn
msiexec //i python-$pver.msi TARGETDIR=$py_inst_dir DLLDIR=$py_dll_dir ALLUSERS=1 //qn
status=$?
copy_python=0
if [ "$status" != 0 ] ; then
echo problem installing python
echo ' may be already installed elsewhere?! lets find out'
copy_python=1
fi
# see if python works, i.e. test as above for version
python_version_installed=`python -V 2>&1`
python_target_version="Python $pver"
if [ $python_version_installed == $python_target_version ] ; then
echo python installation successful, we have now $python_target_version
else
# new python not installed, so copy from old python
echo python installation failed, try to copy?
copy_python=1
fi
if test -n "$copy_python" ; then
# in a simple minded approach we say we install a guile version
# and have python already install earlier in the non-guile version
if [ "$ENABLE_GUILE_COOT" = "yes" ] ; then
dll_location=${install_top_dir%$build_type}/bin/python${pver_short/./}.dll
echo dll to search for is $dll_location
if [ -e ${dll_location} ] ; then
# have an installed dll in non-guile dir, so just copy everything over
echo copy everything over from ${install_top_dir%$build_type}
# what do we need
# 1. python.xx
# 2. pythonXX.dll
# 3. includes (pyg*)
# 4. pkg-config (pyg*)
echo copy dir: cp -r ${install_top_dir%$build_type}/${python_version} ${install_top_dir}
cp -r ${install_top_dir%$build_type}/${python_version} ${install_top_dir}
echo copy dll: cp $dll_location ${install_top_dir}/bin
cp $dll_location ${install_top_dir}/bin
# pygobject
echo copy pygobject things
mkdir $install_top_dir/include/pygtk-2.0
cp $install_top_dir/$python_version/include/pygtk-2.0/pygobject.h $install_top_dir/include/pygtk-2.0/
cp $install_top_dir/$python_version/Lib/pkgconfig/pygobject-2.0.pc $install_top_dir/lib/pkgconfig/
# pycairo
echo copy pycairo things
cp -r $install_top_dir/$python_version/include/pycairo $install_top_dir/include/
cp $install_top_dir/$python_version/Lib/pkgconfig/pycairo.pc $install_top_dir/lib/pkgconfig/
# pygtk
echo copy pygtk things
cp -r $install_top_dir/$python_version/include/pygtk-2.0/pygtk $install_top_dir/include/pygtk-2.0/
cp $install_top_dir/$python_version/Lib/pkgconfig/pygtk-2.0.pc $install_top_dir/lib/pkgconfig/
copy_python=2
else
echo Cannot find a previously installed python version in ${dll_location}
fi
else
echo 'Dont have guile enabled so cannot find a python installation (stupid me)'
fi
fi
echo $copy_python > $HOME/python_copied.tmp
) > $HOSTLOGDIR/07-python.txt 2>&1
if [ $(cat $HOME/python_copied.tmp) == 2 ] ; then
echo copied python, so dont install pygobject etc.
build_pygobject=0
build_pycairo=0
build_pygtk=0
fi
rm $HOME/python_copied.tmp
# to uninstall use:
# msiexec //uninstall python-$pver.msi //qb
# We need these otherwise python moans about not finding the libraries.
#
echo setting PYTHONHOME
# first worked somehow with pre-release but should be 2nd
#PYTHONHOME=$install_top_dir/$py_inst_dir
PYTHONHOME=$py_inst_dir
export PYTHONHOME
echo PYTHONHOME is now $PYTHONHOME
# patch the unittest module to allow skipping tests
# not any more (is included)
#echo patching unittest for skipping
#cd ${PYTHONHOME}/Lib
#patch -p0<${AUTOBUILD_SOURCES}/unittest_skip_win.patch
#cd -
echo done python linking.
# now we have "python" in our path - no need to rehash -
# clever old Bourne shell (or do I mean bash?).
else
echo not building python:
fi
# building og pygobject, pycairo, and pygtk currently cannot be automated, so we have to press
# a few buttons
if test -n "$build_pygobject" ; then
echo BUILDING pygobject:
#
pygobject_version=2.28.3
#${WGET} http://ftp.gnome.org/pub/GNOME/binaries/win32/pygobject/2.14/pygobject-$pygobject_version.win32-py2.5.exe
${WGET} http://ftp.gnome.org/pub/GNOME/binaries/win32/pygobject/2.28/pygobject-${pygobject_version}.win32-py$pver_short.msi
(
date
cd ${AUTOBUILD_SOURCES}
msiexec //i pygobject-$pygobject_version.win32-py$pver_short.msi TARGETDIR=$py_inst_dir ALLUSERS=1 //qn
cd -
# copy pkgconfig and include files
mkdir $install_top_dir/include/pygtk-2.0
cp $install_top_dir/$python_version/include/pygtk-2.0/pygobject.h $install_top_dir/include/pygtk-2.0/
cp $install_top_dir/$python_version/Lib/pkgconfig/pygobject-2.0.pc $install_top_dir/lib/pkgconfig/
) > $HOSTLOGDIR/07-pygobject.txt 2>&1
else