[PATCH sgml-doctools] Upgrade xorg-sgml-doctools.pc.in

Alan Coopersmith alan.coopersmith at oracle.com
Sun Nov 7 22:59:38 PST 2010


Shouldn't you change Makefile.am to match then?

sgmldir = $(prefix)/share/sgml/X11

Gaetan Nadon wrote:
> Follow the autoconf directory variables structure.
> Currently the value of sgmlrootdir would be incorrect
> if the package is configure with --datadir=somewhere_else.
> The datarootdir was introduced in Autoconf version 2.60.
> 
> Use PACKAGE_VERSION rather than the undocumented VERSION variable.
> 
> Signed-off-by: Gaetan Nadon <memsize at videotron.ca>
> ---
>  xorg-sgml-doctools.pc.in |    8 +++++---
>  1 files changed, 5 insertions(+), 3 deletions(-)
> 
> diff --git a/xorg-sgml-doctools.pc.in b/xorg-sgml-doctools.pc.in
> index ae1422a..5a5ed67 100644
> --- a/xorg-sgml-doctools.pc.in
> +++ b/xorg-sgml-doctools.pc.in
> @@ -1,6 +1,8 @@
>  prefix=@prefix@
> -sgmlrootdir=${prefix}/share/sgml
> +datarootdir=@datarootdir@
> +datadir=@datadir@
> +sgmlrootdir=${datadir}/sgml
>  
>  Name: xorg-sgml-doctools
> -Description: SGML entities for X.Org documentation
> -Version: @VERSION@
> +Description: Stylesheets and entities for X.Org documentation
> +Version: @PACKAGE_VERSION@


-- 
	-Alan Coopersmith-        alan.coopersmith at oracle.com
	 Oracle Solaris Platform Engineering: X Window System



More information about the xorg-devel mailing list