From 254a0793b5b0597528e4cafc26f415ac2de0ac4a Mon Sep 17 00:00:00 2001 From: adamw Date: Tue, 2 Mar 2004 15:00:57 +0000 Subject: Check to see whether we're upgrading from an older version of glib (i.e., not glib-2.3). If so, and FORCE_MANUAL_UPGRADE is not defined, error out and instruct people to use gnome_upgrade.sh. Right now it tells people to read develfaq.html, but it should be changed to the hand-holding help document that I'm going to finish working on one of these days/weeks/months. This calls pkg_info|grep, so it can make it seem like stuff is dragging at first. Perhaps there's a better way to run this call? git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@1939 df743ca5-7f9a-e211-a948-0013205c9059 --- devel/glib20/Makefile | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'devel') diff --git a/devel/glib20/Makefile b/devel/glib20/Makefile index 79e33fb83..21f72b547 100644 --- a/devel/glib20/Makefile +++ b/devel/glib20/Makefile @@ -38,4 +38,14 @@ CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \ PTHREAD_LIBS="${PTHREAD_LIBS}" +pre-everything:: + @if [ `${PKG_INFO} | ${GREP} "^glib-2\." | ${CUT} -f 1,2 -d'.'` != glib-2.3 ]; then \ + if [ "x${GNOME_UPGRADE_SH_VER}" = "x" -a "x${FORCE_MANUAL_UPGRADE}" = "x" ]; then \ + ${ECHO_CMD} "You are attempting to perform a GNOME upgrade manually."; \ + ${ECHO_CMD} "You are strongly urged to upgrade GNOME according to the steps outlined in:"; \ + ${ECHO_CMD} " http://www.freebsd.org/gnome/develfaq.html"; \ + ${ECHO_CMD} "If you wish to to continue with this upgrade manually,"; \ + ${ECHO_CMD} "define FORCE_MANUAL_UPGRADE." \ + exit 1; fi; fi + .include -- cgit v1.2.3