Add a test if an older version of freetype-lib is installed before building,
since this breaks builds (much too often).
This commit is contained in:
parent
96eabdba05
commit
95e76ac1d4
1 changed files with 10 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue