summaryrefslogtreecommitdiff
path: root/repo/x11
diff options
context:
space:
mode:
Diffstat (limited to 'repo/x11')
-rw-r--r--repo/x11/adwaita-icon-theme.xibuild27
-rw-r--r--repo/x11/gdk-pixbuf.xibuild17
-rw-r--r--repo/x11/gsettings-desktop-schemas.xibuild26
-rw-r--r--repo/x11/gtk2.xibuild42
-rw-r--r--repo/x11/gtk3.xibuild43
-rw-r--r--repo/x11/harfbuzz.xibuild5
-rw-r--r--repo/x11/hicolor-icon-theme.xibuild24
-rw-r--r--repo/x11/libva.xibuild10
-rw-r--r--repo/x11/maim.xibuild23
-rw-r--r--repo/x11/mesa.xibuild7
-rw-r--r--repo/x11/pango.xibuild8
-rw-r--r--repo/x11/sdl2.xibuild38
-rw-r--r--repo/x11/slop.xibuild23
-rw-r--r--repo/x11/xf86-video-intel.xibuild27
-rw-r--r--repo/x11/xorg-server.xibuild29
15 files changed, 328 insertions, 21 deletions
diff --git a/repo/x11/adwaita-icon-theme.xibuild b/repo/x11/adwaita-icon-theme.xibuild
new file mode 100644
index 0000000..c87bd79
--- /dev/null
+++ b/repo/x11/adwaita-icon-theme.xibuild
@@ -0,0 +1,27 @@
+#!/bin/sh
+
+NAME="adwaita-icon-theme"
+DESC="Adwaita icon theme"
+
+MAKEDEPS="make "
+DEPS="hicolor-icon-theme "
+
+PKG_VER=42.0
+SOURCE="https://download.gnome.org/sources/adwaita-icon-theme/${PKG_VER%.*}/adwaita-icon-theme-$PKG_VER.tar.xz"
+
+build () {
+ ./configure \
+ --prefix=/usr \
+ --bindir=/usr/bin \
+ --sysconfdir=/etc \
+ --disable-static
+ make
+}
+
+package () {
+ make DESTDIR=$PKG_DEST install
+}
+
+postinstall () {
+ gtk-update-icon-cache /usr/share/icons/Adwaita/
+}
diff --git a/repo/x11/gdk-pixbuf.xibuild b/repo/x11/gdk-pixbuf.xibuild
index 66d5a0f..fe704e9 100644
--- a/repo/x11/gdk-pixbuf.xibuild
+++ b/repo/x11/gdk-pixbuf.xibuild
@@ -3,22 +3,35 @@
NAME="gdk-pixbuf"
DESC="GTK+ image loading library"
-MAKEDEPS="meson ninja "
+MAKEDEPS="meson ninja gobject-introspection"
DEPS="sbase glib shared-mime-info intltool libpng libjpeg-turbo tiff musl"
PKG_VER=2.42.8
SOURCE="https://download.gnome.org/sources/gdk-pixbuf/${PKG_VER%.*}/gdk-pixbuf-$PKG_VER.tar.xz"
+ADDITIONAL="disable-tests.patch"
+
+prepare () {
+ touch gdk-pixbuf/loaders.cache
+}
+
build () {
mkdir build &&
cd build &&
meson --prefix=/usr \
-Dinstalled_tests=false \
- -Dpng=disabled \
.. &&
ninja
}
+check () {
+ meson test -t 10
+}
+
package () {
DESTDIR=$PKG_DEST ninja install
}
+
+postinstall () {
+ gdk-pixbuf-query-loaders --update-cache
+}
diff --git a/repo/x11/gsettings-desktop-schemas.xibuild b/repo/x11/gsettings-desktop-schemas.xibuild
new file mode 100644
index 0000000..72092d1
--- /dev/null
+++ b/repo/x11/gsettings-desktop-schemas.xibuild
@@ -0,0 +1,26 @@
+#!/bin/sh
+
+NAME="gsettings-desktop-schemas"
+DESC="A collection of GSettings schemas"
+
+MAKEDEPS="meson ninja "
+DEPS="glib base-fonts "
+
+PKG_VER=42.0
+SOURCE="https://download.gnome.org/sources/gsettings-desktop-schemas/${PKG_VER%.*}/gsettings-desktop-schemas-$PKG_VER.tar.xz"
+
+build () {
+ mkdir build &&
+ cd build &&
+ meson --prefix=/usr \
+ .. &&
+ ninja
+}
+
+package () {
+ DESTDIR=$PKG_DEST ninja install
+}
+
+postinstall() {
+ glib-compile-schemas /usr/share/glib-2.0/schemas
+}
diff --git a/repo/x11/gtk2.xibuild b/repo/x11/gtk2.xibuild
new file mode 100644
index 0000000..1798730
--- /dev/null
+++ b/repo/x11/gtk2.xibuild
@@ -0,0 +1,42 @@
+#!/bin/sh
+
+NAME="gtk2"
+DESC="The GTK+ Toolkit (v2)"
+
+MAKEDEPS="meson ninja iso-codes libpng shared-mime-info"
+DEPS="atk at-spi2-atk sbase cairo gobject-introspection fontconfig fribidi gdk-pixbuf glib harfbuzz libepoxy intltool libx11 libxcomposite libxcursor libxdamage libxext libxfixes libxi libxinerama libxkbcommon libxrandr musl pango shared-mime-info wayland "
+
+PKG_VER=2.24.33
+SOURCE="https://download.gnome.org/sources/gtk+/${PKG_VER%.*}/gtk+-$PKG_VER.tar.xz"
+
+prepare () {
+ # don't build demos
+ sed -e "s/^\(SRC_SUBDIRS =.*\)demos\(.*\)$/\1\2/" -i Makefile.am Makefile.in
+ aclocal -I m4
+ autoreconf
+ automake --add-missing
+}
+
+build () {
+ ./configure \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --with-xinput=yes \
+ --without-libjasper \
+ --with-included-loaders=png \
+ --with-gdktarget=x11 \
+ --enable-man
+
+ sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
+ make
+}
+
+package () {
+ make DESTDIR=$PKG_DEST install
+}
+
+postinstall () {
+ /usr/bin/gtk-query-immodules-2.0 > /etc/gtk-2.0/gtk.immodules
+ /usr/bin/gdk-pixbuf-query-loaders > /etc/gtk-2.0/gdk-pixbuf.loaders
+}
diff --git a/repo/x11/gtk3.xibuild b/repo/x11/gtk3.xibuild
new file mode 100644
index 0000000..14e4989
--- /dev/null
+++ b/repo/x11/gtk3.xibuild
@@ -0,0 +1,43 @@
+#!/bin/sh
+
+NAME="gtk3"
+DESC="The GTK+ Toolkit (v3)"
+
+MAKEDEPS="meson ninja iso-codes gtk2"
+DEPS="atk at-spi2-atk sbase cairo gobject-introspection fontconfig fribidi gdk-pixbuf glib harfbuzz libepoxy intltool libx11 libxcomposite libxcursor libxdamage libxext libxfixes libxi libxinerama libxkbcommon libxrandr musl pango shared-mime-info wayland adwaita-icon-theme gsettings-desktop-schemas"
+
+PKG_VER=3.24.33
+SOURCE="https://download.gnome.org/sources/gtk+/${PKG_VER%.*}/gtk+-$PKG_VER.tar.xz"
+
+
+prepare () {
+ # don't build demos
+ sed -e "s/^\(SRC_SUBDIRS =.*\)demos\(.*\)$/\1\2/" -i Makefile.am Makefile.in
+ aclocal -I m4
+ autoreconf
+ automake --add-missing
+}
+
+build () {
+ ./configure \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --with-xinput=yes \
+ --without-libjasper \
+ --with-included-loaders=png \
+ --with-gdktarget=x11 \
+ --enable-man
+
+ make
+}
+
+package () {
+ make DESTDIR=$PKG_DEST install
+}
+
+postinstall () {
+ [ -d /etc/gtk-3.0 ] || mkdir - /etc/gtk-3.0
+ /usr/bin/gtk-query-immodules-3.0 > /etc/gtk-3.0/gtk.immodules
+ /usr/bin/gdk-pixbuf-query-loaders > /etc/gtk-3.0/gdk-pixbuf.loaders
+}
diff --git a/repo/x11/harfbuzz.xibuild b/repo/x11/harfbuzz.xibuild
index aa876b3..d86a83e 100644
--- a/repo/x11/harfbuzz.xibuild
+++ b/repo/x11/harfbuzz.xibuild
@@ -3,8 +3,8 @@
NAME="harfbuzz"
DESC="Text shaping library"
-MAKEDEPS="meson ninja gtk-doc python-pygments"
-DEPS="freetype2 glib graphite musl"
+MAKEDEPS="meson ninja gtk-doc python-pygments gobject-introspection"
+DEPS="freetype2 glib graphite musl "
PKG_VER=4.2.0
SOURCE="https://github.com/harfbuzz/harfbuzz/archive/$PKG_VER.tar.gz"
@@ -13,6 +13,7 @@ build () {
mkdir build &&
cd build &&
meson --prefix=/usr \
+ -Ddefault_library=shared \
-Dglib=enabled \
-Dgobject=enabled \
-Dgraphite=enabled \
diff --git a/repo/x11/hicolor-icon-theme.xibuild b/repo/x11/hicolor-icon-theme.xibuild
new file mode 100644
index 0000000..3d51994
--- /dev/null
+++ b/repo/x11/hicolor-icon-theme.xibuild
@@ -0,0 +1,24 @@
+#!/bin/sh
+
+NAME="hicolor-icon-theme"
+DESC="Freedesktop.org Hicolor icon theme"
+
+MAKEDEPS="make "
+DEPS="musl "
+
+PKG_VER=0.17
+SOURCE="https://icon-theme.freedesktop.org/releases/hicolor-icon-theme-$PKG_VER.tar.xz"
+
+build () {
+ ./configure \
+ --prefix=/usr
+ make
+}
+
+package () {
+ make DESTDIR=$PKG_DEST install
+}
+
+postinstall () {
+ gtk-update-icon-cache /usr/share/icons/hicolor/
+}
diff --git a/repo/x11/libva.xibuild b/repo/x11/libva.xibuild
index 249fd3f..7d6c66b 100644
--- a/repo/x11/libva.xibuild
+++ b/repo/x11/libva.xibuild
@@ -9,10 +9,14 @@ PKG_VER=2.13.0
SOURCE=https://github.com/intel/libva/releases/download/$PKG_VER/libva-$PKG_VER.tar.bz2
build () {
- ./configure $XORG_CONFIG
- make
+ mkdir build &&
+ cd build
+ meson --prefix=/usr \
+ -Dwith_glx=yes \
+ -Dwith_wayland=yes
+ ninja
}
package () {
- make DESTDIR=$PKG_DEST install
+ DESTDIR=$PKG_DEST ninja install
}
diff --git a/repo/x11/maim.xibuild b/repo/x11/maim.xibuild
new file mode 100644
index 0000000..4f93af0
--- /dev/null
+++ b/repo/x11/maim.xibuild
@@ -0,0 +1,23 @@
+#!/bin/sh
+
+NAME="maim"
+DESC="Utility that takes screenshots of your desktop"
+
+MAKEDEPS="cmake "
+DEPS="mesa icu libxrender libxrandr libxcomposite libjpeg-turbo libpng libwebp slop glm"
+
+PKG_VER=5.7.4
+SOURCE="https://github.com/naelstrof/maim/archive/v$PKG_VER.tar.gz"
+
+build () {
+ cmake -B build -G Ninja \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=/usr/lib \
+ -DBUILD_SHARED_LIBS=True \
+ -DBUILD_STATIC_LIBS=OFF
+ cmake --build build
+}
+
+package () {
+ DESTDIR="$PKG_DEST" cmake --install build
+}
diff --git a/repo/x11/mesa.xibuild b/repo/x11/mesa.xibuild
index 3a5bcbf..1177345 100644
--- a/repo/x11/mesa.xibuild
+++ b/repo/x11/mesa.xibuild
@@ -31,8 +31,15 @@ build () {
--buildtype=release \
-Ddri-drivers=$DRI_DRIVERS \
-Dgallium-drivers=$GALLIUM_DRV \
+ -Dplatforms=x11,wayland \
-Dgallium-nine=false \
-Dglx=dri \
+ -Dopengl=true \
+ -Dosmesa=true \
+ -Dshared-glapi=enabled \
+ -Degl=enabled \
+ -Dgles1=disabled \
+ -Dgles2=disabled \
-Dvalgrind=disabled \
-Dlibunwind=disabled \
.. &&
diff --git a/repo/x11/pango.xibuild b/repo/x11/pango.xibuild
index 03458aa..8b507dc 100644
--- a/repo/x11/pango.xibuild
+++ b/repo/x11/pango.xibuild
@@ -3,7 +3,7 @@
NAME="pango"
DESC="library for layout and rendering of text"
-MAKEDEPS="meson ninja"
+MAKEDEPS="meson ninja python-pygments git"
DEPS="sbase cairo fontconfig freetype2 glib libx11 libxft libxrender musl fribidi harfbuzz"
PKG_VER=1.50.5
@@ -17,7 +17,11 @@ prepare () {
build () {
mkdir build &&
cd build &&
- meson --prefix=/usr .. &&
+ meson --prefix=/usr \
+ -Dintrospection=enabled \
+ -Dgtk_doc=false \
+ ..
+
ninja
}
diff --git a/repo/x11/sdl2.xibuild b/repo/x11/sdl2.xibuild
new file mode 100644
index 0000000..0f0778f
--- /dev/null
+++ b/repo/x11/sdl2.xibuild
@@ -0,0 +1,38 @@
+#!/bin/sh
+
+NAME="sdl2"
+DESC="development library designed to provide low level access to audio, keyboard, mouse, joystick and graphics"
+
+MAKEDEPS="cmake "
+DEPS="alsa-lib eudev libx11 libxext libxcursor libxi libxkbcommon libxrender libxscrnsaver libusb pulseaudio wayland "
+
+PKG_VER=2.0.20
+SOURCE="https://www.libsdl.org/release/SDL2-$PKG_VER.tar.gz"
+ADDITIONAL="directfb-cflags.patch "
+
+build () {
+ cmake -B build -G Ninja \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=/usr/lib \
+ -DBUILD_SHARED_LIBS=True \
+ -DBUILD_STATIC_LIBS=OFF \
+ -DSDL_TEST=OFF \
+ -DSDL_ALSA=ON \
+ -DSDL_CLOCK_GETTIME=ON \
+ -DSDL_ARTS=OFF \
+ -DSDL_ESD=OFF \
+ -DSDL_NAS=OFF \
+ -DSDL_RPATH=OFF \
+ -DSDL_X11=ON \
+ -DSDL_DIRECTFB=ON \
+ -DSDL_WAYLAND=ON \
+ -DSDL_STATIC=OFF \
+ -DSDL_SHARED=ON \
+ -DSDL_PIPEWIRE_SHARED=ON \
+ -DSDL_PULSEAUDIO_SHARED=ON
+ cmake --build build
+}
+
+package () {
+ DESTDIR="$PKG_DEST" cmake --install build
+}
diff --git a/repo/x11/slop.xibuild b/repo/x11/slop.xibuild
new file mode 100644
index 0000000..263118b
--- /dev/null
+++ b/repo/x11/slop.xibuild
@@ -0,0 +1,23 @@
+#!/bin/sh
+
+NAME="slop"
+DESC="Application that queries for a selection from the user and prints the region to stdout"
+
+MAKEDEPS="cmake "
+DEPS="icu libice libsm libx11 libxext libxrender glm glew"
+
+PKG_VER=7.6
+SOURCE="https://github.com/naelstrof/slop/archive/v$PKG_VER.tar.gz"
+
+build () {
+ cmake \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=/usr/lib \
+ -DBUILD_SHARED_LIBS=True \
+ -DBUILD_STATIC_LIBS=OFF .
+ make
+}
+
+package () {
+ make DESTDIR="$PKG_DEST" install
+}
diff --git a/repo/x11/xf86-video-intel.xibuild b/repo/x11/xf86-video-intel.xibuild
index 2b46e0c..ac5fce2 100644
--- a/repo/x11/xf86-video-intel.xibuild
+++ b/repo/x11/xf86-video-intel.xibuild
@@ -6,17 +6,23 @@ DEPS="xorg-server mesa libxvmc pixman xcb-util"
DESC="X.org intel video driver"
PKG_VER=2.99.917
-# TODO switch to official source not blfs
-SOURCE=https://anduin.linuxfromscratch.org/BLFS/xf86-video-intel/xf86-video-intel-20210222.tar.xz
-#BRANCH=$PKG_VER
+_pkgver=31486f40f8e8f8923ca0799aea84b58799754564
+SOURCE=https://github.com/freedesktop/xorg-xf86-video-intel/archive/$_pkgver.zip
+
+prepare () {
+ autoreconf -vif
+}
build () {
- ./autogen.sh
- ./configure $XORG_CONFIG \
- --enable-kms-only \
- --enable-uxa \
- --mandir=/usr/share/man &&
- make
+ export LDFLAGS="$LDFLAGS -Wl,-z,lazy"
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --enable-xvmc \
+ --disable-selective-werror \
+ --with-default-dri=3
+ make
}
package () {
@@ -26,12 +32,13 @@ package () {
$PKG_DEST/usr/share/man/man1/intel-virtual-output.1 &&
sed -i '/\.TH/s/4/1/' $PKG_DEST/usr/share/man/man1/intel-virtual-output.1
+
mkdir -p $PKG_DEST/etc/X11/xorg.conf.d
cat >> $PKG_DEST/etc/X11/xorg.conf.d/20-intel.conf << "EOF"
Section "Device"
Identifier "Intel Graphics"
Driver "intel"
- #Option "DRI" "2" # DRI3 is default
+ #Option "DRI" "3" # DRI3 is default
#Option "AccelMethod" "sna" # default
#Option "AccelMethod" "uxa" # fallback
EndSection
diff --git a/repo/x11/xorg-server.xibuild b/repo/x11/xorg-server.xibuild
index c65f6fe..11553aa 100644
--- a/repo/x11/xorg-server.xibuild
+++ b/repo/x11/xorg-server.xibuild
@@ -11,8 +11,33 @@ build () {
cd build &&
meson --prefix=$XORG_PREFIX \
- -Dsuid_wrapper=true \
- -Dxkb_output_dir=/var/lib/xkb &&
+ -Dxorg=true \
+ -Dxephyr=true \
+ -Dglamor=true \
+ -Dxnest=true \
+ -Dxvfb=true \
+ -Dxwin=false \
+ -Dglx=true \
+ -Dxdmcp=true \
+ -Dxdm-auth-1=true \
+ -Dxcsecurity=true \
+ -Dsecure-rpc=false \
+ -Dipv6=true \
+ -Dxkb_dir=/usr/share/X11/xkb \
+ -Dxkb_output_dir=/var/lib/xkb \
+ -Dlisten_tcp=false \
+ -Dlisten_unix=true \
+ -Dlisten_local=true \
+ -Dsuid_wrapper=true \
+ -Dpciaccess=true \
+ -Dudev=true \
+ -Dhal=false \
+ -Dsystemd_logind=false \
+ -Ddpms=true \
+ -Ddri1=true \
+ -Ddri2=true \
+ -Ddri3=true \
+ ..
ninja
}