[Delete] DSPSDK 1.0.0.3
[CocoaPods.git] / Specs / a / b / 4 / OpenSSL-OSX / 1.0.209 / OpenSSL-OSX.podspec.json
blob7ab281cd241ae03f8be18d60a8b175d9f679a8b2
2   "name": "OpenSSL-OSX",
3   "platforms": {
4     "osx": "10.7"
5   },
6   "version": "1.0.209",
7   "summary": "OpenSSL is an SSL/TLS and Crypto toolkit. Deprecated in OS X, this CocoaPod will add the latest OpenSSL to your OS X project.",
8   "authors": "OpenSSL Project <openssl-dev@openssl.org>",
9   "homepage": "https://github.com/GerTeunis/OpenSSL-OSX-Pod",
10   "license": {
11     "type": "OpenSSL (OpenSSL/SSLeay)",
12     "file": "LICENSE"
13   },
14   "source": {
15     "http": "https://www.openssl.org/source/openssl-1.0.2h.tar.gz",
16     "sha1": "577585f5f5d299c44dd3c993d3c0ac7a219e4949"
17   },
18   "source_files": "opensslIncludes/openssl/*.h",
19   "header_dir": "openssl",
20   "prepare_command": "VERSION=\"1.0.2h\"\n SDKVERSION=`xcrun --sdk macosx --show-sdk-version 2> /dev/null`\n MIN_SDK_VERSION=\"10.7\"\n\n BASEPATH=\"${PWD}\"\n CURRENTPATH=\"${TMPDIR}/openssl\"\n ARCHS=\"i386 x86_64\"\n DEVELOPER=`xcode-select -print-path`\n PLATFORM=\"MacOSX\"\n\n mkdir -p \"${CURRENTPATH}\"\n mkdir -p \"${CURRENTPATH}/bin\"\n\n curl -L \"https://www.openssl.org/source/openssl-${VERSION}.tar.gz\" -o file.tgz\n cp \"file.tgz\" \"${CURRENTPATH}/file.tgz\"\n cd \"${CURRENTPATH}\"\n tar -xzf file.tgz\n cd \"openssl-${VERSION}\"\n\n for ARCH in ${ARCHS}\n do\n \n   if [ \"${ARCH}\" == \"i386\" ];\n   then\n       CONFIGURE_FOR=\"darwin-i386-cc\"\n   elif [ \"${ARCH}\" == \"x86_64\" ];\n   then\nCONFIGURE_FOR=\"darwin64-x86_64-cc\"\n   fi\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} -mmacosx-version-min=${MIN_SDK_VERSION}\"\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\n done\n\n\n echo \"Build library...\"\n rm -rf \"${BASEPATH}/lib/\"\n mkdir -p \"${BASEPATH}/lib/\"\n lipo -create ${LIPO_LIBSSL}    -output \"${BASEPATH}/lib/libssl.a\"\n lipo -create ${LIPO_LIBCRYPTO} -output \"${BASEPATH}/lib/libcrypto.a\"\n\n echo \"Copying headers...\"\n rm -rf \"${BASEPATH}/opensslIncludes/\"\n mkdir -p \"${BASEPATH}/opensslIncludes/\"\n cp -RL \"${CURRENTPATH}/openssl-${VERSION}/include/openssl\" \"${BASEPATH}/opensslIncludes/\"\n\n cd \"${BASEPATH}\"\n echo \"Building done.\"\n\n echo \"Cleaning up...\"\n rm -rf \"${CURRENTPATH}\"\n echo \"Done.\"",
21   "public_header_files": "opensslIncludes/openssl/*.h",
22   "vendored_libraries": [
23     "lib/libcrypto.a",
24     "lib/libssl.a"
25   ],
26   "libraries": [
27     "crypto",
28     "ssl"
29   ],
30   "requires_arc": false