Changeset 857


Ignore:
Timestamp:
2005-05-12T22:04:46+02:00 (13 years ago)
Author:
nbd
Message:

update fprobe to new packaging style

Location:
trunk/openwrt/package/fprobe
Files:
2 added
1 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/openwrt/package/fprobe/Makefile

    r773 r857  
    88PKG_MD5SUM := 65850d0470078269b33eee58cba77ac2 
    99 
    10 PKG_SOURCE_SITE := @SF/fprobe 
    11 PKG_SOURCE_FILE := $(PKG_NAME)-$(PKG_VERSION).tar.bz2 
    12 PKG_SOURCE_DIR := $(PKG_NAME)-$(PKG_VERSION) 
    13 PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_SOURCE_DIR) 
    14 PKG_IPK := $(PACKAGE_DIR)/$(PKG_NAME)_$(PKG_VERSION)-$(PKG_RELEASE)_$(ARCH).ipk 
     10PKG_SOURCE := $(PKG_NAME)-$(PKG_VERSION).tar.bz2 
     11PKG_SOURCE_URL := @SF/fprobe 
     12PKG_BUILD_DIR := $(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) 
    1513PKG_CAT := bzcat 
    16 PKG_IPK_DIR := $(PKG_BUILD_DIR)/ipkg 
    1714 
    18 $(DL_DIR)/$(PKG_SOURCE_FILE): 
    19         $(SCRIPT_DIR)/download.pl $(DL_DIR) $(PKG_SOURCE_FILE) $(PKG_MD5SUM) $(PKG_SOURCE_SITE) 
     15include $(TOPDIR)/package/rules.mk 
    2016 
    21 $(PKG_BUILD_DIR)/.prepared: $(DL_DIR)/$(PKG_SOURCE_FILE) 
    22         $(PKG_CAT) $(DL_DIR)/$(PKG_SOURCE_FILE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) - 
    23         touch $(PKG_BUILD_DIR)/.prepared 
     17$(eval $(call PKG_template,FPROBE,$(PKG_NAME),$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH))) 
    2418 
    25 $(PKG_BUILD_DIR)/.configured: $(PKG_BUILD_DIR)/.prepared 
     19$(PKG_BUILD_DIR)/.configured: 
    2620        (cd $(PKG_BUILD_DIR) ; \ 
    2721                $(TARGET_CONFIGURE_OPTS) \ 
     
    4842                        $(DISABLE_NLS) \ 
    4943        ) 
    50         touch $(PKG_BUILD_DIR)/.configured 
     44        touch $@ 
    5145 
    52 $(PKG_BUILD_DIR)/$(PKG_NAME): $(PKG_BUILD_DIR)/.configured 
     46$(PKG_BUILD_DIR)/.built: 
    5347        $(MAKE) -C $(PKG_BUILD_DIR) 
     48        touch $@ 
    5449 
    55 $(PKG_IPK): $(PKG_BUILD_DIR)/$(PKG_NAME) 
    56         $(SCRIPT_DIR)/make-ipkg-dir.sh $(PKG_IPK_DIR) $(PKG_NAME).control $(PKG_VERSION)-$(PKG_RELEASE) $(ARCH) 
    57         mkdir -p $(PKG_IPK_DIR)/usr/bin 
    58         cp $(PKG_BUILD_DIR)/src/fprobe $(PKG_IPK_DIR)/usr/bin/ 
    59         $(STRIP) $(PKG_IPK_DIR)/usr/bin/* 
    60         mkdir -p $(PACKAGE_DIR) 
    61         $(IPKG_BUILD) $(PKG_IPK_DIR) $(PACKAGE_DIR) 
    62  
    63 $(IPKG_STATE_DIR)/info/tinc.list: $(PKG_IPK) 
    64         $(IPKG) install $(PKG_IPK) 
    65  
    66 source: $(DL_DIR)/$(PKG_SOURCE) 
    67 prepare: $(PKG_BUILD_DIR)/.prepared 
    68 compile: $(PKG_IPK) 
    69 install: $(IPKG_STATE_DIR)/info/fprobe.list 
    70  
    71 clean:   
    72         rm -rf $(PKG_BUILD_DIR) 
    73         rm -f $(PKG_IPK) 
     50$(IPKG_FPROBE):  
     51        mkdir -p $(IDIR_FPROBE)/usr/bin 
     52        cp $(PKG_BUILD_DIR)/src/fprobe $(IDIR_FPROBE)/usr/bin/ 
     53        $(STRIP) $(IDIR_FPROBE)/usr/bin/* 
     54        $(IPKG_BUILD) $(IDIR_FPROBE) $(PACKAGE_DIR) 
Note: See TracChangeset for help on using the changeset viewer.