Changeset 10309
- Timestamp:
- 06/15/09 14:52:06 (1 year ago)
- Files:
-
- trunk/make/nanoblogger.mk (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/make/nanoblogger.mk
r5411 r10309 22 22 # 23 23 NANOBLOGGER_SITE=http://$(SOURCEFORGE_MIRROR)/sourceforge/nanoblogger 24 NANOBLOGGER_VERSION=3. 324 NANOBLOGGER_VERSION=3.4 25 25 NANOBLOGGER_SOURCE=nanoblogger-$(NANOBLOGGER_VERSION).tar.gz 26 26 NANOBLOGGER_DIR=nanoblogger-$(NANOBLOGGER_VERSION) … … 37 37 # NANOBLOGGER_IPK_VERSION should be incremented when the ipk changes. 38 38 # 39 NANOBLOGGER_IPK_VERSION= 339 NANOBLOGGER_IPK_VERSION=1 40 40 41 41 # … … 77 77 # 78 78 $(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) 80 81 81 82 # … … 106 107 $(NANOBLOGGER_BUILD_DIR)/.configured: $(DL_DIR)/$(NANOBLOGGER_SOURCE) $(NANOBLOGGER_PATCHES) make/nanoblogger.mk 107 108 # $(MAKE) <bar>-stage <baz>-stage 108 rm -rf $(BUILD_DIR)/$(NANOBLOGGER_DIR) $( NANOBLOGGER_BUILD_DIR)109 rm -rf $(BUILD_DIR)/$(NANOBLOGGER_DIR) $(@D) 109 110 $(NANOBLOGGER_UNZIP) $(DL_DIR)/$(NANOBLOGGER_SOURCE) | tar -C $(BUILD_DIR) -xvf - 110 111 if test -n "$(NANOBLOGGER_PATCHES)" ; \ … … 112 113 patch -d $(BUILD_DIR)/$(NANOBLOGGER_DIR) -p0 ; \ 113 114 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) ; \ 116 117 fi 117 118 sed -i -e 's|/bin/bash|/opt/bin/bash|' \ 118 119 -e '/^NB_BASE_DIR=/s|.*|NB_BASE_DIR=/opt/share/nanoblogger|' \ 119 120 -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 $@ 124 124 125 125 nanoblogger-unpack: $(NANOBLOGGER_BUILD_DIR)/.configured … … 129 129 # 130 130 $(NANOBLOGGER_BUILD_DIR)/.built: $(NANOBLOGGER_BUILD_DIR)/.configured 131 rm -f $ (NANOBLOGGER_BUILD_DIR)/.built132 # $(MAKE) -C $( NANOBLOGGER_BUILD_DIR)133 touch $ (NANOBLOGGER_BUILD_DIR)/.built131 rm -f $@ 132 # $(MAKE) -C $(@D) 133 touch $@ 134 134 135 135 # … … 142 142 # 143 143 $(NANOBLOGGER_BUILD_DIR)/.staged: $(NANOBLOGGER_BUILD_DIR)/.built 144 rm -f $ (NANOBLOGGER_BUILD_DIR)/.staged145 # $(MAKE) -C $( NANOBLOGGER_BUILD_DIR) DESTDIR=$(STAGING_DIR) install146 touch $ (NANOBLOGGER_BUILD_DIR)/.staged144 rm -f $@ 145 # $(MAKE) -C $(@D) DESTDIR=$(STAGING_DIR) install 146 touch $@ 147 147 148 148 nanoblogger-stage: $(NANOBLOGGER_BUILD_DIR)/.staged … … 226 226 # 227 227 nanoblogger-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) $^
