Changeset 833


Ignore:
Timestamp:
2005-05-12T19:59:38+02:00 (13 years ago)
Author:
nbd
Message:

convert strace over to new packaging style

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

Legend:

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

    r645 r833  
    1414PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) 
    1515 
    16 IPKG_STRACE:=$(PACKAGE_DIR)/$(PKG_NAME)_$(PKG_VERSION)-$(PKG_RELEASE)_$(ARCH).ipk 
    17 IDIR_STRACE:=$(PKG_BUILD_DIR)/ipkg/$(PKG_NAME) 
    18 INFO_STRACE:=$(IPKG_STATE_DIR)/info/$(PKG_NAME).list 
     16include $(TOPDIR)/package/rules.mk 
    1917 
    20 $(DL_DIR)/$(PKG_SOURCE): 
    21         $(SCRIPT_DIR)/download.pl $(DL_DIR) $(PKG_SOURCE) $(PKG_MD5SUM) $(PKG_SOURCE_URL) 
     18$(eval $(call PKG_template,STRACE,strace,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH))) 
    2219 
    23 $(PKG_BUILD_DIR)/.prepared: $(DL_DIR)/$(PKG_SOURCE) 
    24         $(PKG_CAT) $(DL_DIR)/$(PKG_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) - 
    25         touch $(PKG_BUILD_DIR)/.prepared 
    26  
    27 $(PKG_BUILD_DIR)/.configured: $(PKG_BUILD_DIR)/.prepared 
     20$(PKG_BUILD_DIR)/.configured: 
    2821        (cd $(PKG_BUILD_DIR); rm -rf config.cache; \ 
    2922                $(TARGET_CONFIGURE_OPTS) \ 
     
    5447        touch $(PKG_BUILD_DIR)/.configured 
    5548 
    56 $(PKG_BUILD_DIR)/$(PKG_NAME): $(PKG_BUILD_DIR)/.configured 
     49$(PKG_BUILD_DIR)/.built: 
    5750        $(MAKE) -C $(PKG_BUILD_DIR) \ 
    5851                CC=$(TARGET_CC) 
     52        touch $@ 
    5953 
    60 $(IPKG_STRACE): $(PKG_BUILD_DIR)/$(PKG_NAME) 
    61         $(SCRIPT_DIR)/make-ipkg-dir.sh $(IDIR_STRACE) $(PKG_NAME).control $(PKG_VERSION)-$(PKG_RELEASE) $(ARCH) 
     54$(IPKG_STRACE):  
    6255        mkdir -p $(IDIR_STRACE)/usr/sbin 
    6356        cp $(PKG_BUILD_DIR)/$(PKG_NAME) $(IDIR_STRACE)/usr/sbin/ 
    6457        $(STRIP) $(IDIR_STRACE)/usr/sbin/* 
    65         mkdir -p $(PACKAGE_DIR) 
    6658        $(IPKG_BUILD) $(IDIR_STRACE) $(PACKAGE_DIR) 
    67  
    68 $(INFO_STRACE): $(IPKG_STRACE) 
    69         $(IPKG) install $(IPKG_STRACE) 
    70  
    71 source: $(DL_DIR)/$(PKG_SOURCE) 
    72 prepare: $(PKG_BUILD_DIR)/.prepared 
    73 compile: $(IPKG_STRACE) 
    74 install: $(INFO_STRACE) 
    75  
    76 clean: 
    77         rm -rf $(PKG_BUILD_DIR) $(IPKG_STRACE) 
Note: See TracChangeset for help on using the changeset viewer.