Changeset 9d1f6cc in freewrt for rules.mk


Ignore:
Timestamp:
Jul 16, 2006, 4:53:28 PM (19 years ago)
Author:
Thorsten Glaser <tg@…>
Branches:
freewrt_1_0, freewrt_2_0
Children:
807b7c3
Parents:
73d260e
Message:
  • new variables WRKDIR, DISTFILES (similar to MirPorts Framework) default to ${PKG_BUILD_DIR} and ${DL_DIR}/${PKG_SOURCE}, respectively, for the package/ case (more to come)
  • instead of PKG_CAT and friends use an EXTRACT_CMD similar to the EXTRACT_CASES variable of MirPorts, only simpler

not tested yet, will do that ASAP

ok wbx@

git-svn-id: svn://www.freewrt.org/trunk/freewrt@200 afb5a338-a214-0410-bd46-81f09a774fd1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • rules.mk

    r73d260e r9d1f6cc  
    134134
    135135export UNAME_S UNAME_R UNAME_M
     136
     137EXTRACT_CMD=    mkdir -p ${WRKDIR}; \
     138                cd ${WRKDIR} && \
     139                for file in ${DISTFILES}; do \
     140                        case $$file in \
     141                        *.zip)  unzip $$file ;; \
     142                        *.cpio) cpio -mid <$$file ;; \
     143                        *.tar)  tar -xf $$file ;; \
     144                        *.cpio.Z | *.cpio.gz | *.cgz | *.mcz) \
     145                                gzip -dc $$file | cpio -mid ;; \
     146                        *.tar.Z | *.tar.gz | *.taz | *.tgz) \
     147                                gzip -dc $$file | tar -xf - ;; \
     148                        *.cpio.bz2 | *.cbz) \
     149                                bzip2 -dc $$file | cpio -mid ;; \
     150                        *.tar.bz2 | *.tbz) \
     151                                bzip2 -dc $$file | tar -xf - ;; \
     152                        esac; \
     153                done
Note: See TracChangeset for help on using the changeset viewer.