recipe 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. # Build recipe for xf86-video-intel.
  2. #
  3. # Copyright (c) 2017 Mateus P. Rodrigues <mprodrigues@dragora.org>.
  4. # Copyright (c) 2017-2019 Matias Fonzo, <selk@dragora.org>.
  5. #
  6. # Licensed under the Apache License, Version 2.0 (the "License");
  7. # you may not use this file except in compliance with the License.
  8. # You may obtain a copy of the License at
  9. #
  10. # http://www.apache.org/licenses/LICENSE-2.0
  11. #
  12. # Unless required by applicable law or agreed to in writing, software
  13. # distributed under the License is distributed on an "AS IS" BASIS,
  14. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  15. # See the License for the specific language governing permissions and
  16. # limitations under the License.
  17. program=xorg-xf86-video-intel
  18. pkgname=xf86-video-intel
  19. version=20190927_c6cb1b19
  20. release=1
  21. # Set 'outdir' for a nice and well-organized output directory
  22. outdir="${outdir}/${arch}/xorg/driver"
  23. tarname=${program}-${version}.tar.lz
  24. # Remote source(s)
  25. #fetch=http://anduin.linuxfromscratch.org/BLFS/xf86-video-intel/$tarname
  26. fetch="
  27. http://rsync.dragora.org/current/sources/$tarname
  28. http://mirror.cedia.org.ec/dragora/current/sources/$tarname
  29. "
  30. description="
  31. Video driver for the Xorg X server supporting Intel chipsets.
  32. This package is part of X11.
  33. "
  34. homepage=http://github.com/freedesktop/xorg-xf86-video-intel/
  35. license="MIT X Consortium"
  36. # Source documentation
  37. docs="AUTHORS COPYING NEWS README"
  38. docsdir="${docdir}/${pkgname}-${version}"
  39. build()
  40. {
  41. set -e
  42. unpack "${tardir}/$tarname"
  43. cd "$srcdir"
  44. # Set sane permissions
  45. chmod -R u+w,go-w,a+rX-s .
  46. ./autogen.sh CFLAGS="$QICFLAGS" LDFLAGS="$QILDFLAGS -Wl,-z,lazy" \
  47. $configure_args \
  48. --libdir=/usr/lib${libSuffix} \
  49. --mandir=$mandir \
  50. --docdir=$docsdir \
  51. --enable-static=no \
  52. --enable-shared=yes \
  53. --enable-kms-only \
  54. --enable-uxa \
  55. --build="$(cc -dumpmachine)"
  56. make -j${jobs} V=1
  57. make -j${jobs} DESTDIR="$destdir" install
  58. # Compress and link man pages (if needed)
  59. (
  60. cd "${destdir}/$mandir"
  61. find . -type f -exec lzip -9 '{}' +
  62. find . -type l | while read -r file
  63. do
  64. ln -sf "$(readlink -- "$file").lz" "${file}.lz"
  65. rm -- "$file"
  66. done
  67. )
  68. # Copy documentation
  69. mkdir -p "${destdir}${docsdir}"
  70. cp -p $docs "${destdir}${docsdir}/"
  71. }