1
#!/bin/sh /usr/share/dpatch/dpatch-run
2
## 10-rules-armel.dpatch by Daniel Baumann <daniel@debian.org>
4
## DP: Fixes outdated smake rules (Closes: #450752).
8
diff -Naurp cdrdao.orig/scsilib/RULES/MKLINKS cdrdao/scsilib/RULES/MKLINKS
9
--- cdrdao.orig/scsilib/RULES/MKLINKS 2008-04-23 00:45:42.000000000 +0000
10
+++ cdrdao/scsilib/RULES/MKLINKS 2008-05-04 10:40:56.000000000 +0000
11
@@ -105,6 +105,8 @@ ln -s i586-linux-cc.rul m68k-linux-cc.ru
12
ln -s i586-linux-gcc.rul m68k-linux-gcc.rul
13
ln -s i586-linux-cc.rul armv4l-linux-cc.rul
14
ln -s i586-linux-gcc.rul armv4l-linux-gcc.rul
15
+ln -s i586-linux-cc.rul armv5tel-linux-cc.rul
16
+ln -s i586-linux-gcc.rul armv5tel-linux-gcc.rul
17
ln -s i586-linux-cc.rul mips-linux-cc.rul
18
ln -s i586-linux-gcc.rul mips-linux-gcc.rul
19
ln -s i586-linux-cc.rul mipsel-linux-cc.rul
20
diff -Naurp cdrdao.orig/scsilib/RULES/armv5tel-linux-cc.rul cdrdao/scsilib/RULES/armv5tel-linux-cc.rul
21
--- cdrdao.orig/scsilib/RULES/armv5tel-linux-cc.rul 1970-01-01 00:00:00.000000000 +0000
22
+++ cdrdao/scsilib/RULES/armv5tel-linux-cc.rul 2008-05-04 10:41:27.000000000 +0000
24
+#ident "@(#)i586-linux-cc.rul 1.5 02/10/15 "
25
+###########################################################################
26
+# Written 1996 by J. Schilling
27
+###########################################################################
29
+# Platform dependent MACROS for Linux
31
+###########################################################################
32
+# This program is free software; you can redistribute it and/or modify
33
+# it under the terms of the GNU General Public License as published by
34
+# the Free Software Foundation; either version 2, or (at your option)
37
+# This program is distributed in the hope that it will be useful,
38
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
39
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
40
+# GNU General Public License for more details.
42
+# You should have received a copy of the GNU General Public License
43
+# along with this program; see the file COPYING. If not, write to
44
+# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
45
+###########################################################################
46
+include $(SRCROOT)/$(RULESDIR)/rules.prg
47
+###########################################################################
49
+CPPFLAGS= $(CPPOPTS) $(CPPOPTX)
50
+CFLAGS= $(COPTS) $(CWARNOPTS) $(COPTOPT) $(GCCOPTOPT) $(COPTX)
52
+CPPOPTS= -I. -I$(ARCHDIR) -I$(OINCSDIR) $(INCDIRS:%=-I%) $(OSDEFS)
54
+CWOPTS= -Wall -Wtraditional \
55
+ -Wshadow -Wmissing-prototypes -Wstrict-prototypes
57
+KDEFINES= -DKERNEL -D_KERNEL
65
+#LIB_SOCKET= -lsocket -lnsl -ldl
71
+LIBS_PATH= -L$(OLIBSDIR)
73
+LDFLAGS= $(LDOPTS) $(LDOPTX)
74
+LDLIBS= $(LIBS) $(LIBX)
76
+#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH)
77
+LDOPTS= $(LIBS_PATH) $(LDPATH)
78
+LDOPTDYN= -shared -Wl,-soname,$(TARGET)
79
+LNDYNLIB= @$(SYMLINK) $(TARGET) $(PTARGET_BASE).so
83
+CC= @echo " ==> COMPILING \"$@\""; gcc
84
+LDCC= @echo " ==> LINKING \"$@\""; gcc
85
+DYNLD= @echo " ==> LINKING dynamic library \"$@\""; gcc
86
+RANLIB= @echo " ==> RANDOMIZING ARCHIVE \"$@\""; true
92
+MKDEP= @echo " ==> MAKING DEPENDENCIES \"$@\""; $(RMDEP); gcc -M
94
diff -Naurp cdrdao.orig/scsilib/RULES/armv5tel-linux-gcc.rul cdrdao/scsilib/RULES/armv5tel-linux-gcc.rul
95
--- cdrdao.orig/scsilib/RULES/armv5tel-linux-gcc.rul 1970-01-01 00:00:00.000000000 +0000
96
+++ cdrdao/scsilib/RULES/armv5tel-linux-gcc.rul 2008-05-04 10:41:33.000000000 +0000
98
+#ident "@(#)i586-linux-gcc.rul 1.5 02/10/15 "
99
+###########################################################################
100
+# Written 1996 by J. Schilling
101
+###########################################################################
103
+# Platform dependent MACROS for Linux
105
+###########################################################################
106
+# This program is free software; you can redistribute it and/or modify
107
+# it under the terms of the GNU General Public License as published by
108
+# the Free Software Foundation; either version 2, or (at your option)
109
+# any later version.
111
+# This program is distributed in the hope that it will be useful,
112
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
113
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
114
+# GNU General Public License for more details.
116
+# You should have received a copy of the GNU General Public License
117
+# along with this program; see the file COPYING. If not, write to
118
+# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
119
+###########################################################################
120
+include $(SRCROOT)/$(RULESDIR)/rules.prg
121
+###########################################################################
123
+CPPFLAGS= $(CPPOPTS) $(CPPOPTX)
124
+CFLAGS= $(COPTS) $(CWARNOPTS) $(COPTOPT) $(GCCOPTOPT) $(COPTX)
126
+CPPOPTS= -I. -I$(ARCHDIR) -I$(OINCSDIR) $(INCDIRS:%=-I%) $(OSDEFS)
128
+CWOPTS= -Wall -Wtraditional \
129
+ -Wshadow -Wmissing-prototypes -Wstrict-prototypes
131
+KDEFINES= -DKERNEL -D_KERNEL
139
+#LIB_SOCKET= -lsocket -lnsl -ldl
145
+LIBS_PATH= -L$(OLIBSDIR)
147
+LDFLAGS= $(LDOPTS) $(LDOPTX)
148
+LDLIBS= $(LIBS) $(LIBX)
150
+#LDOPTS= $(LIBS_PATH) $(LDPATH) $(RUNPATH)
151
+LDOPTS= $(LIBS_PATH) $(LDPATH)
152
+LDOPTDYN= -shared -Wl,-soname,$(TARGET)
153
+LNDYNLIB= @$(SYMLINK) $(TARGET) $(PTARGET_BASE).so
157
+CC= @echo " ==> COMPILING \"$@\""; gcc
158
+LDCC= @echo " ==> LINKING \"$@\""; gcc
159
+DYNLD= @echo " ==> LINKING dynamic library \"$@\""; gcc
160
+RANLIB= @echo " ==> RANDOMIZING ARCHIVE \"$@\""; true
166
+MKDEP= @echo " ==> MAKING DEPENDENCIES \"$@\""; $(RMDEP); gcc -M