scripts/unpack: add general support for project based patches for every package, this patches must be put as *.patch files in 'projects/$PROJECT/patches/$PKG_NAME/'

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2012-12-27 10:40:15 +01:00
parent 0ef84cec42
commit 3fbcaec5d5

View File

@ -91,6 +91,20 @@ for i in $PKG_DIR/patches/$PKG_NAME-$PKG_VERSION*.patch ; do
fi
done
for i in $PROJECT_DIR/$PROJECT/patches/$PKG_NAME/*.patch ; do
if [ -f "$i" ]; then
PATCH=`basename $i`
PT=`echo $PATCH | sed 's/.*\.\(.*\)$/\1/'`
if [ "$PT" != "patch" -a "$PT" != "$TARGET_ARCH" ]; then
printf "%${BUILD_INDENT}c SKIP PROJECT PATCH: $i\n" ' '>&$SILENT_OUT
continue;
else
printf "%${BUILD_INDENT}c APPLY PROJECT PATCH: $i\n" ' '>&$SILENT_OUT
cat $i | patch -d `echo "$PKG_BUILD" | cut -f1 -d\ ` -p1 >&$VERBOSE_OUT
fi
fi
done
[ -f "$PKG_DIR/unpack" ] && $PKG_DIR/unpack $@ >&$VERBOSE_OUT
for config in `find $BUILD/$1* -name config.guess | sed 's/config.guess//'`; do