wok-current view xorg-xf86-video-fbdev/receipt @ rev 25698

Fix ntfs-3g receipt
author Stanislas Leduc <shann@slitaz.org>
date Tue Apr 16 19:01:01 2024 +0000 (2 months ago)
parents 5d79829fa876
children
line source
1 # SliTaz package receipt.
3 PACKAGE="xorg-xf86-video-fbdev"
4 VERSION="0.5.0"
5 CATEGORY="x-window"
6 SHORT_DESC="Xorg video driver for framebuffer device."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="MIT"
9 SOURCE="xf86-video-fbdev"
10 TARBALL="$SOURCE-$VERSION.tar.bz2"
11 WEB_SITE="https://www.x.org/"
12 WGET_URL="$XORG_MIRROR/driver/$TARBALL"
13 HOST_ARCH="i486 arm"
15 # We can use xorg-server-light with evdev and fbdev driver.
16 #DEPENDS="xorg-server"
17 BUILD_DEPENDS="xorg-server-dev"
19 # ARM use build system xorg-server-dev or manually install it in sysroot
20 case "$ARCH" in
21 arm) BUILD_DEPENDS="" ;;
22 esac
24 current_version()
25 {
26 wget -O - $(dirname $WGET_URL) 2>/dev/null | \
27 sed "/$SOURCE-[0-9]/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
28 }
30 # Rules to configure and make the package.
31 compile_rules()
32 {
33 # xorg-server 1.12.4 support hack...
34 #sed -i -e 's/\(fbdevHWSwitchMode.*\));/\1, 0);/' \
35 # -e 's/\(fbdevHWAdjustFrame.*\)y);/\1y, 0);/' \
36 # -e 's/\(fbdevHWEnterVT.*\));/\1, 0);/' \
37 # -e 's/\(fbdevHWLeaveVT.*\));/\1, 0);/' \
38 # src/fbdev.c
40 # Patch to build with gcc8
41 # see https://gitlab.archlinux.org/archlinux/packaging/packages/xf86-video-fbdev
42 patch -p1 < $stuff/fix_build_with_gcc8.patch
44 ./configure \
45 --prefix=/usr \
46 --sysconfdir=/etc \
47 --localstatedir=/var \
48 --with-xorg-module-dir=/usr/lib/X11/modules \
49 $CONFIGURE_ARGS &&
50 make && make install
51 }
53 # Rules to gen a SliTaz package suitable for Tazpkg.
54 genpkg_rules()
55 {
56 mkdir -p $fs/usr/lib/X11/modules/drivers/
57 cp -a $install/usr/lib/X11/modules/drivers/*.so \
58 $fs/usr/lib/X11/modules/drivers/
59 }