summaryrefslogtreecommitdiffstats
path: root/meta/packages/m4
diff options
context:
space:
mode:
Diffstat (limited to 'meta/packages/m4')
-rw-r--r--meta/packages/m4/m4-native_1.4.2.bb19
-rw-r--r--meta/packages/m4/m4/make.patch41
-rw-r--r--meta/packages/m4/m4_1.4.2.bb12
3 files changed, 72 insertions, 0 deletions
diff --git a/meta/packages/m4/m4-native_1.4.2.bb b/meta/packages/m4/m4-native_1.4.2.bb
new file mode 100644
index 0000000000..67fe36c7a1
--- /dev/null
+++ b/meta/packages/m4/m4-native_1.4.2.bb
@@ -0,0 +1,19 @@
1include m4_${PV}.bb
2
3inherit native
4
5FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/m4"
6
7INHIBIT_AUTOTOOLS_DEPS = "1"
8DEPENDS += "gnu-config-native"
9
10do_configure() {
11 install -m 0644 ${STAGING_DATADIR}/gnu-config/config.sub .
12 install -m 0644 ${STAGING_DATADIR}/gnu-config/config.guess .
13 oe_runconf
14}
15
16do_stage() {
17 install -m 0755 src/m4 ${STAGING_BINDIR}/
18}
19
diff --git a/meta/packages/m4/m4/make.patch b/meta/packages/m4/m4/make.patch
new file mode 100644
index 0000000000..3577b0b7db
--- /dev/null
+++ b/meta/packages/m4/m4/make.patch
@@ -0,0 +1,41 @@
1
2#
3# Patch managed by http://www.holgerschurig.de/patcher.html
4#
5
6--- m4-1.4.2/doc/Makefile.in~make
7+++ m4-1.4.2/doc/Makefile.in
8@@ -57,9 +57,9 @@
9 date > $(srcdir)/stamp-vti
10
11 install: all
12- $(srcdir)/../mkinstalldirs $(infodir)
13+ $(srcdir)/../mkinstalldirs $(DESTDIR)$(infodir)
14 cd $(srcdir) && for file in m4.info*; do \
15- $(INSTALL_DATA) $$file $(infodir)/$$file; \
16+ $(INSTALL_DATA) $$file $(DESTDIR)$(infodir)/$$file; \
17 done
18
19 uninstall:
20--- m4-1.4.2/src/Makefile.in~make
21+++ m4-1.4.2/src/Makefile.in
22@@ -35,7 +35,7 @@
23 prefix = @prefix@
24 exec_prefix = @exec_prefix@
25 transform = @program_transform_name@
26-bindir = $(exec_prefix)/bin
27+bindir = @bindir@
28
29 COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
30 LINK = $(CC) $(LDFLAGS) -o $@
31@@ -84,8 +84,8 @@
32 $(LINK) ansi2knr.o $(LIBS)
33
34 install: all
35- $(srcdir)/../mkinstalldirs $(bindir)
36- $(INSTALL_PROGRAM) m4 $(bindir)/`echo m4 | sed '$(transform)'`
37+ $(srcdir)/../mkinstalldirs $(DESTDIR)$(bindir)
38+ $(INSTALL_PROGRAM) m4 $(DESTDIR)$(bindir)/`echo m4 | sed '$(transform)'`
39
40 uninstall:
41 rm -f $(bindir)/`echo m4 | sed '$(transform)'`
diff --git a/meta/packages/m4/m4_1.4.2.bb b/meta/packages/m4/m4_1.4.2.bb
new file mode 100644
index 0000000000..9228ef4334
--- /dev/null
+++ b/meta/packages/m4/m4_1.4.2.bb
@@ -0,0 +1,12 @@
1DESCRIPTION = "GNU m4 is an implementation of the traditional Unix macro \
2processor."
3LICENSE = "GPL"
4MAINTAINER = "Chris Larson <kergoth@handhelds.org>"
5SRC_URI = "${GNU_MIRROR}/m4/m4-${PV}.tar.gz \
6 file://make.patch;patch=1"
7S = "${WORKDIR}/m4-${PV}"
8
9inherit autotools
10
11EXTRA_AUTORECONF = "--exclude=autopoint,aclocal"
12EXTRA_OEMAKE += "'infodir=${infodir}'"