[Add] CSL-CS710S 1.8.0
[CocoaPods.git] / Specs / 7 / 3 / a / Libssh2-iOS / 1.6.0 / Libssh2-iOS.podspec.json
blob342c32f78c529c76c9cc84b4fb907e0ff49372d8
2   "name": "Libssh2-iOS",
3   "version": "1.6.0",
4   "summary": "Libssh2 is a client-side C library implementing the SSH2 protocol.",
5   "description": "                        Libssh2 is a project providing a lean C library implementing the SSH2 protocol for embedding specific SSH capabilities into other tools. It has a stable, well-documented API for working on the client side with the different SSH subsystems: Session, Userauth, Channel, SFTP, and Public Key. The API can be set to either blocking or non-blocking.\n",
6   "homepage": "https://github.com/libssh2/libssh2",
7   "documentation_url": "http://www.libssh2.org/docs.html",
8   "authors": {
9     "Sara Golemon": "sarag@libssh2.org",
10     "Mikhail Gusarov": "dottedmag@dottedmag.net",
11     "Eli Fant": "elifantu@mail.ru",
12     "The Written Word, Inc.": "info@thewrittenword.com",
13     "Daniel Stenberg": "daniel@haxx.se",
14     "Simon Josefsson": "simon@josefsson.org"
15   },
16   "source": {
17     "git": "https://github.com/libssh2/libssh2.git",
18     "tag": "libssh2-1.6.0"
19   },
20   "license": {
21     "type": "BSD 3-Clause",
22     "file": "COPYING"
23   },
24   "module_name": "Libssh2",
25   "module_map": "module.modulemap",
26   "default_subspecs": "Framework",
27   "platforms": {
28     "ios": "7.0"
29   },
30   "requires_arc": false,
31   "public_header_files": "include/*.h",
32   "preserve_paths": [
33     "libssh2.a",
34     "libssl.a",
35     "libcrypto.a"
36   ],
37   "libraries": "z",
38   "prepare_command": "    ARCHS=\"i386 x86_64 armv7 armv7s arm64\"\n\n    BASEPATH=\"${PWD}\"\n    BUILDDIR=\"${TMPDIR}Libssh2\"\n    SRCDIR=\"${BUILDDIR}/openssl\"\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    cd \"${BUILDDIR}\"\n\n    git clone \"https://github.com/openssl/openssl.git\"\n    cd \"${SRCDIR}\"\n    OPENSSLVERSION=`git tag -l | egrep \"OpenSSL(_[0-9])+[a-zA-Z]?$\" | sort -r | head -1`\n    git checkout $OPENSSLVERSION\n    echo $OPENSSLVERSION > \"${BUILDDIR}/openssl-version.txt\"\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-openssl.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 all install_sw >> \"${LOG}\" 2>&1\n      make clean >> \"${LOG}\" 2>&1\n    done\n\n    SRCDIR=\"${BUILDDIR}/src\"\n\n    mkdir -p \"${SRCDIR}\"\n    cp -R \"${BASEPATH}/.\" \"${SRCDIR}\"\n    cd \"${SRCDIR}\"\n\n    ./buildconf\n\n    for ARCH in ${ARCHS}\n    do\n      if [ \"${ARCH}\" == \"i386\" -o \"${ARCH}\" == \"x86_64\" ];\n      then\n        PLATFORM=\"iPhoneSimulator\"\n      else\n        PLATFORM=\"iPhoneOS\"\n      fi\n\n      if [ \"${ARCH}\" == \"arm64\" ];\n      then\n        HOST=\"aarch64-apple-darwin\"\n      else\n        HOST=\"${ARCH}-apple-darwin\"\n      fi\n\n      LIBSSH2DIR=\"${BUILDDIR}/${PLATFORM}${SDK_VERSION}-${ARCH}\"\n\n      LIPO_SSH2=\"${LIPO_SSH2} ${LIBSSH2DIR}/lib/libssh2.a\"\n\n      mkdir -p \"${LIBSSH2DIR}\"\n\n      LOG=\"${LIBSSH2DIR}/build-libssh2.log\"\n\n      export DEVROOT=\"${DEVELOPER}/Platforms/${PLATFORM}.platform/Developer\"\n      export SDKROOT=\"${DEVROOT}/SDKs/${PLATFORM}${SDK_VERSION}.sdk\"\n      export CC=\"${CLANG}\"\n      export CPP=\"${CLANG} -E\"\n      export CFLAGS=\"-arch ${ARCH} -pipe -no-cpp-precomp -isysroot ${SDKROOT} -miphoneos-version-min=7.0\"\n      export CPPFLAGS=\"-arch ${ARCH} -pipe -no-cpp-precomp -isysroot ${SDKROOT} -miphoneos-version-min=7.0\"\n\n      ./configure --host=${HOST} --prefix=\"${LIBSSH2DIR}\" --with-openssl --with-libssl-prefix=\"${LIBSSH2DIR}\" --disable-shared --enable-static  >> \"${LOG}\" 2>&1\n\n      make >> \"${LOG}\" 2>&1\n      make install >> \"${LOG}\" 2>&1\n      make clean >> \"${LOG}\" 2>&1\n    done\n\n    rm -f \"${BASEPATH}/libssh2.a\"\n    rm -f \"${BASEPATH}/libssl.a\"\n    rm -f \"${BASEPATH}/libcrypto.a\"\n    lipo -create ${LIPO_SSH2}      -output \"${BASEPATH}/libssh2.a\"\n    lipo -create ${LIPO_LIBSSL}    -output \"${BASEPATH}/libssl.a\"\n    lipo -create ${LIPO_LIBCRYPTO} -output \"${BASEPATH}/libcrypto.a\"\n\n    cd \"${BASEPATH}\"\n    rm -rf \"${BUILDDIR}\"\n\n    MODULE=\"module.modulemap\"\n\n    echo \"module Libssh2 {\" > $MODULE\n    for HEADER in include/*.h; do\n        echo \"    header \\\"${HEADER}\\\"\" >> $MODULE\n    done\n    echo -e \"\n    link \\\"ssl\\\"\n    link \\\"crypto\\\"\n    link \\\"ssh2\\\"\n\n    export *\n}\" >> $MODULE\n",
39   "subspecs": [
40     {
41       "name": "Static",
42       "source_files": "include/*.h",
43       "vendored_libraries": [
44         "libssh2.a",
45         "libssl.a",
46         "libcrypto.a"
47       ]
48     },
49     {
50       "name": "Framework",
51       "source_files": "include/*.h",
52       "xcconfig": {
53         "SWIFT_INCLUDE_PATHS": "$(PODS_ROOT)/Libssh2-iOS",
54         "LIBRARY_SEARCH_PATHS": "$(PODS_ROOT)/Libssh2-iOS"
55       }
56     }
57   ]