OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

52 lines
1.7 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../crypto++/libs-only.patch
  5. # Copyright (C) 2010 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. Description:
  17. This patch is changing the crypto++ makefile to build both, a static
  18. and a shared version of the library, but not the supplied test
  19. application.
  20. TODO:
  21. There is quite some room for improvements inside of the makefile, so
  22. it would be good to have an more "inteligent" way to select what kind
  23. of library should be build (i.e. static and shared, static-only,
  24. shared-only).
  25. Besides that the 'install' target is very poorly implemented and should
  26. be improved to consider the variants mentioned above!
  27. --- ./GNUmakefile.orig 2010-08-09 14:22:42.000000000 +0200
  28. +++ ./GNUmakefile 2010-08-25 12:02:14.476057984 +0200
  29. @@ -131,7 +131,11 @@
  30. TESTIMPORTOBJS = $(TESTOBJS:.o=.import.o)
  31. DLLTESTOBJS = dlltest.dllonly.o
  32. -all: cryptest.exe
  33. +all: static shared
  34. +
  35. +static: libcryptopp.a
  36. +
  37. +shared: libcryptopp.so
  38. test: cryptest.exe
  39. ./cryptest.exe v
  40. @@ -144,7 +148,6 @@
  41. $(CP) *.h $(PREFIX)/include/cryptopp
  42. $(CP) *.a $(PREFIX)/lib
  43. $(CP) *.so $(PREFIX)/lib
  44. - $(CP) *.exe $(PREFIX)/bin
  45. libcryptopp.a: $(LIBOBJS)
  46. $(AR) $(ARFLAGS) $@ $(LIBOBJS)