diff --git a/Documentation/Developers/CHANGELOG-RENE b/Documentation/Developers/CHANGELOG-RENE index 28a288208..5fe3abb1b 100644 --- a/Documentation/Developers/CHANGELOG-RENE +++ b/Documentation/Developers/CHANGELOG-RENE @@ -16,6 +16,7 @@ - fixed cretae_package_db to list errors correctly - removed the missing binary check since it is now done in create_package_db - updated glib22, pango12 and gtk+22 + - created a upstream-able fontconfig.pc patch for xfree86 *) 2003-08-29 (2.0.0-rc1 - 2.0.0-rc2) diff --git a/package/x11/xfree86/fontconfig.pc b/package/x11/xfree86/fontconfig.pc deleted file mode 100644 index 4bfcea5cf..000000000 --- a/package/x11/xfree86/fontconfig.pc +++ /dev/null @@ -1,10 +0,0 @@ -prefix=/usr/X11R6 -exec_prefix=/usr/X11R6/bin -libdir=/usr/X11R6/lib -includedir=/usr/X11R6/include - -Name: Fontconfig -Description: Font configuration and customization library -Version: 1.0.1 -Libs: -L${libdir} -lfontconfig -Cflags: -I${includedir} diff --git a/package/x11/xfree86/fontconfig.pc.patch b/package/x11/xfree86/fontconfig.pc.patch new file mode 100644 index 000000000..bc8afc06a --- /dev/null +++ b/package/x11/xfree86/fontconfig.pc.patch @@ -0,0 +1,69 @@ + +Add the missing fontconfig.pc* files, support and code in the style of +Xcursor (I would do it cleaner - but it this is the XFree86-way ...) + + - Rene Rebe + +--- xc/lib/fontconfig/Imakefile 2003-06-10 13:04:51.000000000 +0200 ++++ xc-new/lib/fontconfig/Imakefile 2003-08-30 20:02:57.000000000 +0200 +@@ -17,6 +17,12 @@ + + HEADERS=fcfreetype.h fcprivate.h fontconfig.h + ++SUBSTVARS=prefix="$(PROJECTROOT)" \ ++ exec_prefix="$(BINDIR)" \ ++ libdir="$(USRLIBDIR)" \ ++ includedir="$(INCROOT)" \ ++ PACKAGE_VERSION="1.0.1" ++ + BuildIncludes($(HEADERS),IncSubdir,..) + InstallMultipleFlags($(HEADERS),$(INCDIR)/IncSubdir,$(INSTINCFLAGS)) + +@@ -91,12 +97,19 @@ + InstallNonExecFileBackup(fonts.conf,$(FONTCONFIGFONTSCONFDIR)) + InstallNonExecFile(fonts.dtd,$(FONTCONFIGFONTSCONFDIR)) + +-all:: fonts.conf ++all:: fonts.conf fontconfig.pc + + fonts.conf: fonts.conf.in setfontdirs findfonts + RemoveFile($@) + sh ./setfontdirs $(FONTDIRS) + ++fontconfig.pc: fontconfig.pc.in ++ RemoveFile($@) ++ sh config-subst $(SUBSTVARS) < $@.in > $@ ++ ++InstallNonExecFile(xcursor.pc,$(USRLIBDIR)/pkgconfig) ++ ++ + clean:: + RemoveFile(fonts.conf) + +--- xc/lib/fontconfig/fontconfig.pc.in 1970-01-01 01:00:00.000000000 +0100 ++++ xc-new/lib/fontconfig/fontconfig.pc.in 2003-08-30 19:09:46.000000000 +0200 +@@ -0,0 +1,10 @@ ++prefix=@prefix@ ++exec_prefix=@exec_prefix@ ++libdir=@libdir@ ++includedir=@includedir@ ++ ++Name: Fontconfig ++Description: Font configuration and customization library ++Version: @PACKAGE_VERSION@ ++Libs: -L${libdir} -lfontconfig ++Cflags: -I${includedir} +--- xc/lib/fontconfig/config-subst 1970-01-01 01:00:00.000000000 +0100 ++++ xc-new/lib/fontconfig/config-subst 2003-08-30 19:43:14.000000000 +0200 +@@ -0,0 +1,11 @@ ++#!/bin/sh ++set -x ++script=config-subst.$$ ++trap "rm $script" 0 ++rm -f $script ++for i in ${1+"$@"}; do ++ var="`echo "$i" | sed 's/=.*$//'`" ++ val="`echo "$i" | sed 's/^[^=]*=//'`" ++ echo "s;@$var@;$val;" >> $script ++done ++sed -f $script diff --git a/package/x11/xfree86/xfree86.conf b/package/x11/xfree86/xfree86.conf index b1571f3de..44cdd96e9 100644 --- a/package/x11/xfree86/xfree86.conf +++ b/package/x11/xfree86/xfree86.conf @@ -34,10 +34,6 @@ x11base_main() { xf_build xf_install - - # copy file missing since 4.3.99.6 - cp -v $base/package/x11/xfree86/fontconfig.pc \ - $root/usr/X11R6/lib/pkgconfig/fontconfig.pc } custmain=x11base_main