@ -39,6 +39,15 @@ include $(INCLUDE_DIR)/host.mk
i n c l u d e $( INCLUDE_DIR ) / u n p a c k . m k
i n c l u d e $( INCLUDE_DIR ) / u n p a c k . m k
i n c l u d e $( INCLUDE_DIR ) / d e p e n d s . m k
i n c l u d e $( INCLUDE_DIR ) / d e p e n d s . m k
find_library_dependencies = $( wildcard $( patsubst %,$( STAGING_DIR) /pkginfo/%.version, \
$( filter-out $( BUILD_PACKAGES) ,$( foreach dep, \
$( filter-out @%, $( patsubst +%,%,$( 1) ) ) , \
$( if $( findstring :,$( dep) ) , \
$( word 2,$( subst :,$( space) ,$( dep) ) ) , \
$( dep) \
) \
) ) ) )
STAMP_NO_AUTOREBUILD = $( wildcard $( PKG_BUILD_DIR) /.no_autorebuild)
STAMP_NO_AUTOREBUILD = $( wildcard $( PKG_BUILD_DIR) /.no_autorebuild)
PREV_STAMP_PREPARED := $( if $( STAMP_NO_AUTOREBUILD) ,$( wildcard $( PKG_BUILD_DIR) /.prepared*) )
PREV_STAMP_PREPARED := $( if $( STAMP_NO_AUTOREBUILD) ,$( wildcard $( PKG_BUILD_DIR) /.prepared*) )
i f n e q ( $( PREV_STAMP_PREPARED ) , )
i f n e q ( $( PREV_STAMP_PREPARED ) , )
@ -227,6 +236,9 @@ define Package/$(1)/description
e n d e f
e n d e f
e n d i f
e n d i f
BUILD_PACKAGES += $( 1)
$( STAMP_PREPARED) : $$ ( if $( QUILT) $( DUMP) ,,$( call find_library_dependencies,$( DEPENDS) ) )
$( foreach FIELD, TITLE CATEGORY SECTION VERSION,
$( foreach FIELD, TITLE CATEGORY SECTION VERSION,
ifeq ( $( $( FIELD) ) ,)
ifeq ( $( $( FIELD) ) ,)
$$ ( error Package/$( 1) is missing the $( FIELD) field)
$$ ( error Package/$( 1) is missing the $( FIELD) field)