mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

91 lines
2.9 KiB

  1. # --- ROCK-COPYRIGHT-NOTE-BEGIN ---
  2. #
  3. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  4. # Please add additional copyright information _after_ the line containing
  5. # the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
  6. # the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
  7. #
  8. # ROCK Linux: rock-src/package/x11/xfree86/fontconfig.pc.patch
  9. # ROCK Linux is Copyright (C) 1998 - 2003 Clifford Wolf
  10. #
  11. # This program is free software; you can redistribute it and/or modify
  12. # it under the terms of the GNU General Public License as published by
  13. # the Free Software Foundation; either version 2 of the License, or
  14. # (at your option) any later version. A copy of the GNU General Public
  15. # License can be found at Documentation/COPYING.
  16. #
  17. # Many people helped and are helping developing ROCK Linux. Please
  18. # have a look at http://www.rocklinux.org/ and the Documentation/TEAM
  19. # file for details.
  20. #
  21. # --- ROCK-COPYRIGHT-NOTE-END ---
  22. Add the missing fontconfig.pc* files, support and code in the style of
  23. Xcursor (I would do it cleaner - but it this is the XFree86-way ...)
  24. - Rene Rebe <rene@rocklinux.org>
  25. --- xc/lib/fontconfig/Imakefile 2003-06-10 13:04:51.000000000 +0200
  26. +++ xc-new/lib/fontconfig/Imakefile 2003-08-30 20:02:57.000000000 +0200
  27. @@ -17,6 +17,12 @@
  28. HEADERS=fcfreetype.h fcprivate.h fontconfig.h
  29. +SUBSTVARS=prefix="$(PROJECTROOT)" \
  30. + exec_prefix="$(BINDIR)" \
  31. + libdir="$(USRLIBDIR)" \
  32. + includedir="$(INCROOT)" \
  33. + PACKAGE_VERSION="1.0.1"
  34. +
  35. BuildIncludes($(HEADERS),IncSubdir,..)
  36. InstallMultipleFlags($(HEADERS),$(INCDIR)/IncSubdir,$(INSTINCFLAGS))
  37. @@ -91,12 +97,19 @@
  38. InstallNonExecFileBackup(fonts.conf,$(FONTCONFIGFONTSCONFDIR))
  39. InstallNonExecFile(fonts.dtd,$(FONTCONFIGFONTSCONFDIR))
  40. -all:: fonts.conf
  41. +all:: fonts.conf fontconfig.pc
  42. fonts.conf: fonts.conf.in setfontdirs findfonts
  43. RemoveFile($@)
  44. sh ./setfontdirs $(FONTDIRS)
  45. +fontconfig.pc: fontconfig.pc.in
  46. + RemoveFile($@)
  47. + sh config-subst $(SUBSTVARS) < $@.in > $@
  48. +
  49. +InstallNonExecFile(fontconfig.pc,$(USRLIBDIR)/pkgconfig)
  50. +
  51. +
  52. clean::
  53. RemoveFile(fonts.conf)
  54. --- xc/lib/fontconfig/fontconfig.pc.in 1970-01-01 01:00:00.000000000 +0100
  55. +++ xc-new/lib/fontconfig/fontconfig.pc.in 2003-08-30 19:09:46.000000000 +0200
  56. @@ -0,0 +1,10 @@
  57. +prefix=@prefix@
  58. +exec_prefix=@exec_prefix@
  59. +libdir=@libdir@
  60. +includedir=@includedir@
  61. +
  62. +Name: Fontconfig
  63. +Description: Font configuration and customization library
  64. +Version: @PACKAGE_VERSION@
  65. +Libs: -L${libdir} -lfontconfig
  66. +Cflags: -I${includedir}
  67. --- xc/lib/fontconfig/config-subst 1970-01-01 01:00:00.000000000 +0100
  68. +++ xc-new/lib/fontconfig/config-subst 2003-08-30 19:43:14.000000000 +0200
  69. @@ -0,0 +1,11 @@
  70. +#!/bin/sh
  71. +set -x
  72. +script=config-subst.$$
  73. +trap "rm $script" 0
  74. +rm -f $script
  75. +for i in ${1+"$@"}; do
  76. + var="`echo "$i" | sed 's/=.*$//'`"
  77. + val="`echo "$i" | sed 's/^[^=]*=//'`"
  78. + echo "s;@$var@;$val;" >> $script
  79. +done
  80. +sed -f $script