[Add] BideaseConnect 1.0.79
[CocoaPods.git] / Specs / d / b / 3 / OpenSSL-iOS / 1.0.204 / OpenSSL-iOS.podspec.json
blob6bf66b5e0530bd9210771ef174dfca75ec2a17b4
2   "name": "OpenSSL-iOS",
3   "version": "1.0.204",
4   "summary": "OpenSSL is an SSL/TLS and Crypto toolkit.",
5   "description": "                        The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS) protocols as well as a full-strength general purpose cryptography library.\n",
6   "homepage": "https://www.openssl.org",
7   "documentation_url": "https://www.openssl.org/docs/",
8   "authors": {
9     "The OpenSSL Project": "openssl-dev@openssl.org"
10   },
11   "source": {
12     "git": "https://github.com/Frugghi/openssl.git",
13     "tag": "1.0.204"
14   },
15   "license": {
16     "type": "OpenSSL (OpenSSL/SSLeay)",
17     "file": "LICENSE"
18   },
19   "module_name": "OpenSSL",
20   "module_map": "module.modulemap",
21   "default_subspecs": "Framework",
22   "platforms": {
23     "ios": "7.0"
24   },
25   "requires_arc": false,
26   "header_dir": "openssl",
27   "public_header_files": "openssl/*.h",
28   "preserve_paths": [
29     "libcrypto.a",
30     "libssl.a"
31   ],
32   "prepare_command": "    ARCHS=\"i386 x86_64 armv7 armv7s arm64\"\n\n    BASEPATH=\"${PWD}\"\n    BUILDDIR=\"${TMPDIR}OpenSSL\"\n    SRCDIR=\"${BUILDDIR}/src\"\n\n    SDK_VERSION=`xcrun --sdk iphoneos --show-sdk-version`\n    CLANG=`xcrun --find clang`\n    DEVELOPER=`xcode-select --print-path`\n\n    rm -rf \"${BUILDDIR}\"\n    mkdir -p \"${SRCDIR}\"\n    cp -R \"${BASEPATH}/.\" \"${SRCDIR}\"\n    cd \"${SRCDIR}\"\n\n    for ARCH in ${ARCHS}\n    do\n      if [ \"${ARCH}\" == \"i386\" -o \"${ARCH}\" == \"x86_64\" ];\n      then\n        PLATFORM=\"iPhoneSimulator\"\n      else\n        sed -ie \"s!static volatile sig_atomic_t intr_signal;!static volatile intr_signal;!\" \"${SRCDIR}/crypto/ui/ui_openssl.c\"\n        PLATFORM=\"iPhoneOS\"\n      fi\n\n      CONF=\"no-asm\"\n\n      if [ \"${ARCH}\" == \"arm64\" -o \"${ARCH}\" == \"x86_64\" ];\n      then\n        HOST=\"BSD-generic64\"\n        CONF=\"${CONF} enable-ec_nistp_64_gcc_128\"\n      else\n        HOST=\"BSD-generic32\"\n      fi\n\n      OPENSSLDIR=\"${BUILDDIR}/${PLATFORM}${SDK_VERSION}-${ARCH}\"\n\n      LIPO_LIBSSL=\"${LIPO_LIBSSL} ${OPENSSLDIR}/lib/libssl.a\"\n      LIPO_LIBCRYPTO=\"${LIPO_LIBCRYPTO} ${OPENSSLDIR}/lib/libcrypto.a\"\n\n      rm -rf \"${OPENSSLDIR}\"\n      mkdir -p \"${OPENSSLDIR}\"\n\n      LOG=\"${OPENSSLDIR}/build.log\"\n\n      export DEVROOT=\"${DEVELOPER}/Platforms/${PLATFORM}.platform/Developer\"\n      export SDKROOT=\"${DEVROOT}/SDKs/${PLATFORM}${SDK_VERSION}.sdk\"\n      export CC=\"${CLANG}\"\n\n      ./Configure ${HOST} ${CONF} --openssldir=\"${OPENSSLDIR}\" > \"${LOG}\" 2>&1\n\n      sed -ie \"s!^CFLAG=!CFLAG=-isysroot ${SDKROOT} -arch ${ARCH} -mios-version-min=7.0 !\" \"Makefile\"\n\n      make >> \"${LOG}\" 2>&1\n      make all install_sw >> \"${LOG}\" 2>&1\n      make clean >> \"${LOG}\" 2>&1\n    done\n\n    rm -f \"${BASEPATH}/libssl.a\"\n    rm -f \"${BASEPATH}/libcrypto.a\"\n    lipo -create ${LIPO_LIBSSL}    -output \"${BASEPATH}/libssl.a\"\n    lipo -create ${LIPO_LIBCRYPTO} -output \"${BASEPATH}/libcrypto.a\"\n\n    cp -RL \"${SRCDIR}/include/.\" \"${BASEPATH}/\"\n\n    cd \"${BASEPATH}\"\n    rm -rf \"${BUILDDIR}\"\n\n    MODULE=\"module.modulemap\"\n    BEFORE_HEADERS=\"rc2.h rc4.h\"\n    AFTER_HEADERS=\"dtls1.h\"\n    EXCLUDE_HEADERS=\"${BEFORE_HEADERS} ${AFTER_HEADERS}\"\n\n    function print_submodule {\n        echo -e \"    explicit module $(basename $1 | cut -d\".\" -f1) {\n        header \\\"$1\\\"\n    }\n\"\n    }\n\n    echo \"module OpenSSL {\" > $MODULE\n\n    for HEADER in openssl/*.h; do\n        if [[ $BEFORE_HEADERS =~ $(basename $HEADER) ]]; then\n          print_submodule $HEADER >> $MODULE\n        fi\n    done\n\n    for HEADER in openssl/*.h; do\n        if [[ ! $EXCLUDE_HEADERS =~ $(basename $HEADER) ]]; then\n          print_submodule $HEADER >> $MODULE\n        fi\n    done\n\n    for HEADER in openssl/*.h; do\n        if [[ $AFTER_HEADERS =~ $(basename $HEADER) ]]; then\n          print_submodule $HEADER >> $MODULE\n        fi\n    done\n\n    echo -e \"    link \\\"ssl\\\"\n    link \\\"crypto\\\"\n}\" >> $MODULE\n",
33   "subspecs": [
34     {
35       "name": "Static",
36       "source_files": "openssl/*.h",
37       "vendored_libraries": [
38         "libcrypto.a",
39         "libssl.a"
40       ]
41     },
42     {
43       "name": "Framework",
44       "source_files": "openssl/*.h",
45       "xcconfig": {
46         "SWIFT_INCLUDE_PATHS": "$(PODS_ROOT)/OpenSSL-iOS",
47         "LIBRARY_SEARCH_PATHS": "$(PODS_ROOT)/OpenSSL-iOS"
48       }
49     }
50   ]