wok-next annotate libdrm/receipt @ rev 20324

linux-libre-api-headers: update bdeps
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Nov 12 00:47:34 2017 +0100 (2017-11-12)
parents ea3c4b76ea5d
children 0e7893ac206d
rev   line source
al@19805 1 # SliTaz package receipt v2.
pankso@3006 2
pankso@3006 3 PACKAGE="libdrm"
al@19979 4 VERSION="2.4.82"
pankso@3006 5 CATEGORY="x-window"
al@19805 6 SHORT_DESC="Freedesktop DRM Library"
al@19805 7 MAINTAINER="al.bobylev@gmail.com"
pascal@15472 8 LICENSE="MIT"
al@19647 9 WEB_SITE="https://dri.freedesktop.org/"
al@19979 10 LFS="http://www.linuxfromscratch.org/blfs/view/stable/x/libdrm.html"
pankso@16342 11 HOST_ARCH="i486 arm"
pankso@3006 12
al@19647 13 TARBALL="$PACKAGE-$VERSION.tar.bz2"
al@19647 14 WGET_URL="https://dri.freedesktop.org/libdrm/$TARBALL"
al@19647 15
al@19647 16 BUILD_DEPENDS="autoconf automake libtool xorg-util-macros libxslt \
al@19805 17 xorg-libpciaccess-dev cairo-dev eudev-dev libxslt docbook-xsl valgrind-dev"
al@19805 18 SPLIT="libdrm-amdgpu libdrm-etnaviv libdrm-exynos libdrm-intel libdrm-nouveau \
al@19805 19 libdrm-omap libdrm-radeon libdrm-tegra libdrm-dev"
pankso@12528 20
al@19979 21 compile_rules() {
al@19979 22 # sed -i "/pthread-stubs/d" configure.ac &&
al@19647 23 autoreconf -fiv &&
al@19647 24
pankso@3006 25 ./configure \
pankso@12528 26 --enable-udev \
al@19647 27 --enable-vmwgfx \
al@19647 28 --enable-omap-experimental-api \
al@19647 29 --enable-exynos-experimental-api \
al@19647 30 --enable-tegra-experimental-api \
al@19805 31 --enable-etnaviv-experimental-api \
pankso@12528 32 $CONFIGURE_ARGS &&
pankso@12528 33 make && make install
pankso@3006 34 }
pankso@3006 35
al@19979 36 genpkg_rules() {
al@19805 37 case $PACKAGE in
al@19805 38 libdrm)
al@19805 39 copy libdrm.so* libkms.so*
al@19979 40 DEPENDS="eudev linux-drm xorg-libpciaccess"
al@19805 41 ;;
al@19805 42 *-amdgpu)
al@19805 43 copy libdrm_amdgpu.so*
al@19805 44 CAT="x-window|AMDGPU API"
al@19805 45 ;;
al@19805 46 *-etnaviv)
al@19805 47 copy libdrm_etnaviv.so*
al@19805 48 CAT="x-window|Etnaviv API"
al@19805 49 ;;
al@19805 50 *-exynos)
al@19805 51 copy libdrm_exynos.so*
al@19805 52 CAT="x-window|EXYNOS API"
al@19805 53 ;;
al@19805 54 *-intel)
al@19805 55 copy libdrm_intel.so*
al@19805 56 CAT="x-window|Intel API"
al@19805 57 DEPENDS="libdrm xorg-libpciaccess"
al@19805 58 ;;
al@19805 59 *-nouveau)
al@19805 60 copy libdrm_nouveau.so*
al@19805 61 CAT="x-window|Nouveau API"
al@19805 62 ;;
al@19805 63 *-omap)
al@19805 64 copy libdrm_omap.so*
al@19805 65 CAT="x-window|OMAP API"
al@19805 66 ;;
al@19805 67 *-radeon)
al@19805 68 copy libdrm_radeon.so*
al@19805 69 CAT="x-window|Radeon API"
al@19805 70 ;;
al@19805 71 *-tegra)
al@19805 72 copy libdrm_tegra.so*
al@19805 73 CAT="x-window|Tegra API"
al@19805 74 ;;
al@19805 75 *-dev)
al@19805 76 copy @dev
al@19805 77 ;;
al@19805 78 esac
pankso@3006 79 }