summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwiz <wiz>2001-03-16 13:28:38 +0000
committerwiz <wiz>2001-03-16 13:28:38 +0000
commit8b726c84fa60aefbe0529800fa4f2c58de67efae (patch)
tree5b4c295466e88e3440d6d34b67db0f749a4ee5ac
parentd30c39a3d77998b2b7352597220d32e885a12f7e (diff)
downloadpkgsrc-8b726c84fa60aefbe0529800fa4f2c58de67efae.tar.gz
Add a test if an older version of freetype-lib is installed before building,
since this breaks builds (much too often).
-rw-r--r--graphics/freetype-lib/Makefile11
1 files changed, 10 insertions, 1 deletions
diff --git a/graphics/freetype-lib/Makefile b/graphics/freetype-lib/Makefile
index a6a69961451..3247e206ef5 100644
--- a/graphics/freetype-lib/Makefile
+++ b/graphics/freetype-lib/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2001/02/16 15:22:18 wiz Exp $
+# $NetBSD: Makefile,v 1.4 2001/03/16 13:28:38 wiz Exp $
PKGNAME= freetype-lib-${FT_VERS}
@@ -9,4 +9,13 @@ CONFIGURE_ARGS+= --without-x
ALL_TARGET= ttlib ttpo
INSTALL_TARGET= install-ttlib install-ttpo
+pre-build:
+ @if ${PKG_INFO} -qe 'freetype-lib<${FT_VERS}'; then \
+ ${ECHO} "**** An older version of freetype-lib is installed"; \
+ ${ECHO} "**** ${PKGNAME} cannot be built with it installed."; \
+ ${ECHO} "**** Please delete it before building"; \
+ ${ECHO} "**** or use \"${MAKE} update\"."; \
+ ${FALSE}; \
+ fi
+
.include "../../graphics/freetype-lib/Makefile.common"