aboutsummaryrefslogtreecommitdiffstats
path: root/meta/packages/m4/m4/make.patch
blob: 3577b0b7db814a48b2740166fa6025fc023a2938 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#
# Patch managed by http://www.holgerschurig.de/patcher.html
#

--- m4-1.4.2/doc/Makefile.in~make
+++ m4-1.4.2/doc/Makefile.in
@@ -57,9 +57,9 @@
 	date > $(srcdir)/stamp-vti
 
 install: all
-	$(srcdir)/../mkinstalldirs $(infodir)
+	$(srcdir)/../mkinstalldirs $(DESTDIR)$(infodir)
 	cd $(srcdir) && for file in m4.info*; do \
-	  $(INSTALL_DATA) $$file $(infodir)/$$file; \
+	  $(INSTALL_DATA) $$file $(DESTDIR)$(infodir)/$$file; \
 	done
 
 uninstall:
--- m4-1.4.2/src/Makefile.in~make
+++ m4-1.4.2/src/Makefile.in
@@ -35,7 +35,7 @@
 prefix = @prefix@
 exec_prefix = @exec_prefix@
 transform = @program_transform_name@
-bindir = $(exec_prefix)/bin
+bindir = @bindir@
 
 COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
 LINK = $(CC) $(LDFLAGS) -o $@
@@ -84,8 +84,8 @@
 	$(LINK) ansi2knr.o $(LIBS)
 
 install: all
-	$(srcdir)/../mkinstalldirs $(bindir)
-	$(INSTALL_PROGRAM) m4 $(bindir)/`echo m4 | sed '$(transform)'`
+	$(srcdir)/../mkinstalldirs $(DESTDIR)$(bindir)
+	$(INSTALL_PROGRAM) m4 $(DESTDIR)$(bindir)/`echo m4 | sed '$(transform)'`
 
 uninstall:
 	rm -f $(bindir)/`echo m4 | sed '$(transform)'`
ass="o">= "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3\ file://EXCEPTION;md5=570adcb0c1218ab57f2249c67d0ce417" DEPENDS = "libtool bzip2 zlib" PR = "r2" SRC_URI = "https://fedorahosted.org/releases/e/l/elfutils/elfutils-${PV}.tar.bz2" SRC_URI[md5sum] = "a0bed1130135f17ad27533b0034dba8d" SRC_URI[sha256sum] = "8aebfa4a745db21cf5429c9541fe482729b62efc7e53e9110151b4169fe887da" # pick the patch from debian # http://ftp.de.debian.org/debian/pool/main/e/elfutils/elfutils_0.148-1.debian.tar.gz SRC_URI += "\ file://redhat-portability.diff \ file://redhat-robustify.diff \ file://hppa_backend.diff \ file://arm_backend.diff \ file://mips_backend.diff \ file://m68k_backend.diff \ file://do-autoreconf.diff \ file://testsuite-ignore-elflint.diff \ file://elf_additions.diff \ file://elfutils-fsize.patch \ file://remove-unused.patch \ file://mempcpy.patch \ " # Only apply when building uclibc based target recipe SRC_URI_append_libc-uclibc = " ${@['', 'file://uclibc-support.patch']['${PN}' == '${BPN}']}" # The buildsystem wants to generate 2 .h files from source using a binary it just built, # which can not pass the cross compiling, so let's work around it by adding 2 .h files # along with the do_configure_prepend() SRC_URI += "\ file://i386_dis.h \ file://x86_64_dis.h \ " inherit autotools gettext EXTRA_OECONF = "--program-prefix=eu-" EXTRA_OECONF_append_libc-uclibc = " ${@['', '--enable-uclibc']['${PN}' == '${BPN}']}" do_configure_prepend() { sed -i 's:./i386_gendis:echo\ \#:g' ${S}/libcpu/Makefile.am cp ${WORKDIR}/*dis.h ${S}/libcpu } # we can not build complete elfutils when using uclibc # but some recipes e.g. gcc 4.5 depends on libelf so we # build only libelf for uclibc case EXTRA_OEMAKE_libc-uclibc = "-C libelf" EXTRA_OEMAKE_virtclass-native = "" EXTRA_OEMAKE_virtclass-nativesdk = "" BBCLASSEXTEND = "native nativesdk" # Package utilities separately PACKAGES =+ "${PN}-binutils" FILES_${PN}-binutils = "\ ${bindir}/eu-addr2line \ ${bindir}/eu-ld \ ${bindir}/eu-nm \ ${bindir}/eu-readelf \ ${bindir}/eu-size \ ${bindir}/eu-strip" # Fix library issues FILES_${PN} =+ "${libdir}/*-${PV}.so" # The elfutils package contains symlinks that trip up insane INSANE_SKIP_${PN} = "dev-so"