diff options
author | jlam <jlam> | 2001-06-19 06:48:50 +0000 |
---|---|---|
committer | jlam <jlam> | 2001-06-19 06:48:50 +0000 |
commit | 7ec2ac7db884fa044d3b212e3e11b3e99a14fa37 (patch) | |
tree | 70ef2eb4d188e7a1c702fe957358aff1a3497932 /devel/glib | |
parent | 4fd8d58db207b269bd90cab80aea3a3a44d6769a (diff) | |
download | pkgsrc-7ec2ac7db884fa044d3b212e3e11b3e99a14fa37.tar.gz |
Fix glibconfig.h to define the correct glib version number as well.
Diffstat (limited to 'devel/glib')
-rw-r--r-- | devel/glib/Makefile | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/devel/glib/Makefile b/devel/glib/Makefile index 980b336c3d9..69b1714f13e 100644 --- a/devel/glib/Makefile +++ b/devel/glib/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.36 2001/06/19 06:04:41 jlam Exp $ +# $NetBSD: Makefile,v 1.37 2001/06/19 06:48:50 jlam Exp $ # FreeBSD Id: Makefile,v 1.2 1998/08/06 14:55:12 vanilla Exp # @@ -36,6 +36,9 @@ CFLAGS= -O0 .endif GLIB_VERSION= ${DISTNAME:S/glib-//} +GLIB_MAJOR_VERSION= ${GLIB_VERSION:C/\..*//} +GLIB_MINOR_VERSION= ${GLIB_VERSION:C/[^.]*\.//:C/\..*//} +GLIB_MICRO_VERSION= ${GLIB_VERSION:C/.*\.//} # 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 @@ -53,4 +56,17 @@ pre-configure: ${RM} $${file}.fixme; \ done +post-configure: + @cd ${WRKSRC}; \ + files="config.status config.h glibconfig.h"; \ + for file in $${files}; do \ + ${MV} $${file} $${file}.fixme; \ + ${SED} -e "s|^\(#define.*GLIB_MAJOR_VERSION\).*|\1 ${GLIB_MAJOR_VERSION}|" \ + -e "s|^\(#define.*GLIB_MINOR_VERSION\).*|\1 ${GLIB_MINOR_VERSION}|" \ + -e "s|^\(#define.*GLIB_MICRO_VERSION\).*|\1 ${GLIB_MICRO_VERSION}|" \ + $${file}.fixme > $${file}; \ + ${RM} $${file}.fixme; \ + done + ${CHMOD} +x ${WRKSRC}/config.status + .include "../../mk/bsd.pkg.mk" |