Changes between Version 21 and Version 22 of BuildingUsingGenericBuildsystem


Ignore:
Timestamp:
04/26/12 12:59:48 (12 years ago)
Author:
Samuli Seppänen
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • BuildingUsingGenericBuildsystem

    v21 v22  
    7676== Customizing the build ==
    7777
    78 To customize the build options, edit ''build.vars'' to your liking. If you want to use your own sources (e.g. for OpenSSL or OpenVPN), put them in ''sources'' directory, so that the ''generic'' buildsystem knows how to get them and won't download the dependencies from a remote site. The cached tarballs will be used even if they're of a different version than what would be downloaded.
     78To customize the build options, edit ''build.vars'' to your liking, for example:
     79
     80{{{
     81# -*- mode: sh; -*-
     82BUILD_VERSION="001"
     83
     84OPENSSL_VERSION="${OPENSSL_VERSION:-1.0.0e}"
     85PKCS11_HELPER_VERSION="${PKCS11_HELPER_VERSION:-1.09}"
     86LZO_VERSION="${LZO_VERSION:-2.06}"
     87TAP_WINDOWS_VERSION="${TAP_WINDOWS_VERSION:-9.9}"
     88OPENVPN_VERSION="${OPENVPN_VERSION:-2.3_alpha1}"
     89OPENVPN_GUI_VERSION="${OPENVPN_GUI_VERSION:-1.0.3}"
     90
     91OPENSSL_URL="${OPENSSL_URL:-\
     92    http://www.openssl.org/source/openssl-${OPENSSL_VERSION}.tar.gz}"
     93PKCS11_HELPER_URL="${PKCS11_HELPER_URL:-\
     94    http://www.opensc-project.org/files/pkcs11-helper/pkcs11-helper-${PKCS11_HELPER_VERSION}.tar.bz2}"
     95TAP_WINDOWS_URL="${TAP_WINDOWS_URL:-\
     96    https://github.com/downloads/alonbl/tap-windows/tap-windows-${TAP_WINDOWS_VERSION}.zip}"
     97LZO_URL="${LZO_URL:-\
     98    http://www.oberhumer.com/opensource/lzo/download/lzo-${LZO_VERSION}.tar.gz}"
     99OPENVPN_URL="${OPENVPN_URL:-\
     100    http://build.openvpn.net/downloads/snapshots/openvpn-${OPENVPN_VERSION}.tar.gz}"
     101OPENVPN_GUI_URL="${OPENVPN_GUI_URL:-\
     102    https://github.com/downloads/alonbl/openvpn-gui/openvpn-gui-${OPENVPN_GUI_VERSION}.tar.gz}"
     103
     104#CHOST
     105#CTARGET
     106#CBUILD
     107#IMAGEROOT
     108#BUILDROOT
     109#SOURCESROOT
     110
     111WGET="${WGET:-wget}"
     112CURL="${CURL:-curl}"
     113MAKE="${MAKE:-make}"
     114
     115#WGET_OPTS
     116CURL_OPTS="${CURL_OPTS:---progress-bar --verbose --remote-name}"
     117MAKEOPTS="${MAKEOPTS:--j3}"
     118#DO_NO_STRIP
     119#DO_STATIC=
     120if [ -n "${DO_REALLY_STATIC}" ]; then
     121        DO_STATIC=1
     122        export LDFLAGS="-Xcompiler -static"
     123fi
     124
     125#EXTRA_OPENSSL_CONFIG
     126#EXTRA_LZO_CONFIG
     127#EXTRA_PKCS11_HELPER_CONFIG
     128#EXTRA_OPENVPN_CONFIG
     129
     130TARGET_ROOT="${TARGET_ROOT:-/}"
     131}}}
     132
     133If you want to use your own, local sources (e.g. for OpenSSL or OpenVPN), put them in ''sources'' directory, so that the ''generic'' buildsystem knows not to download them from a remote site. The cached tarballs will be used even if they're of a different version than what would be downloaded.
    79134
    80135== Building OpenVPN and it's dependencies ==