summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoradamw <adamw@df743ca5-7f9a-e211-a948-0013205c9059>2004-03-02 23:00:57 +0800
committeradamw <adamw@df743ca5-7f9a-e211-a948-0013205c9059>2004-03-02 23:00:57 +0800
commit254a0793b5b0597528e4cafc26f415ac2de0ac4a (patch)
tree0398be01e0279ec86ad2ed14fa9254f5f9ab27da
parentff1517f031563e560c1e0513237cfbda315a7f7e (diff)
downloadmarcuscom-ports-254a0793b5b0597528e4cafc26f415ac2de0ac4a.tar
marcuscom-ports-254a0793b5b0597528e4cafc26f415ac2de0ac4a.tar.gz
marcuscom-ports-254a0793b5b0597528e4cafc26f415ac2de0ac4a.tar.bz2
marcuscom-ports-254a0793b5b0597528e4cafc26f415ac2de0ac4a.tar.lz
marcuscom-ports-254a0793b5b0597528e4cafc26f415ac2de0ac4a.tar.xz
marcuscom-ports-254a0793b5b0597528e4cafc26f415ac2de0ac4a.tar.zst
marcuscom-ports-254a0793b5b0597528e4cafc26f415ac2de0ac4a.zip
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
-rw-r--r--devel/glib20/Makefile10
1 files changed, 10 insertions, 0 deletions
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 <bsd.port.mk>