From: Tim Yardley Date: Fri, 13 Jul 2007 14:12:55 +0000 (+0000) Subject: make it so you can install 'file' itself rather than just the library X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=commitdiff_plain;h=d59ca57ae669a76e62c67216910b0f8af0c7cd5c make it so you can install 'file' itself rather than just the library SVN-Revision: 7968 --- 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))