Changeset 845


Ignore:
Timestamp:
2005-05-12T21:14:25+02:00 (13 years ago)
Author:
nbd
Message:

convert bwm to new packaging style

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

Legend:

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

    r562 r845  
    1010PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION).orig 
    1111PKG_CAT:=zcat 
    12 PKG_IPK:=$(PACKAGE_DIR)/$(PKG_NAME)_$(PKG_VERSION)-$(PKG_RELEASE)_$(ARCH).ipk 
    13 PKG_IPK_DIR:=$(PKG_BUILD_DIR)/ipkg 
    1412 
    15 $(DL_DIR)/$(PKG_SOURCE): 
    16         $(SCRIPT_DIR)/download.pl $(DL_DIR) $(PKG_SOURCE) $(PKG_MD5SUM) $(PKG_SOURCE_URL) 
     13include $(TOPDIR)/package/rules.mk 
    1714 
    18 $(PKG_BUILD_DIR)/.unpacked: $(DL_DIR)/$(PKG_SOURCE) 
    19         $(PKG_CAT) $(DL_DIR)/$(PKG_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) - 
    20         touch $(PKG_BUILD_DIR)/.unpacked 
     15$(eval $(call PKG_template,BWM,$(PKG_NAME),$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH))) 
    2116 
    22 $(PKG_BUILD_DIR)/$(PKG_NAME): $(PKG_BUILD_DIR)/.unpacked 
     17$(PKG_BUILD_DIR)/.built: 
    2318        $(TARGET_CC) $(TARGET_CFLAGS) $(PKG_BUILD_DIR)/bwm.c -o $(PKG_BUILD_DIR)/bwm 
     19        touch $@ 
    2420 
    25 $(PKG_IPK): $(PKG_BUILD_DIR)/$(PKG_NAME) 
    26         $(SCRIPT_DIR)/make-ipkg-dir.sh $(PKG_IPK_DIR) $(PKG_NAME).control $(PKG_VERSION)-$(PKG_RELEASE) $(ARCH) 
    27         mkdir -p $(PKG_IPK_DIR)/usr/bin 
    28         install -m 755 $(PKG_BUILD_DIR)/$(PKG_NAME) $(PKG_IPK_DIR)/usr/bin/ 
    29         $(STRIP) $(PKG_IPK_DIR)/usr/bin/* 
    30         mkdir -p $(PACKAGE_DIR) 
    31         $(IPKG_BUILD) $(PKG_IPK_DIR) $(PACKAGE_DIR) 
     21$(IPKG_BWM): 
     22        mkdir -p $(IDIR_BWM)/usr/bin 
     23        install -m 755 $(PKG_BUILD_DIR)/$(PKG_NAME) $(IDIR_BWM)/usr/bin/ 
     24        $(STRIP) $(IDIR_BWM)/usr/bin/* 
     25        $(IPKG_BUILD) $(IDIR_BWM) $(PACKAGE_DIR) 
    3226 
    33 $(IPKG_STATE_DIR)/info/$(PKG_NAME).list: $(PKG_IPK) 
    34         $(IPKG) install $(PKG_IPK) 
    35  
    36 source: $(DL_DIR)/$(PKG_SOURCE) 
    37 prepare: $(PKG_BUILD_DIR)/.unpacked 
    38 compile: $(PKG_IPK) 
    39 install: $(IPKG_STATE_DIR)/info/$(PKG_NAME).list 
    40  
    41 clean: 
    42         rm -rf $(PKG_BUILD_DIR) 
    43         rm -f $(PKG_IPK) 
Note: See TracChangeset for help on using the changeset viewer.