Skip to content

Instantly share code, notes, and snippets.

@sohgoh
Last active June 29, 2017 05:43
Show Gist options
  • Save sohgoh/1a7d0e72ac9b44bfe8d88feb46e3fd1a to your computer and use it in GitHub Desktop.
Save sohgoh/1a7d0e72ac9b44bfe8d88feb46e3fd1a to your computer and use it in GitHub Desktop.

Revisions

  1. sohgoh revised this gist Jun 29, 2017. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions make.sh
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,6 @@
    #!/bin/bash

    # Run in libimobiledevice root directory
    export install_dir="/directory-as-you-like"
    export openssl_dir="/usr/local/Cellar/openssl/1.0.2k"
    export pkg_config_macro="/usr/local/share/aclocal/pkg.m4"
  2. sohgoh created this gist Jun 29, 2017.
    30 changes: 30 additions & 0 deletions make.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,30 @@
    #!/bin/bash

    export install_dir="/directory-as-you-like"
    export openssl_dir="/usr/local/Cellar/openssl/1.0.2k"
    export pkg_config_macro="/usr/local/share/aclocal/pkg.m4"

    export libzip_CFLAGS="-I${install_dir}/lib/libzip/include -I${install_dir}/include"
    export libzip_LIBS="-L${install_dir}/lib -lzip -lz"
    export libxml2_CFLAGS="-I${install_dir}/include/libxml2"
    export libxml2_LIBS="-L${install_dir}/lib -lxml2"
    export libplist_CFLAGS="-I${install_dir}/include"
    export libplist_LIBS="-L${install_dir}/lib -lplist"
    export libusbmuxd_CFLAGS="-I${install_dir}/include"
    export libusbmuxd_LIBS="-L${install_dir}/lib -lusbmuxd"
    #export libimobiledevice_CFLAGS="-I${install_dir}/include"
    #export libimobiledevice_LIBS="-L${install_dir}/lib -limobiledevice"
    export openssl_CFLAGS="-I${install_dir}/include -I/usr/include -I${openssl_dir}/include"
    export openssl_LIBS="-L${openssl_dir}/lib -lssl -lcrypto -lz"

    if [ ! -e "./m4/pkg.m4" ]; then
    cd m4
    ln -s ${pkg_config_macro} .
    cd ..
    fi

    make clean
    ./autogen.sh
    #./configure --prefix=${install_dir} --enable-debug-code
    ./configure --prefix=${install_dir}
    make