summaryrefslogtreecommitdiff
path: root/devel/glib
diff options
context:
space:
mode:
authorjlam <jlam>2001-06-19 06:03:25 +0000
committerjlam <jlam>2001-06-19 06:03:25 +0000
commit74b30d380ff53f2e51b71962cfb5cd51399e063d (patch)
treebf6924ddccf1bb0f8c2e695fdb27f533f6e4dc1e /devel/glib
parent7aacf8c6b1bfcd7ed150f3a85ea6638681904320 (diff)
downloadpkgsrc-74b30d380ff53f2e51b71962cfb5cd51399e063d.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')
-rw-r--r--devel/glib/Makefile20
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"