Browse Source

crypto++: Added crypto++ 5.6.1 - A free C++ class library of cryptographic schemes (see note)

Note:

The package includes a patch which changes the makefile:

This patch is changing the crypto++ makefile to build both, a static
and a shared version of the library, but not the supplied test
application.

TODO:

There is quite some room for improvements inside of the makefile, so
it would be good to have an more "inteligent" way to select what kind
of library should be build (i.e. static and shared, static-only,
shared-only).
Besides that the 'install' target is very poorly implemented and should
be improved to consider the variants mentioned above!
user/karasz/next/updates
Christian Wiese 15 years ago
parent
commit
8d530c2ee0
  1. 21
      develop/crypto++/crypto++.cache
  2. 19
      develop/crypto++/crypto++.conf
  3. 32
      develop/crypto++/crypto++.desc
  4. 52
      develop/crypto++/libs-only.patch

21
develop/crypto++/crypto++.cache

@ -0,0 +1,21 @@
[TIMESTAMP] 1282731075 Wed Aug 25 12:11:15 2010
[BUILDTIME] 65 (5)
[SIZE] 22.50 MB, 143 files
[DEP] bash
[DEP] binutils
[DEP] coreutils
[DEP] diffutils
[DEP] fhs
[DEP] findutils
[DEP] gawk
[DEP] gcc
[DEP] glibc
[DEP] grep
[DEP] linux-header
[DEP] make
[DEP] patch
[DEP] sed
[DEP] unzip
[DEP] util-linux-ng

19
develop/crypto++/crypto++.conf

@ -0,0 +1,19 @@
# --- SDE-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# Filename: package/.../crypto++/crypto++.conf
# Copyright (C) 2010 The OpenSDE Project
#
# More information can be found in the files COPYING and README.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2 of the License. A copy of the
# GNU General Public License can be found in the file COPYING.
# --- SDE-COPYRIGHT-NOTE-END ---
# the ugly source zip file has no dedicated source directory
chownsrcdir=0
srcdir=.
var_append makeinstopt ' ' 'PREFIX=$root/$prefix'

32
develop/crypto++/crypto++.desc

@ -0,0 +1,32 @@
[COPY] --- SDE-COPYRIGHT-NOTE-BEGIN ---
[COPY] This copyright note is auto-generated by ./scripts/Create-CopyPatch.
[COPY]
[COPY] Filename: package/.../crypto++/crypto++.desc
[COPY] Copyright (C) 2010 The OpenSDE Project
[COPY]
[COPY] More information can be found in the files COPYING and README.
[COPY]
[COPY] This program is free software; you can redistribute it and/or modify
[COPY] it under the terms of the GNU General Public License as published by
[COPY] the Free Software Foundation; version 2 of the License. A copy of the
[COPY] GNU General Public License can be found in the file COPYING.
[COPY] --- SDE-COPYRIGHT-NOTE-END ---
[I] A free C++ class library of cryptographic schemes
[T] Crypto++ Library is a free C++ class library of cryptographic schemes.
[U] http://www.cryptopp.com
[A] Wei Dai
[M] The OpenSDE Community <list@opensde.org>
[C] extra/library
[F] FPIC-QUIRK
[L] PublicDomain
[S] Stable
[V] 5.6.1
[P] X -----5---9 110.000
[D] 2158693062 cryptopp561.zip http://www.cryptopp.com/

52
develop/crypto++/libs-only.patch

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