#!/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 pkg -o REPOS_DIR="$REPO_CONF_DIR" -o repositories_conf="$REPO_CONF_NAME" install -y font-util libudev-devd libevdev libmtdev pkg -o REPOS_DIR="$REPO_CONF_DIR" -o repositories_conf="$REPO_CONF_NAME" install -y evdev-proto xkbcomp xkeyboard-config pkg -o REPOS_DIR="$REPO_CONF_DIR" -o repositories_conf="$REPO_CONF_NAME" install -y glx-utils 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 export CFLAGS="-w" #Выключаем варнинги они нам не нужны ./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 cp /usr/local/lib/pkgconfig/xorg-server.pc /usr/local/libdata/pkgconfig/xorg-server.pc cat > /tmp/xorg-server.ucl << EOF name: xorg-server version: 1.18.4 origin: xorg-server comment: X.Org X server for Calista desc: X.Org X server for Calista arch: freebsd:$(uname -m) maintainer: x11@FreeBSD.org www: https://www.x.org prefix: /usr/local EOF pkg register -M /tmp/xorg-server.ucl rm -rf /tmp/xorg-server.ucl pkg lock -y xorg-server cd .. cd xf86-input-mouse-1.9.2 ./configure make make install cp /usr/local/lib/pkgconfig/xorg-mouse.pc /usr/local/libdata/pkgconfig/xorg-mouse.pc cat > /tmp/xorg-mouse.ucl << EOF name: xorg-mouse version: 1.9.2 origin: xorg-mouse comment: Mouse driver for X.Org X server for Calista desc: Mouse driver for X.Org X server for Calista arch: freebsd:$(uname -m) maintainer: x11@FreeBSD.org www: https://www.x.org prefix: /usr/local EOF pkg register -M /tmp/xorg-mouse.ucl rm -rf /tmp/xorg-mouse.ucl pkg lock -y xorg-mouse cd .. cd xf86-input-keyboard-1.9.0 make make install cp /usr/local/lib/pkgconfig/xorg-keyboard.pc /usr/local/libdata/pkgconfig/xorg-keyboard.pc cat > /tmp/xorg-keyboard.ucl << EOF name: xorg-keyboard version: 1.9.0 origin: xorg-keyboard comment: Keyboard driver for X.Org X server for Calista desc: Keyboard driver for X.Org X server for Calista arch: freebsd:$(uname -m) maintainer: x11@FreeBSD.org www: https://www.x.org prefix: /usr/local EOF pkg register -M /tmp/xorg-keyboard.ucl rm -rf /tmp/xorg-keyboard.ucl pkg lock -y xorg-keyboard