[Add] com-qqsdk-control-Tools 1.2.1
[CocoaPods.git] / Specs / 3 / 2 / e / OpenSSL-XM / 1.0.210.1 / OpenSSL-XM.podspec.json
blob437f69cc899e8131f54e1ea5c37d153f67073212
2   "name": "OpenSSL-XM",
3   "version": "1.0.210.1",
4   "summary": "OpenSSL is an SSL/TLS and Crypto toolkit. Deprecated in Mac OS and gone in iOS, this spec gives your project non-deprecated OpenSSL support.Fork from FredericJacobs's repo",
5   "authors": "OpenSSL Project <openssl-dev@openssl.org>",
6   "homepage": "https://github.com/Mamong/OpenSSL-Pod",
7   "source": {
8     "http": "https://openssl.org/source/openssl-1.0.2j.tar.gz",
9     "sha1": "bdfbdb416942f666865fa48fe13c2d0e588df54f"
10   },
11   "source_files": "opensslIncludes/openssl/*.h",
12   "header_dir": "openssl",
13   "license": {
14     "type": "OpenSSL (OpenSSL/SSLeay)",
15     "file": "LICENSE"
16   },
17   "prepare_command": "VERSION=\"1.0.2j\"\nSDKVERSION=`xcrun --sdk iphoneos --show-sdk-version 2> /dev/null`\nMIN_SDK_VERSION_FLAG=\"-miphoneos-version-min=7.0\"\n\nBASEPATH=\"${PWD}\"\nCURRENTPATH=\"/tmp/openssl\"\n#CURRENTPATH=\"${PWD}/tmp\"\n\nARCHS=\"i386 x86_64 armv7 armv7s arm64\"\nDEVELOPER=`xcode-select -print-path`\n\n\nmkdir -p \"${CURRENTPATH}\"\nmkdir -p \"${CURRENTPATH}/bin\"    \n\ncp -rf \"${BASEPATH}/\" \"${CURRENTPATH}/openssl-${VERSION}\"\n#cp \"file.tgz\" \"${CURRENTPATH}/file.tgz\"\ncd \"${CURRENTPATH}\"\n#tar -xzf file.tgz\ncd \"openssl-${VERSION}\"\n\nfor ARCH in ${ARCHS}\ndo\n  CONFIGURE_FOR=\"iphoneos-cross\"\n\n  if [ \"${ARCH}\" == \"i386\" ] || [ \"${ARCH}\" == \"x86_64\" ] ;\n  then\n    PLATFORM=\"iPhoneSimulator\"\n    if [ \"${ARCH}\" == \"x86_64\" ] ;\n    then\n      CONFIGURE_FOR=\"darwin64-x86_64-cc\"\n    fi\n  else\n    sed -ie \"s!static volatile sig_atomic_t intr_signal;!static volatile intr_signal;!\" \"crypto/ui/ui_openssl.c\"\n    PLATFORM=\"iPhoneOS\"\n  fi\n\n  export CROSS_TOP=\"${DEVELOPER}/Platforms/${PLATFORM}.platform/Developer\"\n  export CROSS_SDK=\"${PLATFORM}${SDKVERSION}.sdk\"\n\n  echo \"Building openssl-${VERSION} for ${PLATFORM} ${SDKVERSION} ${ARCH}\"\n  echo \"Please stand by...\"\n\n  export CC=\"${DEVELOPER}/usr/bin/gcc -arch ${ARCH} ${MIN_SDK_VERSION_FLAG}\"\n  mkdir -p \"${CURRENTPATH}/bin/${PLATFORM}${SDKVERSION}-${ARCH}.sdk\"\n  LOG=\"${CURRENTPATH}/bin/${PLATFORM}${SDKVERSION}-${ARCH}.sdk/build-openssl-${VERSION}.log\"\n\n  LIPO_LIBSSL=\"${LIPO_LIBSSL} ${CURRENTPATH}/bin/${PLATFORM}${SDKVERSION}-${ARCH}.sdk/lib/libssl.a\"\n  LIPO_LIBCRYPTO=\"${LIPO_LIBCRYPTO} ${CURRENTPATH}/bin/${PLATFORM}${SDKVERSION}-${ARCH}.sdk/lib/libcrypto.a\"\n\n  ./Configure ${CONFIGURE_FOR} --openssldir=\"${CURRENTPATH}/bin/${PLATFORM}${SDKVERSION}-${ARCH}.sdk\" > \"${LOG}\" 2>&1\n  sed -ie \"s!^CFLAG=!CFLAG=-isysroot ${CROSS_TOP}/SDKs/${CROSS_SDK} !\" \"Makefile\"\n\n  make >> \"${LOG}\" 2>&1\n  make all install_sw >> \"${LOG}\" 2>&1\n  make clean >> \"${LOG}\" 2>&1\ndone\n\n\necho \"Build library...\"\nrm -rf \"${BASEPATH}/lib/\"\nmkdir -p \"${BASEPATH}/lib/\"\nlipo -create ${LIPO_LIBSSL}    -output \"${BASEPATH}/lib/libssl.a\"\nlipo -create ${LIPO_LIBCRYPTO} -output \"${BASEPATH}/lib/libcrypto.a\"\n\necho \"Copying headers...\"\nrm -rf \"${BASEPATH}/opensslIncludes/\"\nmkdir -p \"${BASEPATH}/opensslIncludes/\"\ncp -RL \"${CURRENTPATH}/openssl-${VERSION}/include/openssl\" \"${BASEPATH}/opensslIncludes/\"\n\ncd \"${BASEPATH}\"\necho \"Building done.\"\n\necho \"Cleaning up...\"\nrm -rf \"${CURRENTPATH}\"\necho \"Done.\"",
18   "platforms": {
19     "ios": "8.0"
20   },
21   "ios": {
22     "public_header_files": "opensslIncludes/openssl/*.h",
23     "vendored_libraries": [
24       "lib/libcrypto.a",
25       "lib/libssl.a"
26     ]
27   },
28   "libraries": [
29     "crypto",
30     "ssl"
31   ],
32   "requires_arc": false