Sha256: f9af643cc26f5fd0d34b036d02f080afea818f313a02edf2030fed11b9f86430

Contents?: true

Size: 1.98 KB

Versions: 60

Compression:

Stored size: 1.98 KB

Contents

### Get the sources
```bash
# 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
```

### Prerequisites

In order to run autotools you need a few tools installed on your system.
```bash
yum install automake libtool # RedHat Linux
emerge -a automake libtool # Gentoo Linux
pkgin install automake libtool # SmartOS
```


### Create configure script
```bash
cd libsass
autoreconf --force --install
cd ..
```

### Create custom makefiles
```bash
cd libsass
./configure \
  --disable-tests \
  --disable-shared \
  --prefix=/usr
cd ..
```

### Build the library
```bash
make -C libsass -j5
```

### Install the library
The library will be installed to the location given as `prefix` to `configure`. This is standard behavior for autotools and not `libsass` specific.
```bash
make -C libsass -j5 install
```

### Configure options
The `configure` script is created by autotools. To get an overview of available options you can call `./configure --help`. When you execute this script, it will create specific makefiles, which you then use via the regular make command.

There are some `libsass` specific options:

```
Optional Features:
  --enable-tests              enable testing the build
  --enable-coverage           enable coverage report for test suite
  --enable-shared             build shared libraries [default=yes]
  --enable-static             build static libraries [default=yes]

Optional Packages:
  --with-sassc-dir=<dir>      specify directory of sassc sources for
                              testing (default: sassc)
  --with-sass-spec-dir=<dir>  specify directory of sass-spec for testing
                              (default: sass-spec)
```

### Build sassc and run spec test-suite

```bash
cd libsass
autoreconf --force --install
./configure \
  --enable-tests \
  --enable-shared \
  --prefix=/usr
make -j5 test_build
cd ..
```

Version data entries

60 entries across 58 versions & 17 rubygems

Version Path
optimacms-0.1.61 spec/dummy/node_modules/node-sass/src/libsass/docs/build-with-autotools.md
optimacms-0.1.61 spec/dummy/node_modules/@rails/webpacker/node_modules/node-sass/src/libsass/docs/build-with-autotools.md
disco_app-0.18.0 test/dummy/node_modules/node-sass/src/libsass/docs/build-with-autotools.md
disco_app-0.18.2 test/dummy/node_modules/node-sass/src/libsass/docs/build-with-autotools.md
tang-0.2.1 spec/tang_app/node_modules/node-sass/src/libsass/docs/build-with-autotools.md
groonga-client-model-6.0.0 test/apps/rails6.1.3/node_modules/node-sass/src/libsass/docs/build-with-autotools.md
groonga-client-model-6.0.0 test/apps/rails6.0.3.5/node_modules/node-sass/src/libsass/docs/build-with-autotools.md
ruby2js-4.0.4 lib/tasks/testrails/node_modules/node-sass/src/libsass/docs/build-with-autotools.md
ruby2js-4.0.3 lib/tasks/testrails/node_modules/node-sass/src/libsass/docs/build-with-autotools.md
tang-0.2.0 spec/tang_app/node_modules/node-sass/src/libsass/docs/build-with-autotools.md
tang-0.1.0 spec/tang_app/node_modules/node-sass/src/libsass/docs/build-with-autotools.md
tang-0.0.9 spec/tang_app/node_modules/node-sass/src/libsass/docs/build-with-autotools.md
enju_library-0.3.8 spec/dummy/node_modules/node-sass/src/libsass/docs/build-with-autotools.md
files.com-1.0.55 docs/vendor/bundle/ruby/2.5.0/gems/sassc-2.0.0/ext/libsass/docs/build-with-autotools.md
ilog-0.4.1 node_modules/node-sass/src/libsass/docs/build-with-autotools.md
ilog-0.4.0 node_modules/node-sass/src/libsass/docs/build-with-autotools.md
ilog-0.3.3 node_modules/node-sass/src/libsass/docs/build-with-autotools.md
zuora_connect_ui-0.10.0 vendor/ruby/2.6.0/gems/sassc-2.0.1/ext/libsass/docs/build-with-autotools.md
zuora_connect_ui-0.9.2 vendor/ruby/2.6.0/gems/sassc-2.0.1/ext/libsass/docs/build-with-autotools.md
zuora_connect_ui-0.9.1 vendor/ruby/2.6.0/gems/sassc-2.0.1/ext/libsass/docs/build-with-autotools.md