diff options
author | jlam <jlam@pkgsrc.org> | 2001-06-19 06:03:25 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2001-06-19 06:03:25 +0000 |
commit | ed39c90f713baabac62641c8b83e36991b9e222c (patch) | |
tree | bf6924ddccf1bb0f8c2e695fdb27f533f6e4dc1e /devel/glib/Makefile | |
parent | 5ac3efc263e94c00862a2b90822cbe5ebf481563 (diff) | |
download | pkgsrc-ed39c90f713baabac62641c8b83e36991b9e222c.tar.gz |
Make sure that installed files announce the correct version number for
the installed package. We patch the version info in the configure scripts
to deal with shared library versioning, but we don't want those version
numbers to leak into installed files. Fixes 1st part of pkg/12146 by
Dan Winship <danw@ximian.com>.
Diffstat (limited to 'devel/glib/Makefile')
-rw-r--r-- | devel/glib/Makefile | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/devel/glib/Makefile b/devel/glib/Makefile index d0a53721cba..da8af255777 100644 --- a/devel/glib/Makefile +++ b/devel/glib/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.34 2001/06/18 21:34:02 jlam Exp $ +# $NetBSD: Makefile,v 1.35 2001/06/19 06:03:25 jlam Exp $ # FreeBSD Id: Makefile,v 1.2 1998/08/06 14:55:12 vanilla Exp # @@ -35,4 +35,22 @@ CFLAGS= -O0 .include "../../devel/pth/buildlink.mk" .endif +GLIB_VERSION= ${PKGNAME:S/glib-//} + +# We patch the version info in the configure scripts for reasons related to +# shared library numbering, but we don't want it to leak into the various +# installed files. Explicitly replace the version number with the correct +# one derived from the package name. +# +pre-configure: + @cd ${WRKSRC}; \ + files="glib-config.in docs/glib-config.1.in glib.pc.in gmodule.pc.in gthread.pc.in"; \ + for file in $${files}; do \ + ${MV} -f $${file} $${file}.fixme; \ + ${SED} -e "s|@GLIB_VERSION@|${GLIB_VERSION}|g" \ + -e "s|@VERSION@|${GLIB_VERSION}|g" \ + $${file}.fixme > $${file}; \ + ${RM} $${file}.fixme; \ + done + .include "../../mk/bsd.pkg.mk" |