]> git.draconx.ca Git - gentoo-draconx.git/blob - sys-libs/flashmap/files/flashmap-split-install.patch
Add mosys ebuild.
[gentoo-draconx.git] / sys-libs / flashmap / files / flashmap-split-install.patch
1 From 689540df62a8e237f0b0733d09ad11e98a991e5b Mon Sep 17 00:00:00 2001
2 From: Nick Bowler <nbowler@draconx.ca>
3 Date: Fri, 21 Apr 2017 16:53:02 -0400
4 Subject: [PATCH 5/5] Split install.
5
6 Don't want to install binaries for non-native arches.
7 ---
8  Makefile | 8 +++++---
9  1 file changed, 5 insertions(+), 3 deletions(-)
10
11 diff --git a/Makefile b/Makefile
12 index 672d0b4..e501773 100644
13 --- a/Makefile
14 +++ b/Makefile
15 @@ -167,13 +167,15 @@ else
16  pkgconfig_install:
17  endif
18  
19 -install: all pkgconfig_install
20 +install: all install_lib
21         $(INSTALL_DIR) $(DESTDIR)$(sbindir)
22 -       $(INSTALL_DIR) $(DESTDIR)$(libdir)
23 -       $(INSTALL_DIR) $(DESTDIR)$(includedir)
24         $(INSTALL_PROGRAM) fmap_decode $(DESTDIR)$(sbindir)
25         $(INSTALL_PROGRAM) fmap_encode $(DESTDIR)$(sbindir)
26         $(INSTALL_PROGRAM) fmap_csum $(DESTDIR)$(sbindir)
27 +
28 +install_lib: $(SHARED_OBJ_FILE) pkgconfig_install
29 +       $(INSTALL_DIR) $(DESTDIR)$(libdir)
30 +       $(INSTALL_DIR) $(DESTDIR)$(includedir)
31         $(INSTALL_DATA) lib/fmap.h $(DESTDIR)$(includedir)
32         $(INSTALL_DATA) lib/valstr.h $(DESTDIR)$(includedir)
33         $(INSTALL_DATA) $(SHARED_OBJ_FILE) $(DESTDIR)$(libdir)
34 -- 
35 2.10.2
36