diff options
author | wiz <wiz> | 2001-03-16 13:28:38 +0000 |
---|---|---|
committer | wiz <wiz> | 2001-03-16 13:28:38 +0000 |
commit | 95a400e07a7f70a023afabb8b1cefbe7260bbc8b (patch) | |
tree | 5b4c295466e88e3440d6d34b67db0f749a4ee5ac /graphics/freetype-lib/Makefile | |
parent | 8c6c968334b5194b22cc1a46554047ddf261062c (diff) | |
download | pkgsrc-95a400e07a7f70a023afabb8b1cefbe7260bbc8b.tar.gz |
Add a test if an older version of freetype-lib is installed before building,
since this breaks builds (much too often).
Diffstat (limited to 'graphics/freetype-lib/Makefile')
-rw-r--r-- | graphics/freetype-lib/Makefile | 11 |
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" |