summaryrefslogtreecommitdiffstats
path: root/arch/3.5.13_broken/trinity-knetworkmanager8/knetworkmanager.patch
blob: 73f995e86f85472f7f5e84a968dc356c2673395e (plain)
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
diff -u -r -N applications/knetworkmanager9/cmake/generate_apidox src/applications/knetworkmanager9/cmake/generate_apidox
--- applications/knetworkmanager9/cmake/generate_apidox	1970-01-01 01:00:00.000000000 +0100
+++ src/applications/knetworkmanager9/cmake/generate_apidox	2011-12-16 17:12:34.000000000 +0100
@@ -0,0 +1,17 @@
+#!/bin/bash
+
+top_srcdir=${1}
+top_builddir=${2}
+kde_libs_htmldir=${3}
+export QTDOCDIR=${4}
+
+if [[ ! -d "${top_srcdir}/doc/common/" ]]; then
+	export DOXDATA=${kde_libs_htmldir}/en/common
+fi
+
+abs_top_srcdir=$(cd ${top_srcdir} && pwd)
+
+rm -rf ${top_builddir}/${kde_libs_htmldir}/en
+mkdir -p ${top_builddir}/${kde_libs_htmldir}/en
+cd ${top_builddir}/${kde_libs_htmldir}/en
+${abs_top_srcdir}/admin/doxygen.sh --modulename --installdir=${top_builddir}/${kde_libs_htmldir}/en ${abs_top_srcdir}
diff -u -r -N applications/knetworkmanager9/cmake/install_apidox src/applications/knetworkmanager9/cmake/install_apidox
--- applications/knetworkmanager9/cmake/install_apidox	1970-01-01 01:00:00.000000000 +0100
+++ src/applications/knetworkmanager9/cmake/install_apidox	2011-12-16 17:12:34.000000000 +0100
@@ -0,0 +1,12 @@
+#!/bin/bash
+
+top_srcdir=${1}
+top_builddir=${2}
+kde_libs_htmldir=${3}
+installdir=${DESTDIR}
+
+abs_top_srcdir=$(cd ${top_srcdir} && pwd)
+
+cd ${top_builddir}
+mkdir -p ${installdir}/${kde_libs_htmldir}/en
+cp -Rp ${top_builddir}/${kde_libs_htmldir}/en ${installdir}/${kde_libs_htmldir}/
diff -u -r -N applications/knetworkmanager9/cmake/modules/FindTDE.cmake src/applications/knetworkmanager9/cmake/modules/FindTDE.cmake
--- applications/knetworkmanager9/cmake/modules/FindTDE.cmake	1970-01-01 01:00:00.000000000 +0100
+++ src/applications/knetworkmanager9/cmake/modules/FindTDE.cmake	2011-12-16 17:12:34.000000000 +0100
@@ -0,0 +1,86 @@
+#################################################
+#
+#  (C) 2010-2011 Serghei Amelian
+#  serghei (DOT) amelian (AT) gmail.com
+#
+#  Improvements and feedback are welcome
+#
+#  This file is released under GPL >= 2
+#
+#################################################
+
+if( NOT TDE_FOUND )
+
+  message( STATUS "checking for 'TDE'")
+
+  # if the path is not already defined by user,
+  # find kde-config executable
+  if( NOT DEFINED KDECONFIG_EXECUTABLE )
+    find_program( KDECONFIG_EXECUTABLE
+      NAMES kde-config
+      HINTS ${BIN_INSTALL_DIR} )
+    if( NOT KDECONFIG_EXECUTABLE )
+      tde_message_fatal( "kde-config are NOT found." )
+    endif( NOT KDECONFIG_EXECUTABLE )
+  endif( NOT DEFINED KDECONFIG_EXECUTABLE )
+
+  # check for installed trinity version
+  execute_process(
+    COMMAND ${KDECONFIG_EXECUTABLE} --version
+    OUTPUT_VARIABLE _version
+    RESULT_VARIABLE _result
+    OUTPUT_STRIP_TRAILING_WHITESPACE )
+  if( _result )
+    tde_message_fatal( "Unable to run kde-config!\n KDELIBS are correctly installed?\n Path to kde-config are corect?" )
+  endif( _result )
+
+  # parse kde-config output, to extract TDE version
+  string( REGEX MATCH "KDE: ([0-9\\.]+)" __dummy "${_version}" )
+  set( TDE_VERSION "${CMAKE_MATCH_1}" )
+
+  # ask kde-config for few paths
+  macro( __internal_get_path __type __var )
+    execute_process(
+      COMMAND ${KDECONFIG_EXECUTABLE} --expandvars --install ${__type}
+      OUTPUT_VARIABLE ${__var}
+      OUTPUT_STRIP_TRAILING_WHITESPACE )
+  endmacro( __internal_get_path )
+
+  __internal_get_path( include TDE_INCLUDE_DIR )
+  __internal_get_path( lib TDE_LIB_DIR )
+  __internal_get_path( exe TDE_BIN_DIR )
+  __internal_get_path( data TDE_DATA_DIR )
+  __internal_get_path( config TDE_CONFIG_DIR )
+  __internal_get_path( html TDE_HTML_DIR )
+  __internal_get_path( cmake TDE_CMAKE_DIR )
+  __internal_get_path( qtplugins TDE_QTPLUGINS_DIR )
+
+  # find kde tools
+  macro( __internal_find_program __prog __var )
+    find_program( ${__var}
+      NAMES ${__prog}
+      HINTS ${TDE_BIN_INSTALL_DIR}
+      OUTPUT_STRIP_TRAILING_WHITESPACE )
+    if( NOT ${__var} )
+      tde_message_fatal( "${__prog} are NOT found.\n KDELIBS are correctly installed?" )
+    endif( NOT ${__var} )
+  endmacro( __internal_find_program )
+
+  __internal_find_program( dcopidl KDE3_DCOPIDL_EXECUTABLE )
+  __internal_find_program( dcopidlng KDE3_DCOPIDLNG_EXECUTABLE )
+  __internal_find_program( dcopidl2cpp KDE3_DCOPIDL2CPP_EXECUTABLE )
+  __internal_find_program( meinproc KDE3_MEINPROC_EXECUTABLE )
+  __internal_find_program( kconfig_compiler KDE3_KCFGC_EXECUTABLE )
+  __internal_find_program( makekdewidgets KDE3_MAKEKDEWIDGETS_EXECUTABLE )
+
+  # dcopidlng is a bash script which using kde-config;
+  # if PATH to kde-config is not set, dcopidlng will fail;
+  # for this reason we set KDECONFIG environment variable before running dcopidlng
+  set( KDE3_DCOPIDLNG_EXECUTABLE env KDECONFIG=${KDECONFIG_EXECUTABLE} ${KDE3_DCOPIDLNG_EXECUTABLE}
+    CACHE INTERNAL KDE3_DCOPIDLNG_EXECUTABLE FORCE )
+
+  message( STATUS "  found 'TDE', version ${TDE_VERSION}" )
+
+endif( NOT TDE_FOUND )
+
+include( "${TDE_CMAKE_DIR}/kdelibs.cmake" )
diff -u -r -N applications/knetworkmanager9/cmake/modules/FindTQt.cmake src/applications/knetworkmanager9/cmake/modules/FindTQt.cmake
--- applications/knetworkmanager9/cmake/modules/FindTQt.cmake	1970-01-01 01:00:00.000000000 +0100
+++ src/applications/knetworkmanager9/cmake/modules/FindTQt.cmake	2011-12-16 17:12:34.000000000 +0100
@@ -0,0 +1,81 @@
+#################################################
+#
+#  (C) 2010-2011 Serghei Amelian
+#  serghei (DOT) amelian (AT) gmail.com
+#
+#  Improvements and feedback are welcome
+#
+#  This file is released under GPL >= 2
+#
+#################################################
+
+macro( tqt_message )
+  message( STATUS "${ARGN}" )
+endmacro( )
+
+pkg_search_module( TQT tqt )
+
+if( NOT TQT_FOUND )
+  tde_message_fatal( "Unable to find tqt!\n Try adding the directory in which the tqt.pc file is located\nto the PKG_CONFIG_PATH variable." )
+endif( )
+
+# tmoc_executable
+execute_process(
+  COMMAND pkg-config tqt --variable=tmoc_executable
+  OUTPUT_VARIABLE TMOC_EXECUTABLE OUTPUT_STRIP_TRAILING_WHITESPACE )
+
+if( TMOC_EXECUTABLE )
+  tqt_message( "  tmoc path: ${TMOC_EXECUTABLE}" )
+else( )
+  tde_message_fatal( "Path to tmoc is not set.\n tqt is correctly installed?" )
+endif( )
+
+
+# moc_executable
+execute_process(
+  COMMAND pkg-config tqt --variable=moc_executable
+  OUTPUT_VARIABLE MOC_EXECUTABLE OUTPUT_STRIP_TRAILING_WHITESPACE )
+
+if( MOC_EXECUTABLE )
+  tqt_message( "  moc path: ${MOC_EXECUTABLE}" )
+else( )
+  tde_message_fatal( "Path to moc is not set.\n tqt is correctly installed?" )
+endif( )
+
+
+# uic_executable
+execute_process(
+  COMMAND pkg-config tqt --variable=uic_executable
+  OUTPUT_VARIABLE UIC_EXECUTABLE OUTPUT_STRIP_TRAILING_WHITESPACE )
+
+if( UIC_EXECUTABLE )
+  tqt_message( "  uic path: ${UIC_EXECUTABLE}" )
+else( )
+  tde_message_fatal( "Path to uic is not set.\n tqt is correctly installed?" )
+endif( )
+
+
+# check if tqt is usable
+tde_save( CMAKE_REQUIRED_INCLUDES CMAKE_REQUIRED_LIBRARIES )
+set( CMAKE_REQUIRED_INCLUDES ${TQT_INCLUDE_DIRS} )
+foreach( _dirs ${TQT_LIBRARY_DIRS} )
+  list( APPEND CMAKE_REQUIRED_LIBRARIES "-L${_dirs}" )
+endforeach()
+list( APPEND CMAKE_REQUIRED_LIBRARIES ${TQT_LIBRARIES} )
+
+check_cxx_source_compiles("
+    #include <tqapplication.h>
+    int main(int argc, char **argv) { TQApplication app(argc, argv); return 0; } "
+  HAVE_USABLE_TQT )
+
+if( NOT HAVE_USABLE_TQT )
+  tde_message_fatal( "Unable to build a simple tqt test." )
+endif( )
+
+tde_restore( CMAKE_REQUIRED_INCLUDES CMAKE_REQUIRED_LIBRARIES )
+
+
+# TQT_CXX_FLAGS
+foreach( _flag ${TQT_CFLAGS_OTHER} )
+  set( TQT_CXX_FLAGS "${TQT_CXX_FLAGS} ${_flag}" )
+endforeach()
diff -u -r -N applications/knetworkmanager9/cmake/modules/TDEMacros.cmake src/applications/knetworkmanager9/cmake/modules/TDEMacros.cmake
--- applications/knetworkmanager9/cmake/modules/TDEMacros.cmake	1970-01-01 01:00:00.000000000 +0100
+++ src/applications/knetworkmanager9/cmake/modules/TDEMacros.cmake	2011-12-16 17:12:34.000000000 +0100
@@ -0,0 +1,1237 @@
+#################################################
+#
+#  (C) 2010-2011 Serghei Amelian
+#  serghei (DOT) amelian (AT) gmail.com
+#
+#  Improvements and feedback are welcome
+#
+#  This file is released under GPL >= 2
+#
+#################################################
+
+include( KDE3Macros ) # we will need this module for a while
+
+
+#################################################
+#####
+##### tde_message_fatal
+
+macro( tde_message_fatal )
+  message( FATAL_ERROR
+    "#################################################\n"
+    " ${ARGV}\n"
+    "#################################################" )
+endmacro( tde_message_fatal )
+
+
+#################################################
+#####
+##### tde_install_icons( <icons...> THEME <svgicons> DESTINATION <destdir> )
+##### default theme: hicolor
+##### default destination: ${SHARE_INSTALL_DIR}/icons
+
+macro( tde_install_icons )
+
+  # clearing
+  unset( _dest )
+  unset( _req_theme )
+  unset( _icons )
+  set( _var _icons )
+
+  # parse all arguments
+  foreach( _arg ${ARGV} )
+    # directive DESTINATION
+    if( _arg STREQUAL "DESTINATION" )
+      set( _var _dest )
+      set( _directive 1 )
+    endif( _arg STREQUAL "DESTINATION" )
+    # directive THEME
+    if( _arg STREQUAL "THEME" )
+      set( _var _req_theme )
+      set( _directive 1 )
+    endif( _arg STREQUAL "THEME" )
+    # collect data
+    if( _directive )
+      unset( _directive )
+    else( _directive )
+      set( ${_var} ${${_var}} ${_arg} )
+      set( _var _icons )
+    endif( _directive )
+  endforeach( _arg )
+
+  #defaults
+  if( NOT _icons )
+    set( _icons "*" )
+  endif( NOT _icons )
+  if( NOT _dest )
+    set( _dest "${ICON_INSTALL_DIR}" )
+  endif( NOT _dest )
+
+  foreach( _icon ${_icons} )
+    unset( _theme ) # clearing
+
+    file(GLOB _icon_files *-${_icon}.png _icon_files *-${_icon}.svg* )
+    foreach( _icon_file ${_icon_files} )
+      # FIXME need a review
+      string( REGEX MATCH "^.*/([a-zA-Z][a-zA-Z])([0-9a-zA-Z]+)\\-([a-z]+)\\-(.+)$" _dummy  "${_icon_file}" )
+      set( _type  "${CMAKE_MATCH_1}" )
+      set( _size  "${CMAKE_MATCH_2}" )
+      set( _group "${CMAKE_MATCH_3}" )
+      set( _name  "${CMAKE_MATCH_4}" )
+
+      # we must ignore invalid icon names
+      if( _type AND _size AND _group AND _name )
+
+        # autodetect theme
+        if( NOT _req_theme )
+          unset( _theme )
+          if( "${_type}" STREQUAL "cr" )
+            set( _theme crystalsvg )
+          elseif( "${_type}" STREQUAL "lo" )
+            set( _theme locolor )
+          endif( "${_type}" STREQUAL "cr" )
+          # defaulting
+          if( NOT _theme )
+            set( _theme hicolor )
+          endif( NOT _theme )
+        else( NOT _req_theme )
+          set( _theme ${_req_theme} )
+        endif( NOT _req_theme )
+
+        # fix "group" name
+        if( "${_group}" STREQUAL "mime" )
+          set( _group  "mimetypes" )
+        endif( "${_group}" STREQUAL "mime" )
+        if( "${_group}" STREQUAL "filesys" )
+          set( _group  "filesystems" )
+        endif( "${_group}" STREQUAL "filesys" )
+        if( "${_group}" STREQUAL "device" )
+          set( _group  "devices" )
+        endif( "${_group}" STREQUAL "device" )
+        if( "${_group}" STREQUAL "app" )
+          set( _group  "apps" )
+        endif( "${_group}" STREQUAL "app" )
+        if( "${_group}" STREQUAL "action" )
+          set( _group  "actions" )
+        endif( "${_group}" STREQUAL "action" )
+
+        if( "${_size}" STREQUAL "sc" )
+          install( FILES ${_icon_file} DESTINATION ${_dest}/${_theme}/scalable/${_group}/ RENAME ${_name} )
+        else( "${_size}" STREQUAL "sc" )
+          install( FILES ${_icon_file} DESTINATION ${_dest}/${_theme}/${_size}x${_size}/${_group}/ RENAME ${_name} )
+        endif( "${_size}" STREQUAL "sc" )
+
+      endif( _type AND _size AND _group AND _name )
+
+    endforeach( _icon_file )
+  endforeach( _icon )
+
+endmacro( tde_install_icons )
+
+
+#################################################
+#####
+##### tde_add_lut( <source> <result> [depends] )
+##### default depends: source
+
+macro( tde_add_lut _src _lut _dep )
+  set( create_hash_table ${CMAKE_SOURCE_DIR}/kjs/create_hash_table )
+  if( NOT _dep )
+    set( _dep ${_src} )
+  endif( NOT _dep )
+  add_custom_command( OUTPUT ${_lut}
+    COMMAND perl ARGS ${create_hash_table} ${CMAKE_CURRENT_SOURCE_DIR}/${_src} -i > ${_lut}
+    DEPENDS ${_src} )
+  set_source_files_properties( ${_dep} PROPERTIES OBJECT_DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${_lut} )
+  unset( _dep )
+endmacro( tde_add_lut )
+
+
+#################################################
+#####
+##### tde_add_luts( <sources...> )
+
+macro( tde_add_luts )
+  foreach( _src ${ARGV} )
+    get_filename_component( _lut ${_src} NAME_WE )
+    set( _lut "${_lut}.lut.h" )
+    tde_add_lut( ${_src} ${_lut} ${_src} )
+  endforeach( _src )
+endmacro( tde_add_luts )
+
+
+#################################################
+#####
+##### tde_file_to_cpp( <source> <destination> <variable> )
+
+macro( tde_file_to_cpp _src _dst _var )
+  if( IS_ABSOLUTE ${_dst} )
+    set( dst ${_dst} )
+  else( )
+    set( dst "${CMAKE_CURRENT_BINARY_DIR}/${_dst}" )
+  endif( )
+  file( READ ${_src} text )
+  string( REGEX REPLACE "\n" "\\\\n\"\n\"" text "${text}" )
+  set( text "/* Generated by CMake */\n\nconst char *${_var} = \n\n\"${text}\";\n" )
+  string( REGEX REPLACE "\n\"\";\n$" ";\n" text "${text}" )
+  file( WRITE ${dst} "${text}" )
+endmacro( )
+
+
+#################################################
+#####
+##### tde_install_la_file( <target> <destination> )
+
+macro( tde_install_la_file _target _destination )
+
+  get_target_property( _target_location ${_target} LOCATION )
+  get_filename_component( _laname ${_target_location} NAME_WE )
+  get_filename_component( _soname ${_target_location} NAME )
+  set( _laname ${CMAKE_CURRENT_BINARY_DIR}/${_laname}.la )
+
+  file( WRITE ${_laname}
+"# ${_laname} - a libtool library file, generated by cmake
+# The name that we can dlopen(3).
+dlname='${_soname}'
+# Names of this library
+library_names='${_soname} ${_soname} ${_soname}'
+# The name of the static archive
+old_library=''
+# Libraries that this one depends upon.
+dependency_libs=''
+# Version information.\ncurrent=0\nage=0\nrevision=0
+# Is this an already installed library?\ninstalled=yes
+# Should we warn about portability when linking against -modules?\nshouldnotlink=yes
+# Files to dlopen/dlpreopen\ndlopen=''\ndlpreopen=''
+# Directory that this library needs to be installed in:
+libdir='${_destination}'
+" )
+
+  install( FILES ${_laname} DESTINATION ${_destination} )
+
+endmacro( tde_install_la_file )
+
+
+#################################################
+#####
+##### tde_add_ui_files
+
+macro( tde_add_ui_files _sources )
+  foreach( _ui_file ${ARGN} )
+
+    get_filename_component( _ui_basename ${_ui_file} NAME_WE )
+    get_filename_component( _ui_absolute_path ${_ui_file} ABSOLUTE )
+
+    list( APPEND ${_sources} ${_ui_basename}.cpp )
+
+    add_custom_command( OUTPUT ${_ui_basename}.h ${_ui_basename}.cpp
+      COMMAND ${CMAKE_COMMAND}
+        -DUIC_EXECUTABLE:FILEPATH=${UIC_EXECUTABLE}
+        -DTDE_QTPLUGINS_DIR:FILEPATH=${TDE_QTPLUGINS_DIR}
+        -DUI_FILE:FILEPATH=${_ui_absolute_path}
+        -P ${CMAKE_MODULE_PATH}/tde_uic.cmake
+      COMMAND ${MOC_EXECUTABLE} ${_ui_basename}.h >> ${_ui_basename}.cpp
+      DEPENDS ${_ui_absolute_path} )
+
+  endforeach( _ui_file )
+endmacro( tde_add_ui_files )
+
+
+#################################################
+#####
+##### tde_moc
+
+macro( tde_moc _sources )
+  foreach( _input_file ${ARGN} )
+
+    get_filename_component( _input_file "${_input_file}" ABSOLUTE )
+    get_filename_component( _basename ${_input_file} NAME_WE )
+    set( _output_file "${_basename}.moc.cpp" )
+    add_custom_command( OUTPUT ${_output_file}
+      COMMAND
+        ${TMOC_EXECUTABLE} ${_input_file} -o ${_output_file}
+      DEPENDS
+        ${_input_file} )
+    list( APPEND ${_sources} ${_output_file} )
+
+  endforeach( )
+endmacro( )
+
+
+#################################################
+#####
+##### tde_automoc
+
+macro( tde_automoc )
+  foreach( _src_file ${ARGN} )
+
+    get_filename_component( _src_file "${_src_file}" ABSOLUTE )
+
+    if( EXISTS "${_src_file}" )
+
+      # read source file and check if have moc include
+      file( READ "${_src_file}" _src_content )
+      string( REGEX MATCHALL "#include +[^ ]+\\.moc[\">]" _moc_includes "${_src_content}" )
+
+      # found included moc(s)?
+      if( _moc_includes )
+        foreach( _moc_file ${_moc_includes} )
+
+          # extracting moc filename
+          string( REGEX MATCH "[^ <\"]+\\.moc" _moc_file "${_moc_file}" )
+          set( _moc_file "${CMAKE_CURRENT_BINARY_DIR}/${_moc_file}" )
+
+          # create header filename
+          get_filename_component( _src_path "${_src_file}" ABSOLUTE )
+          get_filename_component( _src_path "${_src_path}" PATH )
+          get_filename_component( _src_header "${_moc_file}" NAME_WE )
+          set( _header_file "${_src_path}/${_src_header}.h" )
+
+          # if header doesn't exists, check in META_INCLUDES
+          if( NOT EXISTS "${_header_file}" )
+            unset( _found )
+            foreach( _src_path ${_meta_includes} )
+              set( _header_file "${_src_path}/${_src_header}.h" )
+              if( EXISTS "${_header_file}" )
+                set( _found 1 )
+                break( )
+              endif( )
+            endforeach( )
+            if( NOT _found )
+              get_filename_component( _moc_file "${_moc_file}" NAME )
+              tde_message_fatal( "AUTOMOC error: '${_moc_file}' cannot be generated.\n Reason: '${_src_file}.h' not found." )
+            endif( )
+          endif( )
+
+          # moc-ing header
+          add_custom_command( OUTPUT ${_moc_file}
+            COMMAND ${TMOC_EXECUTABLE} ${_header_file} -o ${_moc_file}
+            DEPENDS ${_header_file} )
+
+          # create dependency between source file and moc file
+          set_property( SOURCE ${_src_file} APPEND PROPERTY OBJECT_DEPENDS ${_moc_file} )
+
+        endforeach( _moc_file )
+
+      endif( _moc_includes )
+
+    endif( EXISTS "${_src_file}" )
+
+  endforeach( _src_file )
+endmacro( tde_automoc )
+
+
+#################################################
+#####
+##### __tde_internal_process_sources
+
+macro( __tde_internal_process_sources _sources )
+
+  unset( ${_sources} )
+
+  foreach( _arg ${ARGN} )
+    get_filename_component( _ext ${_arg} EXT )
+    get_filename_component( _name ${_arg} NAME_WE )
+    get_filename_component( _path ${_arg} PATH )
+
+    # if not path, set it to "."
+    if( NOT _path )
+      set( _path "./" )
+    endif( NOT _path )
+
+    # handle .ui files
+    if( ${_ext} STREQUAL ".ui" )
+      tde_add_ui_files( ${_sources} ${_arg} )
+
+    # handle .skel files
+    elseif( ${_ext} STREQUAL ".skel" )
+      kde3_add_dcop_skels( ${_sources} ${_path}/${_name}.h )
+
+    # handle .stub files
+    elseif( ${_ext} STREQUAL ".stub" )
+      kde3_add_dcop_stubs( ${_sources} ${_path}/${_name}.h )
+
+    # handle .kcfgc files
+    elseif( ${_ext} STREQUAL ".kcfgc" )
+      kde3_add_kcfg_files( ${_sources} ${_arg} )
+
+    # handle any other files
+    else( ${_ext} STREQUAL ".ui" )
+      list(APPEND ${_sources} ${_arg} )
+    endif( ${_ext} STREQUAL ".ui" )
+  endforeach( _arg )
+
+endmacro( __tde_internal_process_sources )
+
+
+#################################################
+#####
+##### tde_install_libtool_file
+
+macro( tde_install_libtool_file _target _destination )
+
+  get_target_property( _target_location ${_target} LOCATION )
+
+  # get name of target
+  get_filename_component( _name ${_target_location} NAME_WE )
+
+  # get .la name
+  set( _laname ${_name}.la )
+
+  # get .so name
+  get_filename_component( _soname ${_target_location} NAME )
+
+  # get version of target
+  get_target_property( _target_version ${_target} VERSION )
+  get_target_property( _target_soversion ${_target} SOVERSION )
+
+  # we have so version
+  if( _target_version )
+    set( _library_name_1 "${_soname}.${_target_version}" )
+    set( _library_name_2 "${_soname}.${_target_soversion}" )
+    set( _library_name_3 "${_soname}" )
+
+    string( REGEX MATCH "^([0-9]+)\\.([0-9]+)\\.([0-9]+)$" _dummy  "${_target_version}" )
+    set( _version_current  "${CMAKE_MATCH_1}" )
+    set( _version_age  "${CMAKE_MATCH_2}" )
+    set( _version_revision "${CMAKE_MATCH_3}" )
+
+  # we have no so version (module?)
+  else( _target_version )
+    set( _library_name_1 "${_soname}" )
+    set( _library_name_2 "${_soname}" )
+    set( _library_name_3 "${_soname}" )
+    set( _version_current  "0" )
+    set( _version_age  "0" )
+    set( _version_revision "0" )
+  endif( _target_version )
+
+  if( IS_ABSOLUTE ${_destination} )
+    set( _libdir "${_destination}" )
+  else( IS_ABSOLUTE ${_destination} )
+    set( _libdir "${CMAKE_INSTALL_PREFIX}/${_destination}" )
+  endif( IS_ABSOLUTE ${_destination} )
+
+  configure_file( ${CMAKE_SOURCE_DIR}/cmake/modules/template_libtool_file.cmake "${_laname}" @ONLY )
+
+  install( FILES "${CMAKE_CURRENT_BINARY_DIR}/${_laname}" DESTINATION ${_destination} )
+
+endmacro( tde_install_libtool_file )
+
+
+#################################################
+#####
+##### tde_install_export / tde_import
+
+function( tde_install_export )
+  file( GLOB export_files ${CMAKE_CURRENT_BINARY_DIR}/export-*.cmake )
+
+  set( mode "WRITE" )
+  foreach( filename ${export_files} )
+    file( READ ${filename} content )
+    file( ${mode} "${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}.cmake" "${content}" )
+    set( mode "APPEND" )
+  endforeach( )
+
+  install( FILES "${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}.cmake" DESTINATION ${CMAKE_INSTALL_DIR} )
+endfunction( )
+
+
+macro( tde_import _library )
+  message( STATUS "checking for '${_library}'" )
+  string( TOUPPER "BUILD_${_library}" _build )
+  if( ${_build} )
+    message( STATUS "  ok, activated for build" )
+  else()
+    if( EXISTS "${TDE_CMAKE_DIR}/${_library}.cmake" )
+      include( "${TDE_CMAKE_DIR}/${_library}.cmake" )
+      message( STATUS "  ok, found import file" )
+    else()
+      tde_message_fatal( "'${_library}' are required,\n but is not installed nor selected for build" )
+    endif()
+  endif()
+endmacro()
+
+
+#################################################
+#####
+##### tde_add_library
+
+macro( tde_add_library _arg_target )
+
+  unset( _target )
+  unset( _type )
+  unset( _static_pic )
+  unset( _automoc )
+  unset( _meta_includes )
+  unset( _no_libtool_file )
+  unset( _no_export )
+  unset( _version )
+  unset( _sources )
+  unset( _destination )
+  unset( _embed )
+  unset( _link )
+  unset( _dependencies )
+  unset( _storage )
+
+  set( _shouldnotlink no )
+
+  foreach( _arg ${ARGV} )
+
+    # this variable help us to skip
+    # storing unapropriate values (i.e. directives)
+    unset( _skip_store )
+
+    # found one of directives: "SHARED", "STATIC", "MODULE"
+    if( "${_arg}" STREQUAL "SHARED" OR "${_arg}" STREQUAL "STATIC" OR "${_arg}" STREQUAL "MODULE" )
+      set( _skip_store 1 )
+      set( _type "${_arg}" )
+    endif( "${_arg}" STREQUAL "SHARED" OR "${_arg}" STREQUAL "STATIC" OR "${_arg}" STREQUAL "MODULE" )
+
+    # found directive "STATIC_PIC"
+    if( "${_arg}" STREQUAL "STATIC_PIC" )
+      set( _skip_store 1 )
+      set( _type "STATIC" )
+      set( _static_pic 1 )
+    endif( "${_arg}" STREQUAL "STATIC_PIC" )
+
+    # found directive "AUTOMOC"
+    if( "${_arg}" STREQUAL "AUTOMOC" )
+      set( _skip_store 1 )
+      set( _automoc 1 )
+    endif( "${_arg}" STREQUAL "AUTOMOC" )
+
+    # found directive "META_INCLUDES"
+    if( "${_arg}" STREQUAL "META_INCLUDES" )
+      set( _skip_store 1 )
+      set( _storage "_meta_includes" )
+    endif( )
+
+    # found directive "NO_LIBTOOL_FILE"
+    if( "${_arg}" STREQUAL "NO_LIBTOOL_FILE" )
+      set( _skip_store 1 )
+      set( _no_libtool_file 1 )
+    endif( "${_arg}" STREQUAL "NO_LIBTOOL_FILE" )
+
+    # found directive "NO_EXPORT"
+    if( "${_arg}" STREQUAL "NO_EXPORT" )
+      set( _skip_store 1 )
+      set( _no_export 1 )
+    endif( "${_arg}" STREQUAL "NO_EXPORT" )
+
+    # found directive "VERSION"
+    if( "${_arg}" STREQUAL "VERSION" )
+      set( _skip_store 1 )
+      set( _storage "_version" )
+    endif( "${_arg}" STREQUAL "VERSION" )
+
+    # found directive "SOURCES"
+    if( "${_arg}" STREQUAL "SOURCES" )
+      set( _skip_store 1 )
+      set( _storage "_sources" )
+    endif( "${_arg}" STREQUAL "SOURCES" )
+
+    # found directive "EMBED"
+    if( "${_arg}" STREQUAL "EMBED" )
+      set( _skip_store 1 )
+      set( _storage "_embed" )
+    endif( "${_arg}" STREQUAL "EMBED" )
+
+    # found directive "LINK"
+    if( "${_arg}" STREQUAL "LINK" )
+      set( _skip_store 1 )
+      set( _storage "_link" )
+    endif( "${_arg}" STREQUAL "LINK" )
+
+    # found directive "DEPENDENCIES"
+    if( "${_arg}" STREQUAL "DEPENDENCIES" )
+      set( _skip_store 1 )
+      set( _storage "_dependencies" )
+    endif( "${_arg}" STREQUAL "DEPENDENCIES" )
+
+    # found directive "DESTINATION"
+    if( "${_arg}" STREQUAL "DESTINATION" )
+      set( _skip_store 1 )
+      set( _storage "_destination" )
+      unset( ${_storage} )
+    endif( "${_arg}" STREQUAL "DESTINATION" )
+
+    # storing value
+    if( _storage AND NOT _skip_store )
+      list( APPEND ${_storage} ${_arg} )
+      list( REMOVE_DUPLICATES ${_storage} )
+    endif( _storage AND NOT _skip_store )
+
+  endforeach( _arg )
+
+  # if no type is set, we choose one
+  # based on BUILD_SHARED_LIBS
+  if( NOT _type )
+    if( BUILD_SHARED_LIBS )
+      set( _type "SHARED" )
+    else( BUILD_SHARED_LIBS )
+      set( _type "STATIC" )
+    endif( BUILD_SHARED_LIBS )
+  endif( NOT _type )
+
+  # change target name, based on type
+  string( TOLOWER "${_type}" _type_lower )
+  set( _target "${_arg_target}-${_type_lower}" )
+
+  # create variables like "LIB_xxx" for convenience
+  if( ${_type} STREQUAL "SHARED" )
+    string( TOUPPER "${_arg_target}" _tmp )
+    set( LIB_${_tmp} ${_target} CACHE INTERNAL LIB_${tmp} FORCE )
+  endif( ${_type} STREQUAL "SHARED" )
+
+  # disallow target without sources
+  if( NOT _sources )
+    message( FATAL_ERROR "\nTarget [$_target] have no sources." )
+  endif( NOT _sources )
+
+  # processing different types of sources
+  __tde_internal_process_sources( _sources ${_sources} )
+
+  # set automoc
+  if( _automoc )
+    tde_automoc( ${_sources} )
+  endif( _automoc )
+
+  # add target
+  add_library( ${_target} ${_type} ${_sources} )
+
+  # we assume that modules have no prefix and no version
+  # also, should not link
+  if( ${_type} STREQUAL "MODULE" )
+    set_target_properties( ${_target} PROPERTIES PREFIX "" )
+    unset( _version )
+    set( _shouldnotlink yes )
+  endif( ${_type} STREQUAL "MODULE" )
+
+  # set real name of target
+  set_target_properties( ${_target} PROPERTIES OUTPUT_NAME ${_arg_target} )
+
+  # set -fPIC flag for static libraries
+  if( _static_pic )
+    set_target_properties( ${_target} PROPERTIES COMPILE_FLAGS -fPIC )
+  endif( _static_pic )
+
+  # set version
+  if( _version )
+    string( REGEX MATCH "^[0-9]+" _soversion ${_version} )
+    set_target_properties( ${_target} PROPERTIES VERSION ${_version} SOVERSION ${_soversion} )
+  endif( _version )
+
+  # set interface libraries (only for shared)
+  unset( _shared_libs )
+  foreach( _lib ${_link} )
+    #get_target_property( _lib_type ${_lib} TYPE )
+    #if( NOT "STATIC_LIBRARY" STREQUAL "${_lib_type}" )
+    if( NOT ${_lib} MATCHES ".+-static" )
+      list( APPEND _shared_libs ${_lib} )
+    endif( NOT ${_lib} MATCHES ".+-static" )
+    #endif( NOT "STATIC_LIBRARY" STREQUAL "${_lib_type}" )
+  endforeach( _lib )
+  target_link_libraries( ${_target} LINK_INTERFACE_LIBRARIES ${_shared_libs} )
+
+  # set embedded archives
+  if( _embed )
+    list( INSERT _link 0 -Wl,-whole-archive ${_embed} -Wl,-no-whole-archive )
+  endif( _embed )
+
+  # set link libraries
+  if( _link )
+    target_link_libraries( ${_target} ${_link} )
+  endif( )
+
+  # set dependencies
+  if( _dependencies )
+    add_dependencies( ${_target} ${_dependencies} )
+  endif( _dependencies )
+
+  # if destination directory is set
+  if( _destination )
+
+    # we export only shared libs (no static, no modules);
+    # also, do not export targets marked as "NO_EXPORT" (usually for kdeinit)
+    if( "SHARED" STREQUAL ${_type} AND NOT _no_export )
+
+      # get target properties: output name, version, soversion
+      get_target_property( _output ${_target} LOCATION )
+      get_filename_component( _output ${_output} NAME )
+      get_target_property( _version ${_target} VERSION )
+      get_target_property( _soversion ${_target} SOVERSION )
+
+      if( _version )
+        set( _location "${_destination}/${_output}.${_version}" )
+        set( _soname "${_output}.${_soversion}" )
+      else( )
+        set( _location "${_destination}/${_output}" )
+        set( _soname "${_output}" )
+      endif( )
+
+      configure_file( ${CMAKE_SOURCE_DIR}/cmake/modules/template_export_library.cmake "${PROJECT_BINARY_DIR}/export-${_target}.cmake" @ONLY )
+    endif( )
+
+    # install target
+    install( TARGETS ${_target} DESTINATION ${_destination} )
+
+    # install .la files for dynamic libraries
+    if( NOT "STATIC" STREQUAL ${_type} AND NOT _no_libtool_file )
+      tde_install_libtool_file( ${_target} ${_destination} )
+    endif( )
+
+  endif( _destination )
+
+endmacro( tde_add_library )
+
+
+#################################################
+#####
+##### tde_add_kpart
+
+macro( tde_add_kpart _target )
+  tde_add_library( ${_target} ${ARGN} MODULE )
+endmacro( tde_add_kpart )
+
+
+#################################################
+#####
+##### tde_add_executable
+
+macro( tde_add_executable _arg_target )
+
+  unset( _target )
+  unset( _automoc )
+  unset( _meta_includes )
+  unset( _setuid )
+  unset( _sources )
+  unset( _destination )
+  unset( _link )
+  unset( _dependencies )
+  unset( _storage )
+
+  foreach( _arg ${ARGV} )
+
+    # this variable help us to skip
+    # storing unapropriate values (i.e. directives)
+    unset( _skip_store )
+
+    # found directive "AUTOMOC"
+    if( "${_arg}" STREQUAL "AUTOMOC" )
+      set( _skip_store 1 )
+      set( _automoc 1 )
+    endif( "${_arg}" STREQUAL "AUTOMOC" )
+
+    # found directive "META_INCLUDES"
+    if( "${_arg}" STREQUAL "META_INCLUDES" )
+      set( _skip_store 1 )
+      set( _storage "_meta_includes" )
+    endif( )
+
+    # found directive "SETUID"
+    if( "${_arg}" STREQUAL "SETUID" )
+      set( _skip_store 1 )
+      set( _setuid 1 )
+    endif( "${_arg}" STREQUAL "SETUID" )
+
+    # found directive "SOURCES"
+    if( "${_arg}" STREQUAL "SOURCES" )
+      set( _skip_store 1 )
+      set( _storage "_sources" )
+    endif( "${_arg}" STREQUAL "SOURCES" )
+
+    # found directive "LINK"
+    if( "${_arg}" STREQUAL "LINK" )
+      set( _skip_store 1 )
+      set( _storage "_link" )
+    endif( "${_arg}" STREQUAL "LINK" )
+
+    # found directive "DEPENDENCIES"
+    if( "${_arg}" STREQUAL "DEPENDENCIES" )
+      set( _skip_store 1 )
+      set( _storage "_dependencies" )
+    endif( "${_arg}" STREQUAL "DEPENDENCIES" )
+
+    # found directive "DESTINATION"
+    if( "${_arg}" STREQUAL "DESTINATION" )
+      set( _skip_store 1 )
+      set( _storage "_destination" )
+      unset( ${_storage} )
+    endif( "${_arg}" STREQUAL "DESTINATION" )
+
+    # storing value
+    if( _storage AND NOT _skip_store )
+      #set( ${_storage} "${${_storage}} ${_arg}" )
+      list( APPEND ${_storage} ${_arg} )
+    endif( _storage AND NOT _skip_store )
+
+  endforeach( _arg )
+
+  set( _target "${_arg_target}" )
+
+  # disallow target without sources
+  if( NOT _sources )
+    message( FATAL_ERROR "\nTarget [$_target] have no sources." )
+  endif( NOT _sources )
+
+  # processing different types of sources
+  __tde_internal_process_sources( _sources ${_sources} )
+
+  # set automoc
+  if( _automoc )
+    tde_automoc( ${_sources} )
+  endif( _automoc )
+
+  # add target
+  add_executable( ${_target} ${_sources} )
+
+  # set link libraries
+  if( _link )
+    target_link_libraries( ${_target} ${_link} )
+  endif( _link )
+
+  # set dependencies
+  if( _dependencies )
+    add_dependencies( ${_target} ${_dependencies} )
+  endif( _dependencies )
+
+  # set destination directory
+  if( _destination )
+    if( _setuid )
+      install( TARGETS ${_target} DESTINATION ${_destination} PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_EXECUTE WORLD_EXECUTE SETUID )
+    else( _setuid )
+      install( TARGETS ${_target} DESTINATION ${_destination} )
+    endif( _setuid )
+  endif( _destination )
+
+endmacro( tde_add_executable )
+
+
+#################################################
+#####
+##### tde_add_kdeinit_executable
+
+macro( tde_add_kdeinit_executable _target )
+
+  configure_file( ${CMAKE_SOURCE_DIR}/cmake/modules/template_kdeinit_executable.cmake ${_target}_kdeinit_executable.cpp COPYONLY )
+  configure_file( ${CMAKE_SOURCE_DIR}/cmake/modules/template_kdeinit_module.cmake ${_target}_kdeinit_module.cpp COPYONLY )
+
+  unset( _sources )
+  unset( _runtime_destination )
+  unset( _library_destination )
+  unset( _plugin_destination )
+
+  # default storage is _sources
+  set( _storage _sources )
+
+  # set default export to NO_EXPORT
+  set( _export "NO_EXPORT" )
+
+  foreach( _arg ${ARGN} )
+
+    # this variable help us to skip
+    # storing unapropriate values (i.e. directives)
+    unset( _skip_store )
+
+    # found directive "EXPORT"
+    if( "${_arg}" STREQUAL "EXPORT" )
+      set( _skip_store 1 )
+      unset( _export )
+    endif( "${_arg}" STREQUAL "EXPORT" )
+
+    # found directive "RUNTIME_DESTINATION"
+    if( "${_arg}" STREQUAL "RUNTIME_DESTINATION" )
+      set( _skip_store 1 )
+      set( _storage "_runtime_destination" )
+      unset( ${_storage} )
+    endif( "${_arg}" STREQUAL "RUNTIME_DESTINATION" )
+
+    # found directive "LIBRARY_DESTINATION"
+    if( "${_arg}" STREQUAL "LIBRARY_DESTINATION" )
+      set( _skip_store 1 )
+      set( _storage "_library_destination" )
+      unset( ${_storage} )
+    endif( "${_arg}" STREQUAL "LIBRARY_DESTINATION" )
+
+    # found directive "PLUGIN_DESTINATION"
+    if( "${_arg}" STREQUAL "PLUGIN_DESTINATION" )
+      set( _skip_store 1 )
+      set( _storage "_plugin_destination" )
+      unset( ${_storage} )
+    endif( "${_arg}" STREQUAL "PLUGIN_DESTINATION" )
+
+    # storing value
+    if( _storage AND NOT _skip_store )
+      list( APPEND ${_storage} ${_arg} )
+      set( _storage "_sources" )
+    endif( _storage AND NOT _skip_store )
+
+  endforeach( _arg )
+
+  # if destinations are not set, we using some defaults
+  # we assume that kdeinit executable MUST be installed
+  # (otherwise why we build it?)
+  if( NOT _runtime_destination )
+    set( _runtime_destination ${BIN_INSTALL_DIR} )
+  endif( NOT _runtime_destination )
+  if( NOT _library_destination )
+    set( _library_destination ${LIB_INSTALL_DIR} )
+  endif( NOT _library_destination )
+  if( NOT _plugin_destination )
+    set( _plugin_destination ${PLUGIN_INSTALL_DIR} )
+  endif( NOT _plugin_destination )
+
+  # create the library
+  tde_add_library( kdeinit_${_target} ${_sources} SHARED ${_export}
+    DESTINATION ${_library_destination}
+  )
+
+  # create the executable
+  tde_add_executable( ${_target}
+    SOURCES ${CMAKE_CURRENT_BINARY_DIR}/${_target}_kdeinit_executable.cpp
+    LINK kdeinit_${_target}-shared
+    DESTINATION ${_runtime_destination}
+  )
+
+  # create the plugin
+  tde_add_kpart( ${_target}
+    SOURCES ${CMAKE_CURRENT_BINARY_DIR}/${_target}_kdeinit_module.cpp
+    LINK kdeinit_${_target}-shared
+    DESTINATION ${_plugin_destination}
+  )
+
+endmacro( tde_add_kdeinit_executable )
+
+
+#################################################
+#####
+##### tde_create_translation
+
+macro( tde_create_translation )
+
+  unset( _srcs )
+  unset( _lang )
+  unset( _dest )
+  unset( _directive )
+  unset( _var )
+
+  foreach( _arg ${ARGN} )
+
+    # found directive "FILES"
+    if( "${_arg}" STREQUAL "FILES" )
+      unset( _srcs )
+      set( _var _srcs )
+      set( _directive 1 )
+    endif( )
+
+    # found directive "LANG"
+    if( "${_arg}" STREQUAL "LANG" )
+      unset( _lang )
+      set( _var _lang )
+      set( _directive 1 )
+    endif( )
+
+    # found directive "DESTINATION"
+    if( "${_arg}" STREQUAL "DESTINATION" )
+      unset( _dest )
+      set( _var _dest )
+      set( _directive 1 )
+    endif( )
+
+    # collect data
+    if( _directive )
+      unset( _directive )
+    elseif( _var )
+      list( APPEND ${_var} ${_arg} )
+    endif()
+
+  endforeach( )
+
+  if( NOT MSGFMT_EXECUTABLE )
+    tde_message_fatal( "MSGFMT_EXECUTABLE variable is not defined" )
+  elseif( NOT _lang )
+    tde_message_fatal( "missing LANG directive" )
+  elseif( NOT _dest )
+    set( _dest "${LOCALE_INSTALL_DIR}/${_lang}/LC_MESSAGES" )
+  endif( )
+
+  # if no file specified, include all *.po files
+  if( NOT _srcs )
+    file( GLOB _srcs RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.po  )
+  endif()
+  if( NOT _srcs )
+    tde_message_fatal( "no source files" )
+  endif()
+
+  # generate *.mo files
+  foreach( _src ${_srcs} )
+    get_filename_component( _src ${_src} ABSOLUTE )
+    get_filename_component( _out ${_src} NAME_WE )
+    set( _out_name "${_out}-${_lang}.mo" )
+    set( _out_real_name "${_out}.mo" )
+    add_custom_command(
+      OUTPUT ${_out_name}
+      COMMAND ${MSGFMT_EXECUTABLE} ${_src} -o ${_out_name}
+      DEPENDS ${_src} )
+    add_custom_target( "${_out}-${_lang}-translation" ALL DEPENDS ${_out_name} )
+    install( FILES ${CMAKE_CURRENT_BINARY_DIR}/${_out_name} RENAME ${_out_real_name} DESTINATION ${_dest} )
+  endforeach( )
+
+endmacro( )
+
+
+#################################################
+#####
+##### tde_create_handbook
+
+macro( tde_create_handbook )
+
+  unset( _target )
+  unset( _dest )
+  unset( _noindex )
+  unset( _srcs )
+  unset( _extra )
+  unset( _srcdir )
+
+  set( _lang en )
+  set( _first_arg 1 )
+  set( _var _target )
+
+  foreach( _arg ${ARGN} )
+
+    # found directive "NOINDEX"
+    if( "${_arg}" STREQUAL "NOINDEX" )
+      set( _noindex 1 )
+      set( _directive 1 )
+    endif()
+
+    # found directive "FILES"
+    if( "${_arg}" STREQUAL "FILES" )
+      unset( _srcs )
+      set( _var _srcs )
+      set( _directive 1 )
+    endif()
+
+    # found directive "EXTRA"
+    if( "${_arg}" STREQUAL "EXTRA" )
+      unset( _extra )
+      set( _var _extra )
+      set( _directive 1 )
+    endif()
+
+    # found directive "SRCDIR"
+    if( "${_arg}" STREQUAL "SRCDIR" )
+      unset( _srcdir )
+      set( _var _srcdir )
+      set( _directive 1 )
+    endif()
+
+    # found directive DESTINATION
+    if( _arg STREQUAL "DESTINATION" )
+      unset( _dest )
+      set( _var _dest )
+      set( _directive 1 )
+    endif()
+
+    # found directive "LANG"
+    if( "${_arg}" STREQUAL "LANG" )
+      unset( _lang )
+      set( _var _lang )
+      set( _directive 1 )
+    endif()
+
+    # collect data
+    if( _directive )
+      unset( _directive )
+    elseif( _var )
+      if( _first_arg )
+        set( _target "${_arg}" )
+      else()
+        list( APPEND ${_var} ${_arg} )
+      endif()
+    endif()
+
+    unset( _first_arg )
+
+  endforeach()
+
+  # if no target specified, try to guess it from DESTINATION
+  if( NOT _target )
+    if( NOT _dest )
+      tde_message_fatal( "target name cannot be determined because DESTINATION is not set" )
+    endif()
+    string( REPLACE "/" "-" _target "${_dest}" )
+  endif()
+
+  set( _target "${_target}-${_lang}-handbook" )
+
+  # if no file specified, include all docbooks, stylesheets and images
+  if( NOT _srcs )
+    file( GLOB _srcs RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.docbook *.css *.png  )
+  endif()
+
+  # if no destination specified, defaulting to HTML_INSTALL_DIR
+  if( NOT _dest )
+    set( _dest "${HTML_INSTALL_DIR}/${_lang}" )
+  # if destination is NOT absolute path,
+  # we assume that is relative to HTML_INSTALL_DIR
+  elseif( NOT IS_ABSOLUTE ${_dest} )
+    set( _dest "${HTML_INSTALL_DIR}/${_lang}/${_dest}" )
+  endif()
+
+  if( NOT _srcs )
+    tde_message_fatal( "no source files" )
+  endif()
+
+  if( NOT _noindex )
+
+    # check for index.docbook
+    list( FIND _srcs "index.docbook" _find_index )
+    if( -1 EQUAL _find_index )
+      tde_message_fatal( "missing index.docbook file" )
+    endif()
+
+    # check for srcdir
+    if( _srcdir )
+      set( _srcdir "--srcdir=${_srcdir}" )
+    endif()
+
+    add_custom_command(
+      OUTPUT index.cache.bz2
+      COMMAND ${KDE3_MEINPROC_EXECUTABLE} ${_srcdir} --check --cache index.cache.bz2 ${CMAKE_CURRENT_SOURCE_DIR}/index.docbook
+      DEPENDS ${_srcs} )
+
+    add_custom_target( ${_target} ALL DEPENDS index.cache.bz2 )
+
+    list( APPEND _srcs ${CMAKE_CURRENT_BINARY_DIR}/index.cache.bz2 )
+
+  endif()
+
+  install( FILES ${_srcs} ${_extra} DESTINATION ${_dest} )
+  tde_install_symlink( ${TDE_HTML_DIR}/${_lang}/common ${_dest} )
+
+endmacro( )
+
+
+#################################################
+#####
+##### tde_include_tqt
+
+macro( tde_include_tqt )
+  foreach( _cpp ${ARGN} )
+    set_source_files_properties( ${_cpp} PROPERTIES COMPILE_FLAGS "-include tqt.h" )
+  endforeach()
+endmacro( )
+
+
+#################################################
+#####
+##### tde_install_symlink
+
+macro( tde_install_symlink _target _link )
+
+  # if path is relative, we must to prefix it with CMAKE_INSTALL_PREFIX
+  if( IS_ABSOLUTE "${_link}" )
+    set( _destination "${_link}" )
+  else( IS_ABSOLUTE "${_link}" )
+    set( _destination "${CMAKE_INSTALL_PREFIX}/${_link}" )
+  endif( IS_ABSOLUTE "${_link}" )
+
+  get_filename_component( _path "${_destination}" PATH )
+  if( NOT IS_DIRECTORY "\$ENV{DESTDIR}${_path}" )
+    install( CODE "file( MAKE_DIRECTORY \"\$ENV{DESTDIR}${_path}\" )" )
+  endif( NOT IS_DIRECTORY "\$ENV{DESTDIR}${_path}" )
+
+  install( CODE "execute_process( COMMAND ln -s ${_target} \$ENV{DESTDIR}${_destination} )" )
+
+endmacro( tde_install_symlink )
+
+
+#################################################
+#####
+##### tde_install_empty_directory
+
+macro( tde_install_empty_directory _path )
+
+  # if path is relative, we must to prefix it with CMAKE_INSTALL_PREFIX
+  if( IS_ABSOLUTE "${_path}" )
+    set( _destination "${_path}" )
+  else( IS_ABSOLUTE "${_path}" )
+    set( _destination "${CMAKE_INSTALL_PREFIX}/${_path}" )
+  endif( IS_ABSOLUTE "${_path}" )
+
+  install( CODE "file( MAKE_DIRECTORY \"\$ENV{DESTDIR}${_destination}\" )" )
+
+endmacro( tde_install_empty_directory )
+
+
+#################################################
+#####
+##### tde_conditional_add_subdirectory
+
+macro( tde_conditional_add_subdirectory _cond _path )
+
+  if( ${_cond} )
+    add_subdirectory( "${_path}" )
+  endif( ${_cond} )
+
+endmacro( tde_conditional_add_subdirectory )
+
+
+#################################################
+#####
+##### tde_auto_add_subdirectories
+
+macro( tde_auto_add_subdirectories )
+  file( GLOB _dirs RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} * )
+  foreach( _dir ${_dirs} )
+    if( IS_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/${_dir} )
+      if( NOT ${_dir} STREQUAL ".svn" AND EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${_dir}/CMakeLists.txt )
+        add_subdirectory( ${_dir} )
+      endif()
+    endif()
+  endforeach()
+endmacro()
+
+
+#################################################
+#####
+##### tde_save / tde_restore
+
+macro( tde_save )
+  foreach( _var ${ARGN} )
+    set( __bak_${_var} ${${_var}} )
+  endforeach()
+endmacro()
+
+macro( tde_restore )
+  foreach( _var ${ARGN} )
+    set( ${_var} ${__bak_${_var}} )
+    unset( __bak_${_var} )
+  endforeach()
+endmacro()
+
+
+#################################################
+#####
+##### tde_setup_install_path
+
+macro( tde_setup_install_path _path _default )
+  if( DEFINED ${_path} )
+    set( ${_path} "${${_path}}" CACHE INTERNAL "" FORCE )
+  else( )
+    set( ${_path} "${_default}" )
+  endif( )
+endmacro( )
+
+
+##################################################
+
+if( ${CMAKE_SOURCE_DIR} MATCHES ${CMAKE_BINARY_DIR} )
+    tde_message_fatal( "Please use out-of-source building, like this:
+ \n   rm ${CMAKE_SOURCE_DIR}/CMakeCache.txt
+   mkdir /tmp/${PROJECT_NAME}.build
+   cd /tmp/${PROJECT_NAME}.build
+   cmake ${CMAKE_SOURCE_DIR} [arguments...]" )
+endif( )
diff -u -r -N applications/knetworkmanager9/cmake/modules/TDESetupPaths.cmake src/applications/knetworkmanager9/cmake/modules/TDESetupPaths.cmake
--- applications/knetworkmanager9/cmake/modules/TDESetupPaths.cmake	1970-01-01 01:00:00.000000000 +0100
+++ src/applications/knetworkmanager9/cmake/modules/TDESetupPaths.cmake	2011-12-16 17:12:34.000000000 +0100
@@ -0,0 +1,67 @@
+#################################################
+#
+#  (C) 2010-2011 Serghei Amelian
+#  serghei (DOT) amelian (AT) gmail.com
+#
+#  Improvements and feedback are welcome
+#
+#  This file is released under GPL >= 2
+#
+#################################################
+
+#################################################
+#####
+##### tde_internal_setup_path
+
+macro( _tde_internal_setup_path _path _default _comment )
+  if( DEFINED ${_path} )
+    set( ${_path} "${${_path}}" CACHE PATH "${_comment}" )
+  else( DEFINED ${_path} )
+    set( ${_path} "${_default}" )
+  endif( DEFINED ${_path} )
+endmacro( _tde_internal_setup_path )
+
+
+#################################################
+#####
+##### tde_setup_paths
+
+macro( tde_setup_paths )
+
+  # install paths
+  _tde_internal_setup_path( EXEC_INSTALL_PREFIX       "${CMAKE_INSTALL_PREFIX}"                     "Base directory for executables and libraries" )
+  _tde_internal_setup_path( SHARE_INSTALL_PREFIX      "${CMAKE_INSTALL_PREFIX}/share"               "Base directory for files which go to share/" )
+  _tde_internal_setup_path( BIN_INSTALL_DIR           "${EXEC_INSTALL_PREFIX}/bin"                  "The install dir for executables (default ${EXEC_INSTALL_PREFIX}/bin)" )
+  _tde_internal_setup_path( SBIN_INSTALL_DIR          "${EXEC_INSTALL_PREFIX}/sbin"                 "The install dir for system executables (default ${EXEC_INSTALL_PREFIX}/sbin)" )
+  _tde_internal_setup_path( LIB_INSTALL_DIR           "${EXEC_INSTALL_PREFIX}/lib${LIB_SUFFIX}"     "The subdirectory relative to the install prefix where libraries will be installed (default is ${EXEC_INSTALL_PREFIX}/lib${LIB_SUFFIX})" )
+  _tde_internal_setup_path( LIBEXEC_INSTALL_DIR       "${LIB_INSTALL_DIR}/trinity/libexec"             "The subdirectory relative to the install prefix where libraries will be installed (default is ${LIB_INSTALL_DIR}/trinity/libexec)" )
+  _tde_internal_setup_path( INCLUDE_INSTALL_DIR       "${CMAKE_INSTALL_PREFIX}/include"             "The subdirectory to the header prefix" )
+
+  _tde_internal_setup_path( CMAKE_INSTALL_DIR         "${SHARE_INSTALL_PREFIX}/cmake"               "The install dir for cmake import modules" )
+  _tde_internal_setup_path( PLUGIN_INSTALL_DIR        "${LIB_INSTALL_DIR}/trinity"                     "The subdirectory relative to the install prefix where plugins will be installed (default is ${LIB_INSTALL_DIR}/trinity)" )
+  _tde_internal_setup_path( CONFIG_INSTALL_DIR        "${SHARE_INSTALL_PREFIX}/config"              "The config file install dir" )
+  _tde_internal_setup_path( DATA_INSTALL_DIR          "${SHARE_INSTALL_PREFIX}/apps"                "The parent directory where applications can install their data" )
+  _tde_internal_setup_path( HTML_INSTALL_DIR          "${SHARE_INSTALL_PREFIX}/doc/kde/HTML"        "The HTML install dir for documentation" )
+  _tde_internal_setup_path( ICON_INSTALL_DIR          "${SHARE_INSTALL_PREFIX}/icons"               "The icon install dir (default ${SHARE_INSTALL_PREFIX}/share/icons/)" )
+  _tde_internal_setup_path( KCFG_INSTALL_DIR          "${SHARE_INSTALL_PREFIX}/config.kcfg"         "The install dir for kconfig files" )
+  _tde_internal_setup_path( LOCALE_INSTALL_DIR        "${SHARE_INSTALL_PREFIX}/locale"              "The install dir for translations" )
+  _tde_internal_setup_path( APPS_INSTALL_DIR          "${SHARE_INSTALL_PREFIX}/applnk"              "The install dir for the application desktop files" )
+  _tde_internal_setup_path( MIME_INSTALL_DIR          "${SHARE_INSTALL_PREFIX}/mimelnk"             "The install dir for the mimetype desktop files" )
+  _tde_internal_setup_path( SERVICES_INSTALL_DIR      "${SHARE_INSTALL_PREFIX}/services"            "The install dir for service (desktop, protocol, ...) files" )
+  _tde_internal_setup_path( SERVICETYPES_INSTALL_DIR  "${SHARE_INSTALL_PREFIX}/servicetypes"        "The install dir for servicestypes desktop files" )
+  _tde_internal_setup_path( SOUND_INSTALL_DIR         "${SHARE_INSTALL_PREFIX}/sounds"              "The install dir for sound files" )
+  _tde_internal_setup_path( TEMPLATES_INSTALL_DIR     "${SHARE_INSTALL_PREFIX}/templates"           "The install dir for templates (Create new file...)" )
+  _tde_internal_setup_path( WALLPAPER_INSTALL_DIR     "${SHARE_INSTALL_PREFIX}/wallpapers"          "The install dir for wallpapers" )
+  _tde_internal_setup_path( KCONF_UPDATE_INSTALL_DIR  "${DATA_INSTALL_DIR}/kconf_update"            "The kconf_update install dir" )
+  _tde_internal_setup_path( AUTOSTART_INSTALL_DIR     "${SHARE_INSTALL_PREFIX}/autostart"           "The install dir for autostart files" )
+
+  _tde_internal_setup_path( SYSCONF_INSTALL_DIR       "${CMAKE_INSTALL_PREFIX}/etc"                 "The sysconfig install dir (default ${CMAKE_INSTALL_PREFIX}/etc)" )
+  _tde_internal_setup_path( MAN_INSTALL_DIR           "${SHARE_INSTALL_PREFIX}/man"                 "The man install dir (default ${SHARE_INSTALL_PREFIX}/man/)" )
+  _tde_internal_setup_path( INFO_INSTALL_DIR          "${SHARE_INSTALL_PREFIX}/info"                "The info install dir (default ${SHARE_INSTALL_PREFIX}/info)" )
+
+  _tde_internal_setup_path( XDG_MENU_INSTALL_DIR      "${SYSCONF_INSTALL_DIR}/xdg/menus"            "The XDG menus dir" )
+  _tde_internal_setup_path( XDG_APPS_INSTALL_DIR      "${SHARE_INSTALL_PREFIX}/applications/kde"    "The XDG apps dir" )
+  _tde_internal_setup_path( XDG_DIRECTORY_INSTALL_DIR "${SHARE_INSTALL_PREFIX}/desktop-directories" "The XDG directory" )
+  _tde_internal_setup_path( XDG_MIME_INSTALL_DIR      "${SHARE_INSTALL_PREFIX}/mime/packages"       "The install dir for the xdg mimetypes" )
+
+endmacro( tde_setup_paths )
diff -u -r -N applications/knetworkmanager9/cmake/modules/tde_uic.cmake src/applications/knetworkmanager9/cmake/modules/tde_uic.cmake
--- applications/knetworkmanager9/cmake/modules/tde_uic.cmake	1970-01-01 01:00:00.000000000 +0100
+++ src/applications/knetworkmanager9/cmake/modules/tde_uic.cmake	2011-12-16 17:12:34.000000000 +0100
@@ -0,0 +1,52 @@
+#################################################
+#
+#  (C) 2010-2011 Serghei Amelian
+#  serghei (DOT) amelian (AT) gmail.com
+#
+#  Improvements and feedback are welcome
+#
+#  This file is released under GPL >= 2
+#
+#################################################
+
+get_filename_component( _ui_basename ${UI_FILE} NAME_WE )
+
+# FIXME this will working only on out-of-source mode
+set( local_ui_file ${_ui_basename}.ui )
+configure_file( ${UI_FILE} ${local_ui_file} COPYONLY )
+execute_process( COMMAND tqt-replace ${local_ui_file} )
+
+# ui.h extension file, if exists
+if( EXISTS "${UI_FILE}.h" )
+  configure_file( ${UI_FILE}.h ${local_ui_file}.h COPYONLY )
+  execute_process( COMMAND tqt-replace ${local_ui_file}.h )
+endif( )
+
+if( TDE_QTPLUGINS_DIR )
+  set( L -L ${TDE_QTPLUGINS_DIR} )
+endif( )
+
+execute_process( COMMAND ${UIC_EXECUTABLE}
+  -nounload -tr tr2i18n
+  ${L}
+  ${local_ui_file}
+  OUTPUT_VARIABLE _ui_h_content )
+
+if( _ui_h_content )
+  string( REGEX REPLACE "#ifndef " "#ifndef UI_" _ui_h_content "${_ui_h_content}" )
+  string( REGEX REPLACE "#define " "#define UI_" _ui_h_content "${_ui_h_content}" )
+  file( WRITE ${_ui_basename}.h "${_ui_h_content}" )
+endif( )
+
+execute_process( COMMAND ${UIC_EXECUTABLE}
+  -nounload -tr tr2i18n
+  ${L}
+  -impl ${_ui_basename}.h
+  ${local_ui_file}
+  OUTPUT_VARIABLE _ui_cpp_content )
+
+if( _ui_cpp_content )
+  string( REGEX REPLACE "tr2i18n\\(\"\"\\)" "QString::null" _ui_cpp_content "${_ui_cpp_content}" )
+  string( REGEX REPLACE "tr2i18n\\(\"\", \"\"\\)" "QString::null" _ui_cpp_content "${_ui_cpp_content}" )
+  file( WRITE ${_ui_basename}.cpp "#include <kdialog.h>\n#include <klocale.h>\n\n${_ui_cpp_content}" )
+endif( )
diff -u -r -N applications/knetworkmanager9/cmake/modules/template_dummy_cpp.cmake src/applications/knetworkmanager9/cmake/modules/template_dummy_cpp.cmake
--- applications/knetworkmanager9/cmake/modules/template_dummy_cpp.cmake	1970-01-01 01:00:00.000000000 +0100
+++ src/applications/knetworkmanager9/cmake/modules/template_dummy_cpp.cmake	2011-12-16 17:12:34.000000000 +0100
@@ -0,0 +1,5 @@
+#ifdef _AIX
+  namespace {
+  void *not_empty_file;
+  }
+#endif
diff -u -r -N applications/knetworkmanager9/cmake/modules/template_export_library.cmake src/applications/knetworkmanager9/cmake/modules/template_export_library.cmake
--- applications/knetworkmanager9/cmake/modules/template_export_library.cmake	1970-01-01 01:00:00.000000000 +0100
+++ src/applications/knetworkmanager9/cmake/modules/template_export_library.cmake	2011-12-16 17:12:34.000000000 +0100
@@ -0,0 +1,7 @@
+add_library( @_target@ @_type@ IMPORTED )
+
+set_target_properties( @_target@ PROPERTIES
+  IMPORTED_LINK_INTERFACE_LIBRARIES "@_shared_libs@"
+  IMPORTED_LOCATION "@_location@"
+  IMPORTED_SONAME "@_soname@" )
+
diff -u -r -N applications/knetworkmanager9/cmake/modules/template_kdeinit_executable.cmake src/applications/knetworkmanager9/cmake/modules/template_kdeinit_executable.cmake
--- applications/knetworkmanager9/cmake/modules/template_kdeinit_executable.cmake	1970-01-01 01:00:00.000000000 +0100
+++ src/applications/knetworkmanager9/cmake/modules/template_kdeinit_executable.cmake	2011-12-16 17:12:34.000000000 +0100
@@ -0,0 +1,2 @@
+extern "C" int kdemain(int argc, char* argv[]);
+int main(int argc, char* argv[]) { return kdemain(argc,argv); }
diff -u -r -N applications/knetworkmanager9/cmake/modules/template_kdeinit_module.cmake src/applications/knetworkmanager9/cmake/modules/template_kdeinit_module.cmake
--- applications/knetworkmanager9/cmake/modules/template_kdeinit_module.cmake	1970-01-01 01:00:00.000000000 +0100
+++ src/applications/knetworkmanager9/cmake/modules/template_kdeinit_module.cmake	2011-12-16 17:12:34.000000000 +0100
@@ -0,0 +1,3 @@
+#include <kdemacros.h>
+extern "C" int kdemain(int argc, char* argv[]);
+extern "C" KDE_EXPORT int kdeinitmain(int argc, char* argv[]) { return kdemain(argc,argv); }
diff -u -r -N applications/knetworkmanager9/cmake/modules/template_libtool_file.cmake src/applications/knetworkmanager9/cmake/modules/template_libtool_file.cmake
--- applications/knetworkmanager9/cmake/modules/template_libtool_file.cmake	1970-01-01 01:00:00.000000000 +0100
+++ src/applications/knetworkmanager9/cmake/modules/template_libtool_file.cmake	2011-12-16 17:12:34.000000000 +0100
@@ -0,0 +1,35 @@
+# @_laname@ - a libtool library file
+# Generated by CMake - GNU libtool
+#
+# Please DO NOT delete this file!
+# It is necessary for linking the library.
+
+# The name that we can dlopen(3).
+dlname='@_library_name_2@'
+
+# Names of this library.
+library_names='@_library_name_1@ @_library_name_2@ @_library_name_3@'
+
+# The name of the static archive.
+old_library=''
+
+# Libraries that this one depends upon.
+dependency_libs=''
+
+# Version information for @_name@.
+current=@_version_current@
+age=@_version_age@
+revision=@_version_revision@
+
+# Is this an already installed library?
+installed=yes
+
+# Should we warn about portability when linking against -modules?
+shouldnotlink=@_shouldnotlink@
+
+# Files to dlopen/dlpreopen
+dlopen=''
+dlpreopen=''
+
+# Directory that this library needs to be installed in:
+libdir='@_libdir@'
diff -u -r -N applications/knetworkmanager9/ConfigureChecks.cmake src/applications/knetworkmanager9/ConfigureChecks.cmake
--- applications/knetworkmanager9/ConfigureChecks.cmake	2011-10-17 19:42:55.000000000 +0200
+++ src/applications/knetworkmanager9/ConfigureChecks.cmake	2011-12-16 17:13:04.000000000 +0100
@@ -24,11 +24,11 @@
 
 
 # dbus-1-tqt
-pkg_search_module( DBUS_TQT dbus-1-tqt )
+pkg_search_module( DBUS_TQT dbus-tqt-1 )
 if( DBUS_TQT_FOUND )
   find_program( DBUSXML2QT3_EXECUTABLE NAMES dbusxml2qt3 )
 else()
-  tde_message_fatal( "dbus-1-tqt are required, but not found on your system" )
+  tde_message_fatal( "dbus-tqt-1 are required, but not found on your system" )
 endif( )