--- /dev/null
+# 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
+```
+
+# 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
+```
+
+# 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
+```
+
+# 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
+```
+
+# 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
+```
UNAME_S!=uname -s
+UNAME_M!=uname -m
NAME!=cat main.c | grep "const char\* sofname" | awk '{print $$5}' | \
sed "s/\"//g" | sed "s/;//"
tar zcfv release/src/${NAME}-${VERSION}.tar.gz ${NAME}-${VERSION}
rm -rf ${NAME}-${VERSION}
+release-openbsd:
+ mkdir -p release/bin
+ ${CC} ${CFLAGS} -o release/bin/${NAME}-${VERSION}-openbsd-${UNAME_M} ${FILES}\
+ ${LDFLAGS}\
+ -static -lSDL2 -lSDL2_image -lcurl -lc -lm -liconv -lsndio -lsamplerate -lX11\
+ -lxcb -lXext -lXcursor -lXrender -lXfixes -lXi -lXrandr -lXss -lusbhid -lpthread\
+ -ljxl -ljxl_cms -llcms2 -lhwy -lc++ -lc++abi -lbrotlidec\
+ -lbrotlicommon -lbrotlienc -lyuv -ltiff -lz -ljpeg -llzma -lzstd -lavif\
+ -ldav1d -laom -lsharpyuv -lwebpdemux -lwebp -lnghttp3 -lngtcp2_crypto_quictls\
+ -lngtcp2 -lssl -lcrypto -lnghttp2 -lXau -lXdmcp
+ strip release/bin/${NAME}-${VERSION}-openbsd-${UNAME_M}
+
install:
mkdir -p ${DESTDIR}${PREFIX}/bin
cp -f ${NAME} ${DESTDIR}${PREFIX}/bin