Changeset 10309

Show
Ignore:
Timestamp:
06/15/09 14:52:06 (1 year ago)
Author:
bzhou
Message:

nanoblogger: 3.3 -> 3.4

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/make/nanoblogger.mk

    r5411 r10309  
    2222# 
    2323NANOBLOGGER_SITE=http://$(SOURCEFORGE_MIRROR)/sourceforge/nanoblogger 
    24 NANOBLOGGER_VERSION=3.3 
     24NANOBLOGGER_VERSION=3.4 
    2525NANOBLOGGER_SOURCE=nanoblogger-$(NANOBLOGGER_VERSION).tar.gz 
    2626NANOBLOGGER_DIR=nanoblogger-$(NANOBLOGGER_VERSION) 
     
    3737# NANOBLOGGER_IPK_VERSION should be incremented when the ipk changes. 
    3838# 
    39 NANOBLOGGER_IPK_VERSION=3 
     39NANOBLOGGER_IPK_VERSION=1 
    4040 
    4141# 
     
    7777# 
    7878$(DL_DIR)/$(NANOBLOGGER_SOURCE): 
    79         $(WGET) -P $(DL_DIR) $(NANOBLOGGER_SITE)/$(NANOBLOGGER_SOURCE) 
     79        $(WGET) -P $(@D) $(NANOBLOGGER_SITE)/$(@F) || \ 
     80        $(WGET) -P $(@D) $(SOURCES_NLO_SITE)/$(@F) 
    8081 
    8182# 
     
    106107$(NANOBLOGGER_BUILD_DIR)/.configured: $(DL_DIR)/$(NANOBLOGGER_SOURCE) $(NANOBLOGGER_PATCHES) make/nanoblogger.mk 
    107108#       $(MAKE) <bar>-stage <baz>-stage 
    108         rm -rf $(BUILD_DIR)/$(NANOBLOGGER_DIR) $(NANOBLOGGER_BUILD_DIR
     109        rm -rf $(BUILD_DIR)/$(NANOBLOGGER_DIR) $(@D
    109110        $(NANOBLOGGER_UNZIP) $(DL_DIR)/$(NANOBLOGGER_SOURCE) | tar -C $(BUILD_DIR) -xvf - 
    110111        if test -n "$(NANOBLOGGER_PATCHES)" ; \ 
     
    112113                patch -d $(BUILD_DIR)/$(NANOBLOGGER_DIR) -p0 ; \ 
    113114        fi 
    114         if test "$(BUILD_DIR)/$(NANOBLOGGER_DIR)" != "$(NANOBLOGGER_BUILD_DIR)" ; \ 
    115                 then mv $(BUILD_DIR)/$(NANOBLOGGER_DIR) $(NANOBLOGGER_BUILD_DIR) ; \ 
     115        if test "$(BUILD_DIR)/$(NANOBLOGGER_DIR)" != "$(@D)" ; \ 
     116                then mv $(BUILD_DIR)/$(NANOBLOGGER_DIR) $(@D) ; \ 
    116117        fi 
    117118        sed -i -e 's|/bin/bash|/opt/bin/bash|' \ 
    118119                -e '/^NB_BASE_DIR=/s|.*|NB_BASE_DIR=/opt/share/nanoblogger|' \ 
    119120                -e '/^NB_CFG_DIR=/s|.*|NB_CFG_DIR=/opt/etc|' \ 
    120                 $(NANOBLOGGER_BUILD_DIR)/nb 
    121         sed -i -e '/BLOG_DIR/s|.*|BLOG_DIR=/opt/share/www|' \ 
    122                 $(NANOBLOGGER_BUILD_DIR)/nb.conf 
    123         touch $(NANOBLOGGER_BUILD_DIR)/.configured 
     121                $(@D)/nb 
     122        sed -i -e '/BLOG_DIR/s|.*|BLOG_DIR=/opt/share/www|' $(@D)/nb.conf 
     123        touch $@ 
    124124 
    125125nanoblogger-unpack: $(NANOBLOGGER_BUILD_DIR)/.configured 
     
    129129# 
    130130$(NANOBLOGGER_BUILD_DIR)/.built: $(NANOBLOGGER_BUILD_DIR)/.configured 
    131         rm -f $(NANOBLOGGER_BUILD_DIR)/.built 
    132 #       $(MAKE) -C $(NANOBLOGGER_BUILD_DIR
    133         touch $(NANOBLOGGER_BUILD_DIR)/.built 
     131        rm -f $@ 
     132#       $(MAKE) -C $(@D
     133        touch $@ 
    134134 
    135135# 
     
    142142# 
    143143$(NANOBLOGGER_BUILD_DIR)/.staged: $(NANOBLOGGER_BUILD_DIR)/.built 
    144         rm -f $(NANOBLOGGER_BUILD_DIR)/.staged 
    145 #       $(MAKE) -C $(NANOBLOGGER_BUILD_DIR) DESTDIR=$(STAGING_DIR) install 
    146         touch $(NANOBLOGGER_BUILD_DIR)/.staged 
     144        rm -f $@ 
     145#       $(MAKE) -C $(@D) DESTDIR=$(STAGING_DIR) install 
     146        touch $@ 
    147147 
    148148nanoblogger-stage: $(NANOBLOGGER_BUILD_DIR)/.staged 
     
    226226# 
    227227nanoblogger-check: $(NANOBLOGGER_IPK) 
    228         perl scripts/optware-check-package.pl --target=$(OPTWARE_TARGET) $(NANOBLOGGER_IPK) 
     228        perl scripts/optware-check-package.pl --target=$(OPTWARE_TARGET) $^