summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/patch/patch/install.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/patch/patch/install.patch')
-rw-r--r--meta/recipes-devtools/patch/patch/install.patch43
1 files changed, 43 insertions, 0 deletions
diff --git a/meta/recipes-devtools/patch/patch/install.patch b/meta/recipes-devtools/patch/patch/install.patch
new file mode 100644
index 0000000000..0354ec8f04
--- /dev/null
+++ b/meta/recipes-devtools/patch/patch/install.patch
@@ -0,0 +1,43 @@
1Upstream-Status: Inappropriate [embedded specific]
2
3Index: patch-2.5.4/Makefile.in
4===================================================================
5--- patch-2.5.4.orig/Makefile.in 2005-03-09 07:23:54.779311824 -0500
6+++ patch-2.5.4/Makefile.in 2005-03-09 07:26:09.616813408 -0500
7@@ -43,10 +43,11 @@
8 PACKAGE_NAME = @PACKAGE_NAME@
9 PACKAGE_VERSION = @PACKAGE_VERSION@
10
11+DESTDIR =
12 prefix = @prefix@
13 exec_prefix = @exec_prefix@
14
15-bindir = $(exec_prefix)/bin
16+bindir = @bindir@
17
18 # Where to put the manual pages.
19 mandir = @mandir@
20@@ -112,18 +113,18 @@
21 $(CC) -o $@ $(CFLAGS) $(LDFLAGS) $(OBJS) $(LIBS)
22
23 install:: all installdirs
24- $(INSTALL_PROGRAM) patch$(EXEEXT) $(bindir)/$(patch_name)$(EXEEXT)
25- -$(INSTALL_DATA) $(srcdir)/patch.man $(man1dir)/$(patch_name)$(man1ext)
26+ $(INSTALL_PROGRAM) patch$(EXEEXT) $(DESTDIR)$(bindir)/$(patch_name)$(EXEEXT)
27+ -$(INSTALL_DATA) $(srcdir)/patch.man $(DESTDIR)$(man1dir)/$(patch_name)$(man1ext)
28
29 installdirs::
30- $(SHELL) $(srcdir)/mkinstalldirs $(bindir) $(man1dir)
31+ $(SHELL) $(srcdir)/mkinstalldirs $(DESTDIR)$(bindir) $(DESTDIR)$(man1dir)
32
33 install-strip::
34 $(MAKE) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' install
35
36 uninstall::
37- rm -f $(bindir)/$(patch_name)$(EXEEXT)
38- rm -f $(man1dir)/$(patch_name)$(man1ext)
39+ rm -f $(DESTDIR)$(bindir)/$(patch_name)$(EXEEXT)
40+ rm -f $(DESTDIR)$(man1dir)/$(patch_name)$(man1ext)
41
42 Makefile: Makefile.in $(CONFIG_STATUS)
43 $(SHELL) $(CONFIG_STATUS)