summaryrefslogtreecommitdiff
path: root/recipes-support/libcryptopp/libcryptopp-5.6.3/makefile_fix_destdir.patch
diff options
context:
space:
mode:
authorMarcel Ziswiler <marcel.ziswiler@toradex.com>2016-06-08 14:33:08 +0200
committerMax Krummenacher <max.krummenacher@toradex.com>2016-06-30 13:28:27 +0200
commit3bc1ae7e2a46d33eab7d90d6879e54ccc6aa09f1 (patch)
treee7c9fa5f422914aba5d64adee0f45c6cefc3ebfb /recipes-support/libcryptopp/libcryptopp-5.6.3/makefile_fix_destdir.patch
parent41ec2ad4cea9d5d32bda8aae9efd43fe11ad158c (diff)
libcryptopp: update to latest 5.6.3
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> Acked-by: Max Krummenacher <max.krummenacher@toradex.com>
Diffstat (limited to 'recipes-support/libcryptopp/libcryptopp-5.6.3/makefile_fix_destdir.patch')
-rw-r--r--recipes-support/libcryptopp/libcryptopp-5.6.3/makefile_fix_destdir.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/recipes-support/libcryptopp/libcryptopp-5.6.3/makefile_fix_destdir.patch b/recipes-support/libcryptopp/libcryptopp-5.6.3/makefile_fix_destdir.patch
new file mode 100644
index 0000000..9d57fe3
--- /dev/null
+++ b/recipes-support/libcryptopp/libcryptopp-5.6.3/makefile_fix_destdir.patch
@@ -0,0 +1,30 @@
+diff -Nurd libcryptopp2/GNUmakefile libcryptopp/GNUmakefile
+--- libcryptopp2/GNUmakefile 2013-02-20 15:30:52.000000000 +0100
++++ libcryptopp/GNUmakefile 2013-12-01 20:58:53.774735203 +0100
+@@ -148,17 +148,17 @@
+ -$(RM) cryptest.exe libcryptopp.a libcryptopp.so $(LIBOBJS) $(TESTOBJS) cryptopp.dll libcryptopp.dll.a libcryptopp.import.a cryptest.import.exe dlltest.exe $(DLLOBJS) $(LIBIMPORTOBJS) $(TESTI MPORTOBJS) $(DLLTESTOBJS)
+
+ install:
+- $(MKDIR) -p $(PREFIX)/include/cryptopp $(PREFIX)/lib $(PREFIX)/bin
+- -$(CP) *.h $(PREFIX)/include/cryptopp
+- -$(CP) *.a $(PREFIX)/lib
+- -$(CP) *.so $(PREFIX)/lib
+- -$(CP) *.exe $(PREFIX)/bin
++ $(MKDIR) -p $(DESTDIR)$(PREFIX)/include/cryptopp $(DESTDIR)$(PREFIX)/lib $(DESTDIR)$(PREFIX)/bin
++ -$(CP) *.h $(DESTDIR)$(PREFIX)/include/cryptopp
++ -$(CP) *.a $(DESTDIR)$(PREFIX)/lib
++ -$(CP) *.so $(DESTDIR)$(PREFIX)/lib
++ -$(CP) *.exe $(DESTDIR)$(PREFIX)/bin
+
+ remove:
+- -$(RM) -rf $(PREFIX)/include/cryptopp
+- -$(RM) $(PREFIX)/lib/libcryptopp.a
+- -$(RM) $(PREFIX)/lib/libcryptopp.so
+- -$(RM) $(PREFIX)/bin/cryptest.exe
++ -$(RM) -rf $(DESTDIR)$(PREFIX)/include/cryptopp
++ -$(RM) $(DESTDIR)$(PREFIX)/lib/libcryptopp.a
++ -$(RM) $(DESTDIR)$(PREFIX)/lib/libcryptopp.so
++ -$(RM) $(DESTDIR)$(PREFIX)/bin/cryptest.exe
+
+ libcryptopp.a: $(LIBOBJS)
+ $(AR) $(ARFLAGS) $@ $(LIBOBJS)