ports: Add gexiv2 port
This commit is contained in:
Executable
+26
@@ -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
|
||||||
|
}
|
||||||
Executable
+31
@@ -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
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user