From d59ca57ae669a76e62c67216910b0f8af0c7cd5c Mon Sep 17 00:00:00 2001 From: Tim Yardley Date: Fri, 13 Jul 2007 14:12:55 +0000 Subject: [PATCH] make it so you can install 'file' itself rather than just the library SVN-Revision: 7968 --- libs/file/Makefile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/libs/file/Makefile b/libs/file/Makefile index dfa2ad84bd..230ecc4a12 100644 --- a/libs/file/Makefile +++ b/libs/file/Makefile @@ -30,6 +30,14 @@ define Package/libmagic URL:=ftp://ftp.astron.com/pub/file/ endef +define Package/file + SECTION:=utils + CATEGORY:=Utilities + DEPENDS:=+libmagic + TITLE:=File type determination library + URL:=ftp://ftp.astron.com/pub/file/ +endef + define Build/Configure $(call Build/Configure/Default, \ --enable-shared \ @@ -64,4 +72,14 @@ define Package/libmagic/install $(CP) $(PKG_INSTALL_DIR)/usr/lib/libmagic.so.* $(1)/usr/lib/ endef +define Package/file/install + $(INSTALL_DIR) $(1)/usr/bin + $(INSTALL_DIR) $(1)/usr/share/file + $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/file \ + $(1)/usr/bin + $(INSTALL_DATA) $(PKG_BUILD_DIR)/magic/Magdir/linux \ + $(1)/usr/share/file/magic +endef + $(eval $(call BuildPackage,libmagic)) +$(eval $(call BuildPackage,file)) -- 2.30.2