出来るだけポーツツリーを使った方が良い

このコミットが含まれているのは:
守矢諏訪子 2024-05-03 15:23:22 +09:00
コミット 737d19b9e3
1個のファイルの変更60行の追加59行の削除

ファイルの表示

@ -1,78 +1,79 @@
# libtiff
```
odl http://www.libtiff.org/downloads/tiff-4.6.0t.tar.xz
bsdtar -xf tiff-4.6.0t.tar.xz
cd tiff-4.6.0t
./configure --enable-static
make
doas make install
$ odl http://www.libtiff.org/downloads/tiff-4.6.0t.tar.xz
$ bsdtar -xf tiff-4.6.0t.tar.xz
$ cd tiff-4.6.0t
$ ./configure --enable-static
$ make
$ doas make install
```
# libyuv
```
mkdir libyuv
cd libyuv
odl -o libyuv.tar.gz https://chromium.googlesource.com/libyuv/libyuv/+archive/331c361581896292fb46c8c6905e41262b7ca95f.tar.gz
bsdtar -xf libyuv.tar.gz
cmake -S . -B build -G Ninja -DBUILD_SHARED_LIBS=OFF
cmake --build build
doas cmake --install build
$ mkdir libyuv
$ cd libyuv
$ odl -o libyuv.tar.gz https://chromium.googlesource.com/libyuv/libyuv/+archive/331c361581896292fb46c8c6905e41262b7ca95f.tar.gz
$ bsdtar -xf libyuv.tar.gz
$ cmake -S . -B build -G Ninja -DBUILD_SHARED_LIBS=OFF
$ cmake --build build
$ doas cmake --install build
```
# libavif
```
git clone https://github.com/AOMediaCodec/libavif.git
cd libavif
cmake -B build -DCMAKE_INSTALL_LIBDIR=lib -DBUILD_SHARED_LIBS=OFF -DAVIF_BUILD_TESTS=ON -DAVIF_CODEC_AOM=SYSTEM -DAVIF_CODEC_AOM_DECODE=OFF -DAVIF_CODEC_DAV1D=SYSTEM -DAVIF_ENABLE_GTEST=OFF -DCMAKE_DISABLE_FIND_PACKAGE_libyuv=OFF
cmake --build build
doas cmake --install build
```
# libhwy
```
doas chown -R $(whoami):$(whoami) /usr/ports
cd /usr/ports/devel/highway
make clean
sed -i 's/SHARED_LIBS/STATIC_LIBS/g' Makefile
sed -i 's/STATIC_LIBS=ON/SHARED_LIBS=OFF/' Makefile
make
make fake
doas cp /usr/ports/pobj/highway-1.1.0/fake-amd64/usr/local/lib/*.a /usr/local/lib
$ doas chown -R $(whoami):$(whoami) /usr/ports
$ cd /usr/ports/graphics/libavif
$ make clean
$ sed -i 's/libyuv=ON/libyuv=OFF/" Makefile
$ sed -i 's/SHARED/STATIC/' Makefile
$ sed -i '31i\
-DBUILD_SHARED_LIBS=OFF \\
' Makefile
$ make
$ make fake
$ doas cp /usr/ports/pobj/libavif-0.11.1/fake-powerpc/usr/local/lib/libavif.a /usr/local/lib
```
# libgtest
```
git clone https://github.com/google/googletest.git
cd googletest
cmake -B build -DBUILD_SHARED_LIBS=OFF -Dgtest_build_tests=OFF
cmake --build build
doas cmake --build build --target install
$ doas chown -R $(whoami):$(whoami) /usr/ports
$ cd /usr/ports/devel/gtest
$ make clean
$ sed -i 's/SHARED_LIBS/STATIC_LIBS/g' Makefile
$ sed -i 's/STATIC_LIBS=ON/SHARED_LIBS=OFF/' Makefile
$ sed -i 's/gtest_build_tests=ON/gtest_build_tests=OFF/' Makefile
$ make
$ make fake
doas cp /usr/ports/pobj/gtest-1.14.0/fake-powerpc/usr/local/lib/*.a /usr/local/lib
```
# libhwy
```
$ doas chown -R $(whoami):$(whoami) /usr/ports
$ cd /usr/ports/devel/highway
$ make clean
$ sed -i 's/SHARED_LIBS/STATIC_LIBS/g' Makefile
$ sed -i 's/STATIC_LIBS=ON/SHARED_LIBS=OFF/' Makefile
$ make
$ make fake
$ doas cp /usr/ports/pobj/highway-1.1.0/fake-amd64/usr/local/lib/*.a /usr/local/lib
```
# libjxl
```
doas chown -R $(whoami):$(whoami) /usr/ports
cd /usr/ports/graphics/libjxl
make clean
sed -i 's/SHARED_LIBS/STATIC_LIBS/g' Makefile
sed -i 's/-DJPEGXL_FORCE_SYSTEM_GTEST:BOOL=ON/-DJPEGXL_FORCE_SYSTEM_GTEST:BOOL=OFF/' Makefile
nvim Makefile
```
```
...
CONFIGURE_ARGS += \
-DJPEGXL_STATIC=ON \
-DJPEGXL_BUNDLE_SKCMS:BOOL=OFF \
...
```
```
doas cp /usr/local/lib/libbrotlicommon-static.a /usr/local/lib/libbrotlicommon.a
doas cp /usr/local/lib/libbrotlidec-static.a /usr/local/lib/libbrotlidec.a
doas cp /usr/local/lib/libbrotlienc-static.a /usr/local/lib/libbrotlienc.a
doas make
doas chown -R $(whoami):$(whoami) /usr/ports
make fake
doas cp /usr/ports/pobj/libjxl-0.10.1/fake-amd64/usr/local/lib/*.a /usr/local/lib
$ doas chown -R $(whoami):$(whoami) /usr/ports
$ cd /usr/ports/graphics/libjxl
$ make clean
$ sed -i 's/SHARED_LIBS/STATIC_LIBS/g' Makefile
$ sed -i 's/-DJPEGXL_FORCE_SYSTEM_GTEST:BOOL=ON/-DJPEGXL_FORCE_SYSTEM_GTEST:BOOL=OFF/' Makefile
$ sed -i '46i\
-DJPEGXL_STATIC=ON \\
' Makefile
$ doas cp /usr/local/lib/libbrotlicommon-static.a /usr/local/lib/libbrotlicommon.a
$ doas cp /usr/local/lib/libbrotlidec-static.a /usr/local/lib/libbrotlidec.a
$ doas cp /usr/local/lib/libbrotlienc-static.a /usr/local/lib/libbrotlienc.a
$ doas make
$ doas chown -R $(whoami):$(whoami) /usr/ports
$ make fake
$ doas cp /usr/ports/pobj/libjxl-0.10.1/fake-amd64/usr/local/lib/*.a /usr/local/lib
```