source: rtems/contrib/crossrpms/freebsd6.0/Makefile.am @ 149930b1

4.104.114.84.95
Last change on this file since 149930b1 was 149930b1, checked in by Ralf Corsepius <ralf.corsepius@…>, on 02/17/06 at 15:49:16

Let *.spec.in depend on Makefile.am

  • Property mode set to 100644
File size: 3.2 KB
Line 
1# $Id$
2
3TARGET = i586-pc-freebsd6.0
4
5noinst_DATA =
6CLEANFILES =
7
8FREEBSD_VERS = 6.0
9FREEBSD_RPMREL = 0.20060213.0
10
11LIBS_SUBPACKAGES = $(top_builddir)/common/common.add
12LIBS_SUBPACKAGES += libs.add
13LIBS_SUBPACKAGES += ../gcc/rpm-install.add
14LIBS_SUBPACKAGES += $(top_builddir)/common/clean.add
15LIBS_SUBPACKAGES += target-libs.add
16
17$(TARGET)-libs.spec.in: $(LIBS_SUBPACKAGES) Makefile.am
18        cat $(LIBS_SUBPACKAGES) | sed \
19          -e "s,[@]_prefix[@],$(prefix),g" \
20          -e "s,[@]rpmprefix[@],$(rpmprefix),g" \
21        > $(TARGET)-libs.spec.in
22CLEANFILES += $(TARGET)-libs.spec.in
23                             
24$(TARGET)-libs.spec: $(TARGET)-libs.spec.in
25        sed \
26          -e "s/@tool_target@/$(TARGET)/g" \
27          -e "s/[@]FREEBSD_VERS[@]/$(FREEBSD_VERS)/g" \
28          -e "s/[@]FREEBSD_RPMREL[@]/$(FREEBSD_RPMREL)/g" \
29          $(srcdir)/$(TARGET)-libs.spec.in > $@
30CLEANFILES += $(TARGET)-libs.spec
31noinst_DATA += $(TARGET)-libs.spec
32
33
34BINUTILS_VERS = 2.16.1
35BINUTILS_RPMREL = 0.20060214.0
36
37BINUTILS_SUBPACKAGES = $(top_builddir)/common/common.add
38BINUTILS_SUBPACKAGES += ../binutils/binutils.add
39BINUTILS_SUBPACKAGES += ../binutils/rpm-install.add
40BINUTILS_SUBPACKAGES += $(top_builddir)/common/clean.add
41BINUTILS_SUBPACKAGES += ../binutils/target-binutils.add
42BINUTILS_SUBPACKAGES += ../binutils/base-binutils.add
43
44$(TARGET)-binutils.spec.in: $(BINUTILS_SUBPACKAGES) Makefile.am binutils-sources.add
45        cat $(BINUTILS_SUBPACKAGES) | sed \
46          -e "/[@]SOURCES[@]/r ./binutils-sources.add" \
47          -e "/[@]SOURCES[@]/d" \
48          -e "s,[@]_prefix[@],$(prefix),g" \
49          -e "s,[@]rpmprefix[@],$(rpmprefix),g" \
50          -e "s,rtems[@]osversion[@],rtems,g" \
51          > $(TARGET)-binutils.spec.in
52CLEANFILES += $(TARGET)-binutils.spec.in
53
54
55$(TARGET)-binutils.spec: $(TARGET)-binutils.spec.in
56        sed \
57          -e "s/[@]tool_target[@]/$(TARGET)/g" \
58          -e "s/[@]BINUTILS_VERS[@]/$(BINUTILS_VERS)/g" \
59          -e "s/[@]BINUTILS_RPMREL[@]/$(BINUTILS_RPMREL)/g" \
60          -e "/[@]PATCH/d" \
61          $(srcdir)/$(TARGET)-binutils.spec.in > $@
62CLEANFILES += $(TARGET)-binutils.spec
63noinst_DATA += $(TARGET)-binutils.spec
64
65
66GCC_VERS = 4.0.2
67GCC_RPMREL = 0.20060213.0
68
69GCC_SUBPACKAGES = $(top_builddir)/common/common.add
70GCC_SUBPACKAGES += ../gcc/gccnewlib.add
71GCC_SUBPACKAGES += ../gcc/install.add
72GCC_SUBPACKAGES += ../gcc/rpm-install.add
73GCC_SUBPACKAGES += $(top_builddir)/common/clean.add
74GCC_SUBPACKAGES += ../gcc/target-gcc.add
75GCC_SUBPACKAGES += ../gcc/base-gcc.add
76GCC_SUBPACKAGES += ../gcc/target-c++.add
77
78$(TARGET)-gcc.spec.in: $(GCC_SUBPACKAGES) Makefile.am gcc-sources.add
79        cat $(GCC_SUBPACKAGES) | sed \
80          -e "/[@]SOURCES[@]/r ./gcc-sources.add" \
81          -e "/[@]SOURCES[@]/d" \
82          -e "s,[@]_prefix[@],$(prefix),g" \
83          -e "s,[@]rpmprefix[@],$(rpmprefix),g" \
84          -e "s,rtems[@]osversion[@],rtems,g" \
85          -e "s,[@]tool_target[@]-libc,@tool_target@-sys-root,g" \
86          -e "s,[=<][ ]*%{newlib_version}-%{release},," \
87          -e "/--with-newlib/d" \
88          -e "/^%package -n @tool_target@-gcc/d" \
89          -e 's,^%define build_newlib.*$$,%define build_newlib 0,' \
90          > $(TARGET)-gcc.spec.in
91CLEANFILES += $(TARGET)-gcc.spec.in
92
93$(TARGET)-gcc.spec: $(TARGET)-gcc.spec.in
94        sed \
95          -e "s/[@]tool_target[@]/$(TARGET)/g" \
96          -e "s/[@]GCC_VERS[@]/$(GCC_VERS)/g" \
97          -e "s/[@]GCC_RPMREL[@]/$(GCC_RPMREL)/g" \
98          -e "/[@]PATCH/d" \
99          $(srcdir)/$(TARGET)-gcc.spec.in > $@
100CLEANFILES += $(TARGET)-gcc.spec
101noinst_DATA += $(TARGET)-gcc.spec
Note: See TracBrowser for help on using the repository browser.