opt/gtk3/Pkgfile

41 lines
1.4 KiB
Plaintext
Raw Normal View History

2012-08-03 18:38:06 +02:00
# Description: A multi-platform toolkit for creating graphical user interfaces
# URL: https://www.gtk.org/
# Maintainer: CRUX System Team, core-ports at crux dot nu
# Depends on: at-spi2-core gdk-pixbuf libepoxy pango xorg-libxrandr
# Optional: colord cups libxkbcommon wayland-protocols
2012-08-03 18:38:06 +02:00
name=gtk3
2022-12-25 11:51:43 +01:00
version=3.24.36
2022-05-22 11:17:09 +02:00
release=1
source=(https://download.gnome.org/sources/gtk+/${version:0:4}/gtk+-$version.tar.xz
2022-11-26 13:17:12 +01:00
gtk-register-3.sh gtk.immodules
meson.build)
2012-08-03 18:38:06 +02:00
build () {
2021-12-14 09:47:04 +01:00
prt-get isinst colord || PKGMK_GTK3+=' -Dcolord=no'
prt-get isinst libxkbcommon wayland-protocols && PKGMK_GTK3+=' -D wayland_backend=true' || PKGMK_GTK3+=' -Dwayland_backend=false'
2022-11-26 13:17:12 +01:00
# it seems like upstream forgot to include this meson.build file
# the build fails without it
prt-get isinst libxkbcommon wayland-protocols && mv $SRC/meson.build gtk+-$version/gdk/wayland/cursor/meson.build
2012-08-03 18:38:06 +02:00
2021-12-14 09:47:04 +01:00
CFLAGS+=" -DG_ENABLE_DEBUG -DG_DISABLE_CAST_CHECKS"
meson setup gtk+-$version build $PKGMK_GTK3 \
2021-12-14 09:47:04 +01:00
--prefix=/usr \
-D buildtype=plain \
--wrap-mode=nodownload \
-D b_lto=true \
-D b_pie=true \
-D man=false \
-D gtk_doc=false \
-D examples=false \
-D tests=false \
-D installed_tests=false \
-D demos=false
meson compile -C build
DESTDIR=$PKG meson install -C build
2017-11-08 23:28:38 +01:00
2021-12-14 09:47:04 +01:00
rm -r $PKG/usr/share/{locale,gtk-3.0,themes/Emacs}
install -m 0644 -D $SRC/gtk.immodules $PKG/usr/lib/gtk-3.0/3.0.0/immodules.cache
install -m 0755 $SRC/gtk-register-3.sh $PKG/usr/bin/gtk-register-3
2012-08-03 18:38:06 +02:00
}