michael@4: ## michael@4: ## Cryptlib.txt -- Addendum to OS X Package Specification Document michael@4: ## Copyright (c) 2009 Michael Schloh von Bennewitz michael@4: ## michael@4: ## Permission to use, copy, modify, and distribute this software for michael@4: ## any purpose with or without fee is hereby granted, provided that michael@4: ## the above copyright notice and this permission notice appear in all michael@4: ## copies. michael@4: ## michael@4: ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED michael@4: ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF michael@4: ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. michael@4: ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR michael@4: ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, michael@4: ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT michael@4: ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF michael@4: ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND michael@4: ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, michael@4: ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT michael@4: ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF michael@4: ## SUCH DAMAGE. michael@4: ## michael@4: michael@4: michael@4: Cryptlib Encryption Development Package michael@4: --------------------------------------- michael@4: Name: Cryptlib michael@4: Summary: Cryptlib Encryption Toolkit michael@4: URL: http://www.cs.auckland.ac.nz/~pgut001/cryptlib/ michael@4: Packager: Michael Schloh von Bennewitz michael@4: Vendor: Peter Gutmann michael@4: michael@4: Package source: Cryptlib.pmdoc michael@6: Package output: Cryptlib-.pkg michael@4: michael@4: Executing Cryptlib.pkg installs header archives and universal libraries michael@4: (IA-32/X86-64/PPC7400/PPC64) to the OS X operating system required for michael@4: developing applications using Cryptlib cryptography logic. michael@4: michael@4: To create the installation package, use the OS X PackageMaker michael@4: application or equivalent command line utility. Required sources michael@4: include the package specification (.pmdoc) and the archives michael@4: specified within the package specification. These references are michael@4: listed in the following manifest, and must be manually placed. michael@4: michael@9: The defective build configuration requires changes: michael@9: Index: crypt/osconfig.h michael@9: --- crypt/osconfig.h.orig 2009-08-04 20:54:46.000000000 +0200 michael@9: +++ crypt/osconfig.h 2009-08-04 20:53:28.000000000 +0200 michael@9: @@ -231,7 +231,6 @@ michael@9: #else michael@9: #define L_ENDIAN michael@9: #endif michael@9: - #define B_ENDIAN michael@9: #define BN_LLONG michael@9: #define BF_PTR michael@9: #define DES_RISC1 michael@9: michael@9: Building a universal binary requires changes: michael@9: Index: crypt/osconfig.h michael@9: --- crypt/osconfig.h.orig 2009-08-11 12:42:04.000000000 +0200 michael@9: +++ crypt/osconfig.h 2009-08-11 12:42:47.000000000 +0200 michael@9: @@ -553,7 +553,7 @@ michael@9: #if !defined( _CRAY ) && !defined( L_ENDIAN ) && !defined( B_ENDIAN ) michael@9: #error You need to add system-specific configuration settings to osconfig.h michael@9: #endif /* Endianness not defined */ michael@9: -#ifdef CHECK_ENDIANNESS /* One-off check in des_enc.c */ michael@9: +#if ( defined( CHECK_ENDIANNESS ) && !defined( UNIVERSAL_BINARY ) ) /* One-off check in des_enc.c */ michael@9: #undef _CONFIG_DEFINED michael@9: /* Including crypt.h at this point violates the normal include order michael@9: because we've already included config.h which normally depends on michael@9: michael@9: To build a fat library with IA32, X86_64, PPC, and PPC64 object code: michael@9: make LDFLAGS='-isysroot /Developer/SDKs/MacOSX10.5.sdk' CFLAGS='-c -isysroot /Developer/SDKs/MacOSX10.5.sdk -Os -mmacosx-version-min=10.5 -arch ppc -arch ppc64 -arch i386 -arch x86_64 -DUNIVERSAL_BINARY -D__UNIX__ -DNDEBUG -I.' michael@9: michael@4: Filesystem Root (fsrt) Manifest michael@4: ------------------------------- michael@4: drwxr-xr-x 3 root wheel 102 Aug 4 21:16 fsrt michael@4: drwxr-xr-x 3 root wheel 102 Aug 4 21:16 fsrt/usr michael@4: drwxr-xr-x 4 root wheel 136 Aug 4 21:16 fsrt/usr/local michael@4: drwxr-xr-x 3 root wheel 102 Aug 4 21:15 fsrt/usr/local/include michael@4: -rw-r--r-- 1 root wheel 91488 Aug 4 20:41 fsrt/usr/local/include/cryptlib.h michael@4: drwxr-xr-x 3 root wheel 102 Aug 4 21:15 fsrt/usr/local/lib michael@4: -rw-r--r-- 1 root wheel 8110616 Aug 4 22:45 fsrt/usr/local/lib/libcl.a