Changeset 8830


Ignore:
Timestamp:
2007-09-18T11:09:31+02:00 (10 years ago)
Author:
olli
Message:

file:

  • Package magic.mime (required by the GMediaServer)
  • Cleanup Makefile
File:
1 edited

Legend:

Unmodified
Added
Removed
  • packages/libs/file/Makefile

    • Property copyright changed from Copyright (C) 2006 OpenWrt.org to Copyright (C) 2007 OpenWrt.org
    r7968 r8830  
    11#  
    2 # Copyright (C) 2006 OpenWrt.org 
     2# Copyright (C) 2007 OpenWrt.org 
    33# 
    44# This is free software, licensed under the GNU General Public License v2. 
     
    1616PKG_SOURCE_URL:=ftp://ftp.astron.com/pub/file/ 
    1717PKG_MD5SUM:=a61ef3aa8339d5987148089afde25f60 
    18 PKG_CAT:=zcat 
    19  
    20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) 
    21 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install 
    2218 
    2319include $(INCLUDE_DIR)/package.mk 
     
    2723  CATEGORY:=Libraries 
    2824  DEPENDS:=+zlib 
    29   TITLE:=File type determination library 
     25  TITLE:=Determines file type using "magic" numbers 
    3026  URL:=ftp://ftp.astron.com/pub/file/ 
    3127endef 
     
    3531  CATEGORY:=Utilities 
    3632  DEPENDS:=+libmagic 
    37   TITLE:=File type determination library 
     33  TITLE:=Determines file type using "magic" numbers 
    3834  URL:=ftp://ftp.astron.com/pub/file/ 
    3935endef 
    4036 
    41 define Build/Configure 
    42         $(call Build/Configure/Default, \ 
    43                 --enable-shared \ 
    44                 --enable-static \ 
    45                 --disable-rpath \ 
    46                 --without-libiconv-prefix \ 
    47                 --without-libintl-prefix \ 
    48         ) 
     37define Package/file/description 
     38 File tests each argument in an attempt to classify it. There 
     39 are three sets of tests, performed in this order: filesystem 
     40 tests, magic number tests, and language tests. The first test 
     41 that succeeds causes the file type to be printed. 
     42 
     43 Starting with version 4, the file command is not much more than 
     44 a wrapper around the "magic" library.  
    4945endef 
    5046 
    51 define Build/Compile 
    52         $(MAKE) -C $(PKG_BUILD_DIR)/src \ 
    53                 DESTDIR="$(PKG_INSTALL_DIR)" \ 
    54                 all install 
    55 endef 
     47CONFIGURE_ARGS += \ 
     48        --enable-shared \ 
     49        --enable-static \ 
     50        --disable-rpath \ 
     51        --without-libiconv-prefix \ 
     52        --without-libintl-prefix \ 
     53 
     54MAKE_FLAGS += \ 
     55        DESTDIR="$(PKG_INSTALL_DIR)" \ 
     56        all install \ 
    5657 
    5758define Build/InstallDev 
     
    7677        $(INSTALL_DIR) $(1)/usr/bin 
    7778        $(INSTALL_DIR) $(1)/usr/share/file 
    78         $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/file \ 
    79                 $(1)/usr/bin 
    80         $(INSTALL_DATA) $(PKG_BUILD_DIR)/magic/Magdir/linux \ 
    81                 $(1)/usr/share/file/magic 
     79        $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/file $(1)/usr/bin 
     80        $(INSTALL_DATA) $(PKG_BUILD_DIR)/magic/Magdir/linux $(1)/usr/share/file/magic 
     81        $(INSTALL_DATA) $(PKG_BUILD_DIR)/magic/magic.mime $(1)/usr/share/file/magic.mime 
    8282endef 
    8383 
Note: See TracChangeset for help on using the changeset viewer.