freewrt_1_0
freewrt_2_0
| Line | |
|---|
| 1 | # $FreeWRT$
|
|---|
| 2 |
|
|---|
| 3 | PKG_NAME:= sed
|
|---|
| 4 | PKG_VERSION:= 4.1.2
|
|---|
| 5 | PKG_RELEASE:= 1
|
|---|
| 6 | PKG_MD5SUM:= 928f0e06422f414091917401f1a834d0
|
|---|
| 7 | PKG_SOURCE_URL:= ftp://ftp.gnu.org/gnu/sed
|
|---|
| 8 |
|
|---|
| 9 | include $(TOPDIR)/rules.mk
|
|---|
| 10 | include ../rules.mk
|
|---|
| 11 |
|
|---|
| 12 | $(WRKBUILD)/.configured: ${WRKBUILD}/.prepared
|
|---|
| 13 | @mkdir -p $(STAGING_DIR)/bin
|
|---|
| 14 | (cd $(WRKBUILD); rm -rf config.cache; \
|
|---|
| 15 | ac_cv_header_wctype_h=no \
|
|---|
| 16 | ./configure \
|
|---|
| 17 | --disable-nls \
|
|---|
| 18 | --prefix=$(STAGING_DIR) \
|
|---|
| 19 | --prefix=/usr \
|
|---|
| 20 | );
|
|---|
| 21 | touch $@
|
|---|
| 22 |
|
|---|
| 23 | $(WRKBUILD)/sed/sed: $(WRKBUILD)/.configured
|
|---|
| 24 | $(MAKE) -C $(WRKBUILD)
|
|---|
| 25 |
|
|---|
| 26 | source:
|
|---|
| 27 | prepare: ${WRKBUILD}/.prepared
|
|---|
| 28 |
|
|---|
| 29 | compile: $(WRKBUILD)/sed/sed
|
|---|
| 30 |
|
|---|
| 31 | install: compile
|
|---|
| 32 | mkdir -p $(STAGING_DIR)/bin
|
|---|
| 33 | rm -f $(STAGING_DIR)/bin/sed ${TOPDIR}/lbin/sed
|
|---|
| 34 | install -c -s -m 555 ${WRKBUILD}/sed/sed $(STAGING_DIR)/bin/sed
|
|---|
| 35 | cp $(STAGING_DIR)/bin/sed ${TOPDIR}/lbin/sed
|
|---|
| 36 |
|
|---|
| 37 | install-lbin:
|
|---|
| 38 | rm -f ${TOPDIR}/lbin/sed
|
|---|
| 39 | if [ -e $(STAGING_DIR)/bin/sed ]; then \
|
|---|
| 40 | cp $(STAGING_DIR)/bin/sed ${TOPDIR}/lbin/sed; \
|
|---|
| 41 | else \
|
|---|
| 42 | rm -f $(TOOLS_STAMP_DIR)/.tools_sed-install; \
|
|---|
| 43 | fi
|
|---|
| 44 |
|
|---|
| 45 | clean:
|
|---|
| 46 | rm -rf $(WRKBUILD)
|
|---|
| 47 | rm -f $(STAGING_DIR)/bin/sed ${TOPDIR}/lbin/sed
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.