#!/bin/sh REPO_CONF_DIR="${PWD}" REPO_CONF_NAME="pkg.conf" cat > pkg.conf << EOF xserver_dep_repo: { url: "file://${PWD}/packages", enabled: yes, priority: 100 } EOF pkg -o REPOS_DIR="$REPO_CONF_DIR" -o repositories_conf="$REPO_CONF_NAME" install -y pkgconf pixman libdrm libX11 libglvnd mesa-dri pkg -o REPOS_DIR="$REPO_CONF_DIR" -o repositories_conf="$REPO_CONF_NAME" install -y xtrans libXfont libxkbfile autoconf xorg-macros cd automake-1.15.1 ./configure make make install cd .. ln -s /usr/local/share/pkgconfig/glproto.pc /usr/local/libdata/pkgconfig/glproto.pc cat > /usr/local/libdata/pkgconfig/gl.pc << 'EOF' prefix=/usr/local includedir=${prefix}/include libdir=${prefix}/lib Name: GL Description: Legacy OpenGL and GLX library and headers. Version: 9.2.0 Libs: -L${libdir} -lGL Cflags: -I${includedir} EOF cd xorg-server-1.18.4 ./configure --disable-docs --disable-devel-docs --with-dtrace=no --disable-unit-tests --with-builder-addr=svsp@svsptech.ru \ --with-os-name="Calista Operating System amd64 build 9" --with-os-vendor="SVSP Technologies" \ --with-builderstring="Assembled using the Calista operating system assembler" make make install unlink /usr/local/libdata/pkgconfig/glproto.pc cat > /usr/local/libdata/pkgconfig/gl.pc << 'EOF' prefix=/usr/local includedir=${prefix}/include libdir=${prefix}/lib Name: GL Description: Legacy OpenGL and GLX library and headers. Version: 1.2 Libs: -L${libdir} -lGL Cflags: -I${includedir} EOF #pkg delete -y pkgconf pixman libdrm