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

4.104.114.84.95
Last change on this file since fe977c7 was fe977c7, checked in by Ralf Corsepius <ralf.corsepius@…>, on 02/21/06 at 08:12:10

Use $(MKSPEC) to generate *-gcc.spec.

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