~ubuntu-branches/ubuntu/vivid/curl/vivid

« back to all changes in this revision

Viewing changes to MacOSX-Framework

  • Committer: Package Import Robot
  • Author(s): Sebastien Bacher
  • Date: 2013-05-07 12:16:37 UTC
  • mfrom: (3.4.37 sid)
  • Revision ID: package-import@ubuntu.com-20130507121637-9t3i98qgsyr9dw5d
Tags: 7.30.0-1ubuntu1
* Resynchronize on Debian. Remaining changes:
  - Drop dependencies not in main:
    + Build-Depends: Drop stunnel4 and libssh2-1-dev.
    + Drop libssh2-1-dev from binary package Depends.
  - Add new libcurl3-udeb package.
  - Add new curl-udeb package.
* Add warning to debian/patches/series.

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
# 10.5 is the *ONLY* SDK that support PPC64 :( -- 10.6 do not have ppc64 support
11
11
#If you need to have PPC64 support then change below to 1
12
12
PPC64_NEEDED=0
 
13
# Apple does not support building for PPC anymore in Xcode 4 and later.
 
14
# If you're using Xcode 3 or earlier and need PPC support, then change
 
15
# the setting below to 1
 
16
PPC_NEEDED=0
13
17
 
14
18
# For me the default is to develop for the platform I am on, and if you
15
19
#desire compatibility with older versions then change USE_OLD to 1 :)
24
28
# and setup the right paths to this version, leaving the system version
25
29
# "intact", so you can "fix" it later with the links to Versions/A/...
26
30
 
27
 
 
28
 
OLD_SDK=`ls  /Developer/SDKs|head -1`
29
 
NEW_SDK=`ls -r /Developer/SDKs|head -1`
 
31
DEVELOPER_PATH=`xcode-select --print-path`
 
32
# Around Xcode 4.3, SDKs were moved from the Developer folder into the
 
33
# MacOSX.platform folder
 
34
if test -d "$DEVELOPER_PATH/Platforms/MacOSX.platform/Developer/SDKs"; then
 
35
 SDK_PATH="$DEVELOPER_PATH/Platforms/MacOSX.platform/Developer/SDKs"
 
36
else
 
37
 SDK_PATH="$DEVELOPER_PATH/SDKs";
 
38
fi
 
39
OLD_SDK=`ls  $SDK_PATH|head -1`
 
40
NEW_SDK=`ls -r $SDK_PATH|head -1`
30
41
 
31
42
if test "0"$USE_OLD -gt 0
32
43
then
37
48
 
38
49
MACVER=`echo $SDK32|sed -e s/[a-zA-Z]//g -e s/.\$//`
39
50
 
40
 
SDK32_DIR='/Developer/SDKs/'$SDK32
 
51
SDK32_DIR=$SDK_PATH/$SDK32
41
52
MINVER32='-mmacosx-version-min='$MACVER
42
 
ARCHES32='-arch i386 -arch ppc'
43
 
 
 
53
if test $PPC_NEEDED -gt 0; then
 
54
 ARCHES32='-arch i386 -arch ppc'
 
55
else
 
56
 ARCHES32='-arch i386'
 
57
fi
44
58
 
45
59
if test $PPC64_NEEDED -gt 0
46
60
then
47
61
  SDK64=10.5
48
62
  ARCHES64='-arch x86_64 -arch ppc64'
49
 
  SDK64=`ls  /Developer/SDKs|grep 10.5|head -1`
 
63
  SDK64=`ls  $SDK_PATH|grep 10.5|head -1`
50
64
else
51
65
 ARCHES64='-arch x86_64'
52
66
 #We "know" that 10.4 and earlier do not support 64bit
53
 
 OLD_SDK64=`ls  /Developer/SDKs|egrep -v "10.[0-4]"|head -1`
54
 
 NEW_SDK64=`ls -r /Developer/SDKs|egrep -v "10.[0-4]"|head -1`
 
67
 OLD_SDK64=`ls  $SDK_PATH|egrep -v "10.[0-4]"|head -1`
 
68
 NEW_SDK64=`ls -r $SDK_PATH|egrep -v "10.[0-4]"|head -1`
55
69
 if test $USE_OLD -gt 0
56
70
  then
57
71
   SDK64=$OLD_SDK64
60
74
  fi
61
75
fi
62
76
 
63
 
SDK64_DIR='/Developer/SDKs/'$SDK64
 
77
SDK64_DIR=$SDK_PATH/$SDK64
64
78
MACVER64=`echo $SDK64|sed -e s/[a-zA-Z]//g -e s/.\$//`
65
79
 
66
80
MINVER64='-mmacosx-version-min='$MACVER64
68
82
if test ! -z $SDK32; then
69
83
  echo "----Configuring libcurl for 32 bit universal framework..."
70
84
  make clean
71
 
  ./configure --disable-dependency-tracking --disable-static --with-gssapi \
72
 
    CFLAGS="-Os -isysroot $SDK32_DIR $ARCHES32 $MINVER32" \
73
 
    LDFLAGS="-Wl,-syslibroot,$SDK32_DIR $ARCHES32 $MINVER32 -Wl,-headerpad_max_install_names" \
 
85
  ./configure --disable-dependency-tracking --disable-static --with-gssapi --with-darwinssl \
 
86
    CFLAGS="-Os -isysroot $SDK32_DIR $ARCHES32" \
 
87
    LDFLAGS="-Wl,-syslibroot,$SDK32_DIR $ARCHES32 -Wl,-headerpad_max_install_names" \
74
88
    CC=$CC
75
89
 
76
90
  echo "----Building 32 bit libcurl..."
77
 
  make
 
91
  make -j `sysctl -n hw.logicalcpu_max`
78
92
 
79
93
  echo "----Creating 32 bit framework..."
80
94
  rm -r libcurl.framework
91
105
  cd Versions
92
106
  ln -fs ${FRAMEWORK_VERSION} Current
93
107
 
94
 
  echo TEsting for SDK64
 
108
  echo Testing for SDK64
95
109
  if test -d $SDK64_DIR; then
96
110
  echo entering...
97
111
    popd
98
112
    make clean
99
113
    echo "----Configuring libcurl for 64 bit universal framework..."
100
 
    ./configure --disable-dependency-tracking --disable-static --with-gssapi \
101
 
      CFLAGS="-Os -isysroot $SDK64_DIR $ARCHES64 $MINVER64" \
102
 
      LDFLAGS="-Wl,-syslibroot,$SDK64_DIR $ARCHES64 $MINVER64 -Wl,-headerpad_max_install_names" \
 
114
    ./configure --disable-dependency-tracking --disable-static --with-gssapi --with-darwinssl \
 
115
      CFLAGS="-Os -isysroot $SDK64_DIR $ARCHES64" \
 
116
      LDFLAGS="-Wl,-syslibroot,$SDK64_DIR $ARCHES64 -Wl,-headerpad_max_install_names" \
103
117
      CC=$CC
104
118
 
105
119
    echo "----Building 64 bit libcurl..."
106
 
    make
 
120
    make -j `sysctl -n hw.logicalcpu_max`
107
121
 
108
122
    echo "----Appending 64 bit framework to 32 bit framework..."
109
123
    cp lib/.libs/libcurl.dylib libcurl.framework/${FRAMEWORK_VERSION}/libcurl64