~vorlon/ubuntu/natty/curl/multiarch

« back to all changes in this revision

Viewing changes to MacOSX-Framework

  • Committer: Bazaar Package Importer
  • Author(s): Bhavani Shankar
  • Date: 2010-06-20 13:56:28 UTC
  • mfrom: (3.4.7 sid)
  • Revision ID: james.westby@ubuntu.com-20100620135628-e30tp9jldq6hq985
Tags: 7.21.0-1ubuntu1
* Merge from debian unstable.  Remaining changes: LP: #596334
  - Keep build deps in main:
    - Drop build dependencies: stunnel, libssh2-1-dev
    - Add build-dependency on openssh-server
    - Drop libssh2-1-dev from libcurl4-openssl-dev's Depends.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/bin/bash
2
 
# This script performs all of the steps needed to build a 
 
2
# This script performs all of the steps needed to build a
3
3
# universal binary libcurl.framework for Mac OS X 10.4 or greater.
4
4
 
5
5
VERSION=`/usr/bin/sed -ne 's/^#define LIBCURL_VERSION "\(.*\)"/\1/p' include/curl/curlver.h`
22
22
    CFLAGS="-Os -isysroot $SDK32 $ARCHES32 $MINVER32" \
23
23
    LDFLAGS="-Wl,-syslibroot,$SDK32 $ARCHES32 $MINVER32 -Wl,-headerpad_max_install_names" \
24
24
    CC=$CC
25
 
  
 
25
 
26
26
  echo "----Building 32 bit libcurl..."
27
27
  make
28
 
  
 
28
 
29
29
  echo "----Creating 32 bit framework..."
30
30
  rm -r libcurl.framework
31
31
  mkdir -p libcurl.framework/Versions/A/Resources
40
40
  ln -fs Versions/A/Headers Headers
41
41
  cd Versions
42
42
  ln -fs A Current
43
 
  
 
43
 
44
44
  if test -d $SDK64; then
45
45
    popd
46
46
    make clean
49
49
      CFLAGS="-Os -isysroot $SDK64 $ARCHES64 $MINVER64" \
50
50
      LDFLAGS="-Wl,-syslibroot,$SDK64 $ARCHES64 $MINVER64 -Wl,-headerpad_max_install_names" \
51
51
      CC=$CC
52
 
  
 
52
 
53
53
    echo "----Building 64 bit libcurl..."
54
54
    make
55
 
  
 
55
 
56
56
    echo "----Appending 64 bit framework to 32 bit framework..."
57
57
    cp lib/.libs/libcurl.dylib libcurl.framework/Versions/A/libcurl64
58
58
    install_name_tool -id @executable_path/../Frameworks/libcurl.framework/Versions/A/libcurl libcurl.framework/Versions/A/libcurl64
69
69
#endif
70
70
EOF
71
71
  fi
72
 
  
 
72
 
73
73
  lipo -info libcurl.framework/Versions/A/libcurl
74
74
  echo "libcurl.framework is built and can now be included in other projects."
75
75
  echo "Copy libcurl.framework to your bundle's Contents/Frameworks folder, ~/Library/Frameworks or /Library/Frameworks."