source: rtems/contrib/crossrpms/freebsd5.2/Makefile.am @ d72421b

4.104.114.84.95
Last change on this file since d72421b was d72421b, checked in by Ralf Corsepius <ralf.corsepius@…>, on 02/15/06 at 15:21:54

Backup.

  • Property mode set to 100644
File size: 3.2 KB
Line 
1# $Id$
2
3TARGET = i586-pc-freebsd5.2
4
5noinst_DATA =
6CLEANFILES =
7
8FREEBSD_VERS = 5.2.1
9FREEBSD_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 > $@
20CLEANFILES += $(TARGET)-libs.spec
21noinst_DATA += $(TARGET)-libs.spec
22
23
24BINUTILS_VERS = 2.16.1
25BINUTILS_RPMREL = 0.20060215.0
26
27BINUTILS_SUBPACKAGES = $(top_builddir)/common/common.add
28BINUTILS_SUBPACKAGES += ../binutils/binutils.add
29BINUTILS_SUBPACKAGES += ../binutils/rpm-install.add
30BINUTILS_SUBPACKAGES += $(top_builddir)/common/clean.add
31BINUTILS_SUBPACKAGES += ../binutils/target-binutils.add
32BINUTILS_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
45CLEANFILES += $(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 > $@
55CLEANFILES += $(TARGET)-binutils.spec
56noinst_DATA += $(TARGET)-binutils.spec
57
58
59GCC_VERS = 4.0.2
60GCC_RPMREL = 0.20060213.0
61
62GCC_SUBPACKAGES = $(top_builddir)/common/common.add
63GCC_SUBPACKAGES += ../gcc/gccnewlib.add
64GCC_SUBPACKAGES += ../gcc/install.add
65GCC_SUBPACKAGES += ../gcc/rpm-install.add
66GCC_SUBPACKAGES += $(top_builddir)/common/clean.add
67GCC_SUBPACKAGES += ../gcc/target-gcc.add
68GCC_SUBPACKAGES += ../gcc/base-gcc.add
69GCC_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
87CLEANFILES += $(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 > $@
101CLEANFILES += $(TARGET)-gcc.spec
102noinst_DATA += $(TARGET)-gcc.spec
Note: See TracBrowser for help on using the repository browser.