1 | # $Id$ |
---|
2 | |
---|
3 | TARGET = i586-pc-freebsd5.2 |
---|
4 | |
---|
5 | noinst_DATA = |
---|
6 | CLEANFILES = |
---|
7 | |
---|
8 | FREEBSD_VERS = 5.2.1 |
---|
9 | FREEBSD_RPMREL = 0.20060209.1 |
---|
10 | |
---|
11 | $(TARGET)-libs.spec: libs.spec.in |
---|
12 | sed -e "/[@]INSTALL_POST[@]/r ../common/installpost.add" \ |
---|
13 | -e "/[@]INSTALL_POST[@]/d" \ |
---|
14 | -e "/[@]FIND_REQPROV[@]/r ../common/find-reqprov.add" \ |
---|
15 | -e "/[@]FIND_REQPROV[@]/d" \ |
---|
16 | -e "s/[@]tool_target[@]/$(TARGET)/g" \ |
---|
17 | -e "s/[@]FREEBSD_VERS[@]/$(FREEBSD_VERS)/g" \ |
---|
18 | -e "s/[@]FREEBSD_RPMREL[@]/$(FREEBSD_RPMREL)/g" \ |
---|
19 | $(srcdir)/libs.spec.in > $@ |
---|
20 | CLEANFILES += $(TARGET)-libs.spec |
---|
21 | noinst_DATA += $(TARGET)-libs.spec |
---|
22 | |
---|
23 | |
---|
24 | BINUTILS_VERS = 2.16.1 |
---|
25 | BINUTILS_RPMREL = 0.20060215.0 |
---|
26 | |
---|
27 | BINUTILS_SUBPACKAGES = $(top_builddir)/common/common.add |
---|
28 | BINUTILS_SUBPACKAGES += ../binutils/binutils.add |
---|
29 | BINUTILS_SUBPACKAGES += ../binutils/rpm-install.add |
---|
30 | BINUTILS_SUBPACKAGES += $(top_builddir)/common/clean.add |
---|
31 | BINUTILS_SUBPACKAGES += ../binutils/target-binutils.add |
---|
32 | BINUTILS_SUBPACKAGES += ../binutils/base-binutils.add |
---|
33 | |
---|
34 | $(TARGET)-binutils.spec.in: $(BINUTILS_SUBPACKAGES) binutils-sources.add |
---|
35 | cat $(BINUTILS_SUBPACKAGES) | sed \ |
---|
36 | -e "/[@]SOURCES[@]/r ./binutils-sources.add" \ |
---|
37 | -e "/[@]SOURCES[@]/d" \ |
---|
38 | -e '/^%define _prefix.*$$/d' \ |
---|
39 | -e '/^%define rpmgroup.*$$/d' \ |
---|
40 | -e '/^%define binutils_target.*$$/d' \ |
---|
41 | -e "s,[@]rpmprefix[@],,g" \ |
---|
42 | -e "s,rtems[@]osversion[@],rtems,g" \ |
---|
43 | -e "s,%{rpmgroup},Development/Tools,g" \ |
---|
44 | > $(TARGET)-binutils.spec.in |
---|
45 | CLEANFILES += $(TARGET)-binutils.spec.in |
---|
46 | |
---|
47 | |
---|
48 | $(TARGET)-binutils.spec: $(TARGET)-binutils.spec.in |
---|
49 | sed \ |
---|
50 | -e "s/[@]tool_target[@]/$(TARGET)/g" \ |
---|
51 | -e "s/[@]BINUTILS_VERS[@]/$(BINUTILS_VERS)/g" \ |
---|
52 | -e "s/[@]BINUTILS_RPMREL[@]/$(BINUTILS_RPMREL)/g" \ |
---|
53 | -e "s,[@]PATCH0[@],," \ |
---|
54 | $(srcdir)/$(TARGET)-binutils.spec.in > $@ |
---|
55 | CLEANFILES += $(TARGET)-binutils.spec |
---|
56 | noinst_DATA += $(TARGET)-binutils.spec |
---|
57 | |
---|
58 | |
---|
59 | GCC_VERS = 4.0.2 |
---|
60 | GCC_RPMREL = 0.20060213.0 |
---|
61 | |
---|
62 | GCC_SUBPACKAGES = $(top_builddir)/common/common.add |
---|
63 | GCC_SUBPACKAGES += ../gcc/gccnewlib.add |
---|
64 | GCC_SUBPACKAGES += ../gcc/install.add |
---|
65 | GCC_SUBPACKAGES += ../gcc/rpm-install.add |
---|
66 | GCC_SUBPACKAGES += $(top_builddir)/common/clean.add |
---|
67 | GCC_SUBPACKAGES += ../gcc/target-gcc.add |
---|
68 | GCC_SUBPACKAGES += ../gcc/base-gcc.add |
---|
69 | GCC_SUBPACKAGES += ../gcc/target-c++.add |
---|
70 | |
---|
71 | $(TARGET)-gcc.spec.in: $(GCC_SUBPACKAGES) gcc-sources.add |
---|
72 | cat $(GCC_SUBPACKAGES) | sed \ |
---|
73 | -e "/[@]SOURCES[@]/r ./gcc-sources.add" \ |
---|
74 | -e "/[@]SOURCES[@]/d" \ |
---|
75 | -e '/^%define _prefix.*$$/d' \ |
---|
76 | -e '/^%define rpmgroup.*$$/d' \ |
---|
77 | -e '/^%define gcc_target.*$$/d' \ |
---|
78 | -e "s,[@]rpmprefix[@],,g" \ |
---|
79 | -e "s,rtems[@]osversion[@],rtems,g" \ |
---|
80 | -e "s,%{rpmgroup},Development/Tools,g" \ |
---|
81 | -e "s,[@]tool_target[@]-libc,@tool_target@-sys-root,g" \ |
---|
82 | -e "s,= %{newlib_version}-%{release},," \ |
---|
83 | -e "/--with-newlib/d" \ |
---|
84 | -e "/^%package -n @tool_target@-gcc/d" \ |
---|
85 | -e 's,^%define build_newlib.*$$,%define build_newlib 0,' \ |
---|
86 | > $(TARGET)-gcc.spec.in |
---|
87 | CLEANFILES += $(TARGET)-gcc.spec.in |
---|
88 | |
---|
89 | $(TARGET)-gcc.spec: $(TARGET)-gcc.spec.in |
---|
90 | sed \ |
---|
91 | -e "s/[@]tool_target[@]/$(TARGET)/g" \ |
---|
92 | -e "s/[@]GCC_VERS[@]/$(GCC_VERS)/g" \ |
---|
93 | -e "s/[@]GCC_RPMREL[@]/$(GCC_RPMREL)/g" \ |
---|
94 | -e "/@PATCH0@/d" \ |
---|
95 | -e "/@PATCH1@/d" \ |
---|
96 | -e "/@PATCH2@/d" \ |
---|
97 | -e "/@PATCH3@/d" \ |
---|
98 | -e "/@PATCH4@/d" \ |
---|
99 | -e "/@PATCH5@/d" \ |
---|
100 | $(srcdir)/$(TARGET)-gcc.spec.in > $@ |
---|
101 | CLEANFILES += $(TARGET)-gcc.spec |
---|
102 | noinst_DATA += $(TARGET)-gcc.spec |
---|