Add a crude workaround for ports with flavors

This commit is contained in:
Poul-Henning Kamp 2017-12-29 15:38:43 +00:00
parent 294a9f4f9e
commit 5a57de683b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=327345

View File

@ -196,13 +196,20 @@ ports_recurse() (
echo "$t" >> /tmp/_.plist.tdone
for d
do
fl=""
if [ ! -d $d ] ; then
echo "Missing port $d ($t)" 1>&2
continue
fl=FLAVOR=`expr $d : '.*@\(.*\)'`
bd=`expr $d : '\(.*\)@.*'`
if [ ! -d $bd ] ; then
echo "Missing port $d ($t) (fl $fl) (bd $bd)" 1>&2
continue
fi
echo "Flavored port $d ($t) (fl $fl) (bd $bd)" 1>&2
d=$bd
fi
d=`cd /usr/ports && cd $d && /bin/pwd`
if [ ! -f $d/Makefile ] ; then
echo "Missing port $d" 1>&2
echo "Missing port (Makefile) $d" 1>&2
continue
fi
if [ "x$t" != "x." ] ; then
@ -216,7 +223,7 @@ ports_recurse() (
(
cd $d
l=""
for a in `ports_make -V _UNIFIED_DEPENDS`
for a in `ports_make -V _UNIFIED_DEPENDS $fl`
do
x=`expr "$a" : '.*:\(.*\)'`
l="${l} ${x}"