$(call PKG_INIT_LIB, 2.1.0) $(PKG)_LIB_VERSION:=2.0.1 $(PKG)_SOURCE:=$(pkg)-$($(PKG)_VERSION).tar.gz $(PKG)_SITE:=http://prdownloads.sourceforge.net/linux-diag $(PKG)_BINARY:=$($(PKG)_DIR)/lib/.libs/libsysfs.so.$($(PKG)_LIB_VERSION) $(PKG)_STAGING_BINARY:=$(TARGET_TOOLCHAIN_STAGING_DIR)/usr/lib/libsysfs.so.$($(PKG)_LIB_VERSION) $(PKG)_TARGET_BINARY:=$($(PKG)_TARGET_DIR)/libsysfs.so.$($(PKG)_LIB_VERSION) $(PKG)_CONFIGURE_OPTIONS += --enable-shared $(PKG)_CONFIGURE_OPTIONS += --enable-static $(PKG_SOURCE_DOWNLOAD) $(PKG_UNPACKED) $(PKG_CONFIGURED_CONFIGURE) $($(PKG)_BINARY): $($(PKG)_DIR)/.configured PATH=$(TARGET_TOOLCHAIN_PATH) \ $(MAKE) -C $(SYSFSUTILS_DIR) $($(PKG)_STAGING_BINARY): $($(PKG)_BINARY) PATH=$(TARGET_TOOLCHAIN_PATH) $(MAKE) \ DESTDIR="$(TARGET_TOOLCHAIN_STAGING_DIR)" \ -C $(SYSFSUTILS_DIR) install $(PKG_FIX_LIBTOOL_LA) \ $(TARGET_TOOLCHAIN_STAGING_DIR)/lib/libsysfs.la $($(PKG)_TARGET_BINARY): $($(PKG)_STAGING_BINARY) cp -a $(TARGET_TOOLCHAIN_STAGING_DIR)/usr/lib/libsysfs*.so* $(SYSFSUTILS_TARGET_DIR)/ $(TARGET_STRIP) $@ $(pkg): $($(PKG)_STAGING_BINARY) $(pkg)-precompiled: $($(PKG)_TARGET_BINARY) $(pkg)-clean: -$(MAKE) -C $(SYSFSUTILS_DIR) clean rm -rf $(TARGET_TOOLCHAIN_STAGING_DIR)/usr/lib/libsysfs.* \ $(TARGET_TOOLCHAIN_STAGING_DIR)/usr/include/sysfs $(pkg)-uninstall: rm -f $(SYSFSUTILS_TARGET_DIR)/libsysfs*.so* $(PKG_FINISH)