diff --git a/ports/exiv2/build.sh b/ports/exiv2/build.sh new file mode 100755 index 00000000..d1dc0ccb --- /dev/null +++ b/ports/exiv2/build.sh @@ -0,0 +1,26 @@ +#!/bin/bash ../install.sh + +NAME='exiv2' +VERSION='0.28.8' +DOWNLOAD_URL="https://github.com/Exiv2/exiv2/archive/refs/tags/v$VERSION.tar.gz#ea51b0609f58a9afa063b60daa1539948b62247721e154f4fff0ad3aec9f9756" +DEPENDENCIES=('zlib' 'expat') + +configure() { + cmake --fresh -B build -S . -G Ninja \ + --toolchain="$BANAN_TOOLCHAIN_DIR/Toolchain.txt" \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_BUILD_TYPE=Release \ + -DEXIV2_ENABLE_NLS=OFF \ + -DEXIV2_ENABLE_BROTLI=OFF \ + -DEXIV2_ENABLE_INIH=OFF \ + -DBUILD_WITH_STACK_PROTECTOR=OFF \ + || exit 1 +} + +build() { + cmake --build build || exit 1 +} + +install() { + DESTDIR="$DESTDIR" cmake --install build || exit 1 +} diff --git a/ports/gexiv2/build.sh b/ports/gexiv2/build.sh new file mode 100755 index 00000000..bc4eff35 --- /dev/null +++ b/ports/gexiv2/build.sh @@ -0,0 +1,31 @@ +#!/bin/bash ../install.sh + +NAME='gexiv2' +VERSION='0.14.6' # gimp requires 0.14.x +DOWNLOAD_URL="https://github.com/GNOME/gexiv2/archive/refs/tags/gexiv2-$VERSION.tar.gz#9083050df329b630f71f6f71aafc193c26e46548854ae21037d0a679ef62ae50" +TAR_CONTENT="gexiv2-gexiv2-$VERSION" +DEPENDENCIES=('exiv2' 'glib') +CONFIGURE_OPTIONS=( + '-Dprefix=/usr' + '-Dbuildtype=release' + '-Dintrospection=false' + '-Dvapi=false' + '-Dpython3=false' + '-Dtests=false' +) + +configure() { + meson setup \ + --reconfigure \ + --cross-file "$MESON_CROSS_FILE" \ + "${CONFIGURE_OPTIONS[@]}" \ + build || exit 1 +} + +build() { + meson compile -C build || exit 1 +} + +install() { + meson install --destdir="$DESTDIR" -C build || exit 1 +}