Disallow flavourless build if someone ever tries to do that (FLAVOR= make).

Force people to choose from sun, oss, esd as their sound system, print
error message if that is not done.
Suggested by Heikki Korpela <heko@saitti.net>
This commit is contained in:
pvalchev 2001-06-23 20:07:17 +00:00
parent c4ff8deca0
commit 90a6d57018

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.7 2001/06/23 19:05:33 pvalchev Exp $
# $OpenBSD: Makefile,v 1.8 2001/06/23 20:07:17 pvalchev Exp $
COMMENT= "cross-platform multimedia library"
@ -23,6 +23,14 @@ MASTER_SITES= ${HOMEPAGE}/release/ \
FLAVORS= sun oss esd gl arts no_x11
FLAVOR?= sun
.if empty(FLAVOR:L:Msun) && empty(FLAVOR:L:Moss) && empty(FLAVOR:L:Mesd)
.BEGIN:
@echo "You must choose a flavor from: sun, oss, esd"
@echo "to select the appropriate sound system you want to use."
@echo "Additionally, you can append your other choices afterwards."
@exit 1
.endif
USE_GMAKE= Yes
SEPARATE_BUILD= concurrent