summaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
Diffstat (limited to 'devel')
-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>