summaryrefslogtreecommitdiff
path: root/x11/kdebase2/patches/patch-be
blob: 3ac4863ae6d2dc8b5af2c5a4f4a9653943bd42f4 (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
$NetBSD: patch-be,v 1.2 2001/12/03 15:37:19 skrll Exp $

--- kdeprint/kjobviewer/Makefile.in.orig	Sat Nov 10 07:58:23 2001
+++ kdeprint/kjobviewer/Makefile.in
@@ -276,15 +276,20 @@
 INCLUDES = $(all_includes)
 
 bin_PROGRAMS = kjobviewer
-lib_LTLIBRARIES = kjobviewer.la
+lib_LTLIBRARIES = libkjobviewer_main.la kjobviewer.la
 
-kjobviewer_SOURCES = dummy.cpp
-kjobviewer_LDADD = kjobviewer.la
+kjobviewer_SOURCES = kjobviewer_main.cpp
+kjobviewer_LDADD = libkjobviewer_main.la
 kjobviewer_LDFLAGS = $(KDE_RPATH) $(all_libraries)
 
-kjobviewer_la_SOURCES = kjobviewer.cpp main.cpp
+libkjobviewer_main_la_SOURCES = kjobviewer.cpp main.cpp
+#>- libkjobviewer_main_la_METASOURCES = AUTO
+libkjobviewer_main_la_LIBADD = -lkdeprint_management $(LIB_KDEUI)
+libkjobviewer_main_la_LDFLAGS = $(all_libraries) $(KDE_RPATH)
+
+kjobviewer_la_SOURCES = kjobviewer_main.cpp
 #>- kjobviewer_la_METASOURCES = AUTO
-kjobviewer_la_LIBADD = -lkdeprint_management $(LIB_KDEUI)
+kjobviewer_la_LIBADD = libkjobviewer_main.la
 kjobviewer_la_LDFLAGS = -module -avoid-version $(all_libraries) $(KDE_RPATH)
 
 noinst_HEADERS = kjobviewer.h
@@ -308,21 +313,25 @@
 LIBS = @LIBS@
 X_CFLAGS = @X_CFLAGS@
 X_LIBS = @X_LIBS@
-kjobviewer_la_DEPENDENCIES = 
-#>- kjobviewer_la_OBJECTS =  kjobviewer.lo main.lo
+libkjobviewer_main_la_DEPENDENCIES = 
+#>- libkjobviewer_main_la_OBJECTS =  kjobviewer.lo main.lo
 #>+ 5
-kjobviewer_la_final_OBJECTS = kjobviewer_la.all_cpp.lo 
-kjobviewer_la_nofinal_OBJECTS = kjobviewer.lo main.lo \
-	kjobviewer_la_meta_unload.lo 
-@KDE_USE_FINAL_FALSE@kjobviewer_la_OBJECTS = $(kjobviewer_la_nofinal_OBJECTS)
-@KDE_USE_FINAL_TRUE@kjobviewer_la_OBJECTS = $(kjobviewer_la_final_OBJECTS)
+libkjobviewer_main_la_final_OBJECTS = libkjobviewer_main_la.all_cpp.lo 
+libkjobviewer_main_la_nofinal_OBJECTS = kjobviewer.lo main.lo \
+	libkjobviewer_main_la_meta_unload.lo 
+@KDE_USE_FINAL_FALSE@libkjobviewer_main_la_OBJECTS = $(libkjobviewer_main_la_nofinal_OBJECTS)
+@KDE_USE_FINAL_TRUE@libkjobviewer_main_la_OBJECTS = $(libkjobviewer_main_la_final_OBJECTS)
+kjobviewer_la_DEPENDENCIES =  libkjobviewer_main.la
+#>- kjobviewer_la_OBJECTS =  kjobviewer_main.lo
+#>+ 1
+kjobviewer_la_OBJECTS = kjobviewer_main.lo
 bin_PROGRAMS =  kjobviewer$(EXEEXT)
 PROGRAMS =  $(bin_PROGRAMS)
 
-#>- kjobviewer_OBJECTS =  dummy.$(OBJEXT)
+#>- kjobviewer_OBJECTS =  kjobviewer_main.$(OBJEXT)
 #>+ 1
-kjobviewer_OBJECTS = dummy.$(OBJEXT)
-kjobviewer_DEPENDENCIES =  kjobviewer.la
+kjobviewer_OBJECTS = kjobviewer_main.$(OBJEXT)
+kjobviewer_DEPENDENCIES =  libkjobviewer_main.la
 CXXFLAGS = @CXXFLAGS@
 #>- CXXCOMPILE = $(CXX) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
 #>+ 1
@@ -343,15 +352,15 @@
 
 #>- DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
 #>+ 4
-KDE_DIST=kjobviewerui.rc hi32-app-kjobviewer.png kjobviewer.desktop hi16-app-kjobviewer.png 
+KDE_DIST=hi32-app-kjobviewer.png hi16-app-kjobviewer.png kjobviewerui.rc kjobviewer.desktop 
 
 DISTFILES= $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST) $(KDE_DIST)
 
 
 TAR = tar
 GZIP_ENV = --best
-SOURCES = $(kjobviewer_la_SOURCES) $(kjobviewer_SOURCES)
-OBJECTS = $(kjobviewer_la_OBJECTS) $(kjobviewer_OBJECTS)
+SOURCES = $(libkjobviewer_main_la_SOURCES) $(kjobviewer_la_SOURCES) $(kjobviewer_SOURCES)
+OBJECTS = $(libkjobviewer_main_la_OBJECTS) $(kjobviewer_la_OBJECTS) $(kjobviewer_OBJECTS)
 
 #>- all: all-redirect
 #>+ 1
@@ -438,6 +447,9 @@
 
 maintainer-clean-libtool:
 
+libkjobviewer_main.la: $(libkjobviewer_main_la_OBJECTS) $(libkjobviewer_main_la_DEPENDENCIES)
+	$(CXXLINK) -rpath $(libdir) $(libkjobviewer_main_la_LDFLAGS) $(libkjobviewer_main_la_OBJECTS) $(libkjobviewer_main_la_LIBADD) $(LIBS)
+
 kjobviewer.la: $(kjobviewer_la_OBJECTS) $(kjobviewer_la_DEPENDENCIES)
 	$(CXXLINK) -rpath $(libdir) $(kjobviewer_la_LDFLAGS) $(kjobviewer_la_OBJECTS) $(kjobviewer_la_LIBADD) $(LIBS)
 
@@ -652,9 +664,6 @@
 	mostlyclean distclean maintainer-clean
 
 
-dummy.cpp:
-	echo > dummy.cpp
-
 messages: rc.cpp
 	$(XGETTEXT) *.cpp -o $(podir)/kjobviewer.pot
 
@@ -667,8 +676,12 @@
 	$(MOC) $(srcdir)/kjobviewer.h -o kjobviewer.moc
 
 #>+ 3
+kjobviewer.moc: $(srcdir)/kjobviewer.h
+	$(MOC) $(srcdir)/kjobviewer.h -o kjobviewer.moc
+
+#>+ 3
 clean-metasources:
-	-rm -f  kjobviewer.moc
+	-rm -f  kjobviewer.moc kjobviewer.moc
 
 #>+ 2
 docs-am:
@@ -691,28 +704,40 @@
 
 
 #>+ 12
-kjobviewer_la_meta_unload.cpp:  kjobviewer.moc
-	@echo 'creating kjobviewer_la_meta_unload.cpp'
-	@-rm -f kjobviewer_la_meta_unload.cpp
+libkjobviewer_main_la_meta_unload.cpp:  kjobviewer.moc
+	@echo 'creating libkjobviewer_main_la_meta_unload.cpp'
+	@-rm -f libkjobviewer_main_la_meta_unload.cpp
 	@if test ${kde_qtver} = 2; then \
-		echo 'static const char * _metalist_kjobviewer_la[] = {' > kjobviewer_la_meta_unload.cpp ;\
-		cat  kjobviewer.moc | grep 'char.*className' | sed -e 's/.*[^A-Za-z0-9_:]\([A-Za-z0-9_:]*\)::className.*$$/\"\1\",/' | sort | uniq >> kjobviewer_la_meta_unload.cpp ;\
-		echo '0};' >> kjobviewer_la_meta_unload.cpp ;\
-		echo '#include <kunload.h>' >> kjobviewer_la_meta_unload.cpp ;\
-		echo '_UNLOAD(kjobviewer_la)' >> kjobviewer_la_meta_unload.cpp ;\
-	else echo > kjobviewer_la_meta_unload.cpp; fi
+		echo 'static const char * _metalist_libkjobviewer_main_la[] = {' > libkjobviewer_main_la_meta_unload.cpp ;\
+		cat  kjobviewer.moc | grep 'char.*className' | sed -e 's/.*[^A-Za-z0-9_:]\([A-Za-z0-9_:]*\)::className.*$$/\"\1\",/' | sort | uniq >> libkjobviewer_main_la_meta_unload.cpp ;\
+		echo '0};' >> libkjobviewer_main_la_meta_unload.cpp ;\
+		echo '#include <kunload.h>' >> libkjobviewer_main_la_meta_unload.cpp ;\
+		echo '_UNLOAD(libkjobviewer_main_la)' >> libkjobviewer_main_la_meta_unload.cpp ;\
+	else echo > libkjobviewer_main_la_meta_unload.cpp; fi
 
 
 #>+ 3
 clean-moc-classes:
-	-rm -f  kjobviewer_la_meta_unload.cpp
+	-rm -f  libkjobviewer_main_la_meta_unload.cpp
+
+#>+ 11
+libkjobviewer_main_la.all_cpp.cpp: $(srcdir)/Makefile.in $(srcdir)/kjobviewer.cpp $(srcdir)/main.cpp libkjobviewer_main_la_meta_unload.cpp   kjobviewer.moc 
+	@echo 'creating libkjobviewer_main_la.all_cpp.cpp ...'; \
+	rm -f libkjobviewer_main_la.all_cpp.files libkjobviewer_main_la.all_cpp.final; \
+	echo "#define KDE_USE_FINAL 1" >> libkjobviewer_main_la.all_cpp.final; \
+	for file in kjobviewer.cpp main.cpp libkjobviewer_main_la_meta_unload.cpp ; do \
+	  echo "#include \"$$file\"" >> libkjobviewer_main_la.all_cpp.files; \
+	  test ! -f $(srcdir)/$$file || egrep '^#pragma +implementation' $(srcdir)/$$file >> libkjobviewer_main_la.all_cpp.final; \
+	done; \
+	cat libkjobviewer_main_la.all_cpp.final libkjobviewer_main_la.all_cpp.files  > libkjobviewer_main_la.all_cpp.cpp; \
+	rm -f libkjobviewer_main_la.all_cpp.final libkjobviewer_main_la.all_cpp.files
 
 #>+ 11
-kjobviewer_la.all_cpp.cpp: $(srcdir)/Makefile.in $(srcdir)/kjobviewer.cpp $(srcdir)/main.cpp kjobviewer_la_meta_unload.cpp   kjobviewer.moc 
+kjobviewer_la.all_cpp.cpp: $(srcdir)/Makefile.in $(srcdir)/kjobviewer_main.cpp   kjobviewer.moc 
 	@echo 'creating kjobviewer_la.all_cpp.cpp ...'; \
 	rm -f kjobviewer_la.all_cpp.files kjobviewer_la.all_cpp.final; \
 	echo "#define KDE_USE_FINAL 1" >> kjobviewer_la.all_cpp.final; \
-	for file in kjobviewer.cpp main.cpp kjobviewer_la_meta_unload.cpp ; do \
+	for file in kjobviewer_main.cpp ; do \
 	  echo "#include \"$$file\"" >> kjobviewer_la.all_cpp.files; \
 	  test ! -f $(srcdir)/$$file || egrep '^#pragma +implementation' $(srcdir)/$$file >> kjobviewer_la.all_cpp.final; \
 	done; \
@@ -720,11 +745,11 @@
 	rm -f kjobviewer_la.all_cpp.final kjobviewer_la.all_cpp.files
 
 #>+ 11
-kjobviewer.all_cpp.cpp: $(srcdir)/Makefile.in dummy.cpp  
+kjobviewer.all_cpp.cpp: $(srcdir)/Makefile.in $(srcdir)/kjobviewer_main.cpp  
 	@echo 'creating kjobviewer.all_cpp.cpp ...'; \
 	rm -f kjobviewer.all_cpp.files kjobviewer.all_cpp.final; \
 	echo "#define KDE_USE_FINAL 1" >> kjobviewer.all_cpp.final; \
-	for file in dummy.cpp ; do \
+	for file in kjobviewer_main.cpp ; do \
 	  echo "#include \"$$file\"" >> kjobviewer.all_cpp.files; \
 	  test ! -f $(srcdir)/$$file || egrep '^#pragma +implementation' $(srcdir)/$$file >> kjobviewer.all_cpp.final; \
 	done; \
@@ -733,20 +758,20 @@
 
 #>+ 3
 clean-final:
-	-rm -f kjobviewer_la.all_cpp.cpp kjobviewer.all_cpp.cpp
+	-rm -f libkjobviewer_main_la.all_cpp.cpp kjobviewer_la.all_cpp.cpp kjobviewer.all_cpp.cpp
 
 #>+ 2
 final:
-	$(MAKE) kjobviewer_la_OBJECTS="$(kjobviewer_la_final_OBJECTS)" all-am
+	$(MAKE) libkjobviewer_main_la_OBJECTS="$(libkjobviewer_main_la_final_OBJECTS)" all-am
 #>+ 2
 final-install:
-	$(MAKE) kjobviewer_la_OBJECTS="$(kjobviewer_la_final_OBJECTS)" install-am
+	$(MAKE) libkjobviewer_main_la_OBJECTS="$(libkjobviewer_main_la_final_OBJECTS)" install-am
 #>+ 2
 no-final:
-	$(MAKE) kjobviewer_la_OBJECTS="$(kjobviewer_la_nofinal_OBJECTS)" all-am
+	$(MAKE) libkjobviewer_main_la_OBJECTS="$(libkjobviewer_main_la_nofinal_OBJECTS)" all-am
 #>+ 2
 no-final-install:
-	$(MAKE) kjobviewer_la_OBJECTS="$(kjobviewer_la_nofinal_OBJECTS)" install-am
+	$(MAKE) libkjobviewer_main_la_OBJECTS="$(libkjobviewer_main_la_nofinal_OBJECTS)" install-am
 #>+ 3
 cvs-clean:
 	$(MAKE) -f $(top_srcdir)/admin/Makefile.common cvs-clean
@@ -756,4 +781,4 @@
 	-rm -f *.rpo
 
 #>+ 2
-$(srcdir)/kjobviewer.cpp: kjobviewer.moc 
+$(srcdir)/kjobviewer.cpp: kjobviewer.moc kjobviewer.moc