From 75f40eb040f78b8715adeb893e01c8ed62aa9b9b Mon Sep 17 00:00:00 2001 From: bsam Date: Thu, 2 Apr 2009 12:58:21 +0000 Subject: Add some sanity checks: . a check for valid components at USE_LINUX_APPS; . a check if a component is defined for the given linux distro (has apropriate port). --- Mk/bsd.linux-apps.mk | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'Mk') diff --git a/Mk/bsd.linux-apps.mk b/Mk/bsd.linux-apps.mk index cbe8d75..453cf1a 100644 --- a/Mk/bsd.linux-apps.mk +++ b/Mk/bsd.linux-apps.mk @@ -342,6 +342,25 @@ webauth_DEPENDS= gtk2 atk pango fontconfig # End component definition section +# Let's check if components from USE_LINUX_APPS exist at _LINUX_APPS_ALL +. for component in ${USE_LINUX_APPS} +. if ${_LINUX_APPS_ALL:M${component}}=="" +IGNORE= bsd.linux-apps.mk test failed: Invalid component USE_LINUX_APPS=${component} +. endif +. endfor + +# Let's check if components from USE_LINUX_APPS have corresponding _DETECT +# i.e. if a corresponding _FILE defined for given LINUX_DIST_SUFFIX +. for component in ${USE_LINUX_APPS} +. if ${${component}_DETECT}=="" +. if defined(${component}${LINUX_DIST_SUFFIX:S/-/_/}_FILE) +IGNORE= bsd.linux-apps.mk test failed: The component ${component} is empty for LINUX_DIST_SUFFIX=${LINUX_DIST_SUFFIX} (the corresponding variable ${component}${LINUX_DIST_SUFFIX:S/-/_/}_FILE is empty) +. else +IGNORE= bsd.linux-apps.mk test failed: The component ${component} is not defined for LINUX_DIST_SUFFIX=${LINUX_DIST_SUFFIX} (the corresponding variable ${component}${LINUX_DIST_SUFFIX:S/-/_/}_FILE is not defined) +. endif +. endif +. endfor + # Recursively expand all dependencies for each app at _LINUX_APPS_ALL . for component in ${_LINUX_APPS_ALL} . for subcomponent in ${${component}_DEPENDS} -- cgit v1.1