make it so you can install 'file' itself rather than just the library
git-svn-id: svn://svn.openwrt.org/openwrt/packages@7968 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
3974ccff02
commit
fa20e8deb3
@ -30,6 +30,14 @@ define Package/libmagic
|
|||||||
URL:=ftp://ftp.astron.com/pub/file/
|
URL:=ftp://ftp.astron.com/pub/file/
|
||||||
endef
|
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
|
define Build/Configure
|
||||||
$(call Build/Configure/Default, \
|
$(call Build/Configure/Default, \
|
||||||
--enable-shared \
|
--enable-shared \
|
||||||
@ -64,4 +72,14 @@ define Package/libmagic/install
|
|||||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libmagic.so.* $(1)/usr/lib/
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libmagic.so.* $(1)/usr/lib/
|
||||||
endef
|
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,libmagic))
|
||||||
|
$(eval $(call BuildPackage,file))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user