Changeset 879


Ignore:
Timestamp:
2005-05-13T08:00:47+02:00 (13 years ago)
Author:
nico
Message:

Convert libpthread to new packaging style

File:
1 edited

Legend:

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

    r665 r879  
    88 
    99PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) 
     10PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install 
    1011 
    11 IPKG_LIBPTHREAD:=$(PACKAGE_DIR)/$(PKG_NAME)_$(PKG_VERSION)-$(PKG_RELEASE)_$(ARCH).ipk 
    12 IDIR_LIBPTHREAD:=$(PKG_BUILD_DIR)/ipkg/$(PKG_NAME) 
    13 INFO_LIBPTHREAD:=$(IPKG_STATE_DIR)/info/$(PKG_NAME).list 
     12include $(TOPDIR)/package/rules.mk 
     13 
     14$(eval $(call PKG_template,LIBPTHREAD,libpthread,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH))) 
    1415 
    1516.NOTPARALLEL: 
    1617 
    17 $(IPKG_LIBPTHREAD): $(STAGING_DIR)/lib/libpthread.so 
    18         rm -rf $(PKG_BUILD_DIR) 
    19         $(SCRIPT_DIR)/make-ipkg-dir.sh $(IDIR_LIBPTHREAD) ./ipkg/$(PKG_NAME).control $(PKG_VERSION)-$(PKG_RELEASE) $(ARCH) 
     18$(PKG_BUILD_DIR)/.prepared: 
     19        mkdir -p $(PKG_BUILD_DIR) 
     20        touch $(PKG_BUILD_DIR)/.prepared 
     21 
     22$(PKG_BUILD_DIR)/.configured: $(PKG_BUILD_DIR)/.prepared 
     23        touch $(PKG_BUILD_DIR)/.configured 
     24 
     25$(PKG_BUILD_DIR)/.built: $(PKG_BUILD_DIR)/.configured 
     26        touch $(PKG_BUILD_DIR)/.built 
     27 
     28$(IPKG_LIBPTHREAD): 
    2029        mkdir -p $(IDIR_LIBPTHREAD)/lib 
    2130        cp -fpR $(STAGING_DIR)/lib/libpthread.so.* $(IDIR_LIBPTHREAD)/lib/ 
    2231        cp -fpR $(STAGING_DIR)/lib/libpthread-*.so $(IDIR_LIBPTHREAD)/lib/ 
    23         $(STRIP) $(IDIR_LIBPTHREAD)/lib/lib*.so* 
    24         mkdir -p $(PACKAGE_DIR) 
     32        $(RSTRIP) $(IDIR_LIBPTHREAD) 
    2533        $(IPKG_BUILD) $(IDIR_LIBPTHREAD) $(PACKAGE_DIR) 
    2634 
    27 $(IPKG_STATE_DIR)/info/$(PKG_NAME).list: $(IPKG_LIBPTHREAD) 
    28         $(IPKG) install $(IPKG_LIBPTHREAD) 
    29  
    30 source: 
    31 prepare: 
    32 compile: $(IPKG_LIBPTHREAD) 
    33 install: $(INFO_LIBPTHREAD) 
    34  
    35 clean: 
    36         rm -rf $(PKG_BUILD_DIR) $(IPKG_LIBPTHREAD) 
Note: See TracChangeset for help on using the changeset viewer.