summaryrefslogtreecommitdiff
path: root/package/pkgmaker
diff options
context:
space:
mode:
authorThorsten Glaser <tg@mirbsd.org>2009-12-20 00:53:52 +0059
committerWaldemar Brodkorb <wbx@openadk.org>2009-12-20 10:35:07 +0100
commit39d2849441575a8cc683c215ab32f93eccfd79ab (patch)
tree2f44120c70cfb9efb7d96032f0fbf91fb4e19dc0 /package/pkgmaker
parenta533b462aa15737edc04985150280b5775cb46df (diff)
automatic handling of CFrustFrust packages
Signed-off-by: Thorsten Glaser <tg@mirbsd.org>
Diffstat (limited to 'package/pkgmaker')
-rw-r--r--package/pkgmaker22
1 files changed, 22 insertions, 0 deletions
diff --git a/package/pkgmaker b/package/pkgmaker
index d4a77b9e7..8b2419634 100644
--- a/package/pkgmaker
+++ b/package/pkgmaker
@@ -32,6 +32,7 @@ for sd in */Makefile; do
dnu=${dnu//+/X}
pd=$($GMAKE show=PKG_DESCR) # pd: package description
ph=$($GMAKE show=PKG_URL) # ph: package homepage
+ usecxx=$($GMAKE show=PKG_CXX)
(
print "config ADK_COMPILE_$dnu"
@@ -57,6 +58,8 @@ for sd in */Makefile; do
print \\tdefault n
deps=$($GMAKE show=PKGDEPS_$xu)
for dep in $deps; do
+ [[ -n $usecxx && $dep = @(uclibc++|libstdcxx) ]] && \
+ continue
case $dep {
(kmod-*)
typeset -u udep=${dep//-/_}
@@ -77,6 +80,25 @@ for sd in */Makefile; do
fi
done
+ [[ -n $usecxx ]] && cat <<EOF
+
+choice
+prompt "C++ library to use"
+depends on ADK_COMPILE_$dnu
+default ADK_COMPILE_${usecxx}_WITH_STDCXX if ADK_TARGET_LIB_GLIBC || ADK_TARGET_LIB_EGLIBC
+default ADK_COMPILE_${usecxx}_WITH_UCLIBCXX if ADK_TARGET_LIB_UCLIBC
+
+config ADK_COMPILE_${usecxx}_WITH_STDCXX
+ bool "GNU C++ library"
+ select ADK_PACKAGE_LIBSTDCXX
+
+config ADK_COMPILE_${usecxx}_WITH_UCLIBCXX
+ bool "uClibc++ library"
+ select ADK_PACKAGE_UCLIBCXX
+
+endchoice
+EOF
+
for pf in $pfl; do # pf: package flavour
pfd=$($GMAKE show=PKGFD_$pf)
print