wok-next annotate libdrm/receipt @ rev 19805

Update full xorg-* stack (add / upgrade / remove no more compiled packages with this xorg-server), normalize receipts to v2.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Jul 14 16:02:21 2017 +0300 (2017-07-14)
parents f463de72afe3
children db97269587e6
rev   line source
al@19805 1 # SliTaz package receipt v2.
pankso@3006 2
pankso@3006 3 PACKAGE="libdrm"
al@19805 4 VERSION="2.4.75"
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/"
pankso@16342 10 HOST_ARCH="i486 arm"
pankso@3006 11
al@19647 12 TARBALL="$PACKAGE-$VERSION.tar.bz2"
al@19647 13 WGET_URL="https://dri.freedesktop.org/libdrm/$TARBALL"
al@19647 14
al@19647 15 BUILD_DEPENDS="autoconf automake libtool xorg-util-macros libxslt \
al@19805 16 xorg-libpciaccess-dev cairo-dev eudev-dev libxslt docbook-xsl valgrind-dev"
al@19805 17 SPLIT="libdrm-amdgpu libdrm-etnaviv libdrm-exynos libdrm-intel libdrm-nouveau \
al@19805 18 libdrm-omap libdrm-radeon libdrm-tegra libdrm-dev"
pankso@12528 19
pankso@3006 20 # Rules to configure and make the package.
pankso@3006 21 compile_rules()
pankso@12528 22 {
al@19647 23 sed -i "/pthread-stubs/d" configure.ac &&
al@19647 24 autoreconf -fiv &&
al@19647 25
pankso@3006 26 ./configure \
pankso@12528 27 --enable-udev \
al@19647 28 --enable-vmwgfx \
al@19647 29 --enable-omap-experimental-api \
al@19647 30 --enable-exynos-experimental-api \
al@19647 31 --enable-tegra-experimental-api \
al@19805 32 --enable-etnaviv-experimental-api \
pankso@12528 33 $CONFIGURE_ARGS &&
pankso@12528 34 make && make install
pankso@3006 35 }
pankso@3006 36
pankso@3006 37 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@3006 38 genpkg_rules()
pankso@3006 39 {
al@19805 40
al@19805 41 case $PACKAGE in
al@19805 42 libdrm)
al@19805 43 copy libdrm.so* libkms.so*
al@19805 44 DEPENDS="glibc-base eudev linux-drm xorg-libpciaccess"
al@19805 45 ;;
al@19805 46 *-amdgpu)
al@19805 47 copy libdrm_amdgpu.so*
al@19805 48 CAT="x-window|AMDGPU API"
al@19805 49 ;;
al@19805 50 *-etnaviv)
al@19805 51 copy libdrm_etnaviv.so*
al@19805 52 CAT="x-window|Etnaviv API"
al@19805 53 ;;
al@19805 54 *-exynos)
al@19805 55 copy libdrm_exynos.so*
al@19805 56 CAT="x-window|EXYNOS API"
al@19805 57 ;;
al@19805 58 *-intel)
al@19805 59 copy libdrm_intel.so*
al@19805 60 CAT="x-window|Intel API"
al@19805 61 DEPENDS="libdrm xorg-libpciaccess"
al@19805 62 ;;
al@19805 63 *-nouveau)
al@19805 64 copy libdrm_nouveau.so*
al@19805 65 CAT="x-window|Nouveau API"
al@19805 66 ;;
al@19805 67 *-omap)
al@19805 68 copy libdrm_omap.so*
al@19805 69 CAT="x-window|OMAP API"
al@19805 70 ;;
al@19805 71 *-radeon)
al@19805 72 copy libdrm_radeon.so*
al@19805 73 CAT="x-window|Radeon API"
al@19805 74 ;;
al@19805 75 *-tegra)
al@19805 76 copy libdrm_tegra.so*
al@19805 77 CAT="x-window|Tegra API"
al@19805 78 ;;
al@19805 79 *-dev)
al@19805 80 copy @dev
al@19805 81 ;;
al@19805 82 esac
pankso@3006 83 }