mirror of
https://github.com/Linux4Yourself/book.git
synced 2025-01-25 07:42:19 +08:00
76 lines
1.3 KiB
Markdown
76 lines
1.3 KiB
Markdown
|
<package-info :package="package" showsbu2></package-info>
|
|||
|
|
|||
|
<script>
|
|||
|
new Vue({
|
|||
|
el: '#main',
|
|||
|
data: { package: {} },
|
|||
|
mounted: function () {
|
|||
|
this.getPackage('freetype');
|
|||
|
},
|
|||
|
methods: {
|
|||
|
getPackage: function(name) {
|
|||
|
getPackage(name)
|
|||
|
.then(response => this.package = response);
|
|||
|
},
|
|||
|
}
|
|||
|
})
|
|||
|
</script>
|
|||
|
|
|||
|
## Настройка
|
|||
|
|
|||
|
?> В extra книге данный пакет следует переустановить после установки harfbuzz из-за круговой зависимости.
|
|||
|
|
|||
|
```bash
|
|||
|
sed -ri "s:.*(AUX_MODULES.*valid):\1:" modules.cfg &&
|
|||
|
|
|||
|
sed -r "s:.*(#.*SUBPIXEL_RENDERING) .*:\1:" \
|
|||
|
-i include/freetype/config/ftoption.h &&
|
|||
|
|
|||
|
./configure --prefix=/usr --enable-freetype-config --disable-static --without-harfbuzz
|
|||
|
```
|
|||
|
|
|||
|
## Сборка
|
|||
|
|
|||
|
|
|||
|
```bash
|
|||
|
make
|
|||
|
```
|
|||
|
|
|||
|
## Установка
|
|||
|
|
|||
|
```bash
|
|||
|
make install
|
|||
|
```
|
|||
|
|
|||
|
## Для multilib
|
|||
|
|
|||
|
### Очистка
|
|||
|
|
|||
|
```bash
|
|||
|
make distclean
|
|||
|
```
|
|||
|
|
|||
|
### Настройка
|
|||
|
|
|||
|
```bash
|
|||
|
CC="gcc -m32" CXX="g++ -m32" ./configure \
|
|||
|
--prefix=/usr \
|
|||
|
--disable-static \
|
|||
|
--libdir=/usr/lib32 \
|
|||
|
--host=i686-pc-linux-gnu --without-harfbuzz
|
|||
|
```
|
|||
|
|
|||
|
### Сборка
|
|||
|
|
|||
|
```bash
|
|||
|
make
|
|||
|
```
|
|||
|
|
|||
|
### Установка
|
|||
|
|
|||
|
```bash
|
|||
|
make DESTDIR=$PWD/DESTDIR install
|
|||
|
cp -Rv DESTDIR/usr/lib32/* /usr/lib32
|
|||
|
rm -rf DESTDIR
|
|||
|
```
|