ddrescue is not an autotools package. Convert to generic package to make
it build correctly for target architecture.
Cc: Peter Seiderer <ps.report@gmx.net>
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
tar --strip-components=1 -C $(@D) $(TAR_OPTIONS) -
endef
-$(eval $(autotools-package))
+define DDRESCUE_CONFIGURE_CMDS
+ (cd $(@D); \
+ $(TARGET_MAKE_ENV) ./configure \
+ --prefix=/usr \
+ $(TARGET_CONFIGURE_OPTS) \
+ )
+endef
+
+define DDRESCUE_BUILD_CMDS
+ $(TARGET_MAKE_ENV) $(MAKE) -C $(@D)
+endef
+
+define DDRESCUE_INSTALL_TARGET_CMDS
+ $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR="$(TARGET_DIR)" install
+endef
+
+$(eval $(generic-package))