Skip to content

Instantly share code, notes, and snippets.

@p0rsche
Forked from edouard-lopez/libsass-install.bash
Last active February 1, 2016 12:17
Show Gist options
  • Select an option

  • Save p0rsche/3f133dc89a1cd33a2fd6 to your computer and use it in GitHub Desktop.

Select an option

Save p0rsche/3f133dc89a1cd33a2fd6 to your computer and use it in GitHub Desktop.

Revisions

  1. p0rsche revised this gist Feb 1, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion libsass-install.bash
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,7 @@
    # Based on https://github.com/sass/libsass/wiki/Building-with-autotools

    # Install dependencies
    apt-get install automake libtool
    sudo apt-get install automake libtool

    # Fetch sources
    git clone https://github.com/sass/libsass.git
  2. @edouard-lopez edouard-lopez revised this gist Dec 29, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion libsass-install.bash
    Original file line number Diff line number Diff line change
    @@ -17,7 +17,7 @@ cd ..
    cd libsass
    autoreconf --force --install
    ./configure \
    --enable-tests \
    --disable-tests \
    --enable-shared \
    --prefix=/usr
    cd ..
  3. @edouard-lopez edouard-lopez revised this gist Dec 29, 2014. 1 changed file with 25 additions and 9 deletions.
    34 changes: 25 additions & 9 deletions libsass-install.bash
    Original file line number Diff line number Diff line change
    @@ -1,13 +1,29 @@
    # using git is preferred
    # Based on https://github.com/sass/libsass/wiki/Building-with-autotools

    # Install dependencies
    apt-get install automake libtool

    # Fetch sources
    git clone https://github.com/sass/libsass.git
    # only needed for sassc and/or testsuite
    git clone https://github.com/sass/sassc.git libsass/sassc
    git clone https://github.com/sass/sass-spec.git libsass/sass-spec

    # DON'T CHANGE DIRECTORY
    BUILD="shared" make -C libsass -j
    # Create configure script
    cd libsass
    autoreconf --force --install
    cd ..

    # Create custom makefiles for **shared library**, for more info read:
    # 'Difference between static and shared libraries?' before installing libsass http://stackoverflow.com/q/2649334/802365
    cd libsass
    autoreconf --force --install
    ./configure \
    --enable-tests \
    --enable-shared \
    --prefix=/usr
    cd ..

    # Build the library
    make -C libsass -j5

    # Let build know library location
    export SASS_LIBSASS_PATH=$HOME/apps/libsass/
    # Invokes the sassc makefile
    make -C libsass -j5 sassc
    # Install the library
    sudo make -C libsass -j5 install
  4. @edouard-lopez edouard-lopez created this gist Dec 29, 2014.
    13 changes: 13 additions & 0 deletions libsass-install.bash
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,13 @@
    # using git is preferred
    git clone https://github.com/sass/libsass.git
    # only needed for sassc and/or testsuite
    git clone https://github.com/sass/sassc.git libsass/sassc
    git clone https://github.com/sass/sass-spec.git libsass/sass-spec

    # DON'T CHANGE DIRECTORY
    BUILD="shared" make -C libsass -j

    # Let build know library location
    export SASS_LIBSASS_PATH=$HOME/apps/libsass/
    # Invokes the sassc makefile
    make -C libsass -j5 sassc