$(eval $(Package/Default))
$(eval $(Package/$(1)))
-# <HACK> Support obsolete DESCRIPTION field
+ifdef DESCRIPTION
+$$(error DESCRIPTION:= is obselete, use Package/PKG_NAME/description)
+endif
+
ifndef Package/$(1)/description
define Package/$(1)/description
-$(TITLE)$(subst \,
-,\ $(DESCRIPTION))
+ $(TITLE)
endef
endif
-# </HACK>
$(foreach FIELD, TITLE CATEGORY PRIORITY SECTION VERSION,
ifeq ($($(FIELD)),)
$(SED) "s,^libdir='/usr/lib',libdir='$(strip $(1))/usr/lib',g"
endef
+define pkg_install_files
+ $(foreach install_file,$(3),$(INSTALL_DIR) $(2)/`dirname $(install_file)`; $(CP) $(1)/$(install_file) $(2)/`dirname $(install_file)`;)
+endef
+
define Build/Prepare
$(call Build/Prepare/Default,)
endef