Lines Matching +full:min +full:- +full:os +full:- +full:version +full:- +full:kind
9 # Copyright (C) 1998 - 2020, Daniel Stenberg, <daniel@haxx.se>, et al.
20 # KIND, either express or implied.
24 # universal binary libcurl.framework for Mac OS X 10.4 or greater.
31 # 10.5 is the *ONLY* SDK that support PPC64 :( -- 10.6 do not have ppc64 support
43 VERSION=`/usr/bin/sed -ne 's/^#define LIBCURL_VERSION "\(.*\)"/\1/p' include/curl/curlver.h`
44 FRAMEWORK_VERSION=Versions/Release-$VERSION
47 # version to Versions/Release-7.20.1 etc.
48 # now a simple rsync -vaP libcurl.framework /Library/Frameworks will install it
49 # and setup the right paths to this version, leaving the system version
52 DEVELOPER_PATH=`xcode-select --print-path`
55 if test -d "$DEVELOPER_PATH/Platforms/MacOSX.platform/Developer/SDKs"; then
60 OLD_SDK=`ls $SDK_PATH|head -1`
61 NEW_SDK=`ls -r $SDK_PATH|head -1`
63 if test "0"$USE_OLD -gt 0
70 MACVER=`echo $SDK32|sed -e s/[a-zA-Z]//g -e s/.\$//`
73 MINVER32='-mmacosx-version-min='$MACVER
74 if test $PPC_NEEDED -gt 0; then
75 ARCHES32='-arch i386 -arch ppc'
77 ARCHES32='-arch i386'
80 if test $PPC64_NEEDED -gt 0
83 ARCHES64='-arch x86_64 -arch ppc64'
84 SDK64=`ls $SDK_PATH|grep 10.5|head -1`
86 ARCHES64='-arch x86_64'
88 OLD_SDK64=`ls $SDK_PATH|egrep -v "10.[0-4]"|head -1`
89 NEW_SDK64=`ls -r $SDK_PATH|egrep -v "10.[0-4][^0-9]" | head -1`
90 if test $USE_OLD -gt 0
99 MACVER64=`echo $SDK64|sed -e s/[a-zA-Z]//g -e s/.\$//`
101 MINVER64='-mmacosx-version-min='$MACVER64
103 if test ! -z $SDK32; then
104 echo "----Configuring libcurl for 32 bit universal framework..."
106 ./configure --disable-dependency-tracking --disable-static --with-gssapi --with-secure-transport \
107 CFLAGS="-Os -isysroot $SDK32_DIR $ARCHES32" \
108 LDFLAGS="-Wl,-syslibroot,$SDK32_DIR $ARCHES32 -Wl,-headerpad_max_install_names" \
111 echo "----Building 32 bit libcurl..."
112 make -j `sysctl -n hw.logicalcpu_max`
114 echo "----Creating 32 bit framework..."
115 rm -r libcurl.framework
116 mkdir -p libcurl.framework/${FRAMEWORK_VERSION}/Resources
118 …install_name_tool -id @rpath/libcurl.framework/${FRAMEWORK_VERSION}/libcurl libcurl.framework/${FR…
119 …/usr/bin/sed -e "s/7\.12\.3/$VERSION/" lib/libcurl.plist >libcurl.framework/${FRAMEWORK_VERSION}/R…
120 mkdir -p libcurl.framework/${FRAMEWORK_VERSION}/Headers/curl
123 ln -fs ${FRAMEWORK_VERSION}/libcurl libcurl
124 ln -fs ${FRAMEWORK_VERSION}/Resources Resources
125 ln -fs ${FRAMEWORK_VERSION}/Headers Headers
127 ln -fs $(basename "${FRAMEWORK_VERSION}") Current
130 if test -d $SDK64_DIR; then
134 echo "----Configuring libcurl for 64 bit universal framework..."
135 … ./configure --disable-dependency-tracking --disable-static --with-gssapi --with-secure-transport \
136 CFLAGS="-Os -isysroot $SDK64_DIR $ARCHES64" \
137 LDFLAGS="-Wl,-syslibroot,$SDK64_DIR $ARCHES64 -Wl,-headerpad_max_install_names" \
140 echo "----Building 64 bit libcurl..."
141 make -j `sysctl -n hw.logicalcpu_max`
143 echo "----Appending 64 bit framework to 32 bit framework..."
145 …install_name_tool -id @rpath/libcurl.framework/${FRAMEWORK_VERSION}/libcurl libcurl.framework/${FR…
148 …ORK_VERSION}/libcurl32 libcurl.framework/${FRAMEWORK_VERSION}/libcurl64 -create -output libcurl.fr…
153 lipo -info libcurl.framework/${FRAMEWORK_VERSION}/libcurl
157 …echo "Building libcurl.framework requires Mac OS X 10.4 or later with the MacOSX10.4/5/6 SDK insta…