aboutsummaryrefslogtreecommitdiff
path: root/Mk
diff options
context:
space:
mode:
authorBoris Samorodov <bsam@FreeBSD.org>2009-04-02 12:58:21 +0000
committerBoris Samorodov <bsam@FreeBSD.org>2009-04-02 12:58:21 +0000
commit129cecd56cac3c84694ba37a4a4de41bd8c110a4 (patch)
treefbd3f755f507deb5f0d0bf0bbf789be7467dab62 /Mk
parent489e2acb954be5a71ae85d4df4b8f597540ca09f (diff)
downloadports-129cecd56cac3c84694ba37a4a4de41bd8c110a4.tar.gz
ports-129cecd56cac3c84694ba37a4a4de41bd8c110a4.zip
Notes
Diffstat (limited to 'Mk')
-rw-r--r--Mk/bsd.linux-apps.mk19
1 files changed, 19 insertions, 0 deletions
diff --git a/Mk/bsd.linux-apps.mk b/Mk/bsd.linux-apps.mk
index cbe8d751e242..453cf1a0542f 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 <app>_DETECT
+# i.e. if a corresponding <app>_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}