Changeset d5b9e70 in freewrt for package


Ignore:
Timestamp:
Jul 27, 2006, 12:19:37 PM (19 years ago)
Author:
Thorsten Glaser <tg@…>
Branches:
freewrt_1_0, freewrt_2_0
Children:
fdd4f59
Parents:
a787d3e
Message:

update-patches for tools/

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

Location:
package
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • package/rules.mk

    ra787d3e rd5b9e70  
    11# $FreeWRT$
    22
    3 ifneq (${PKG_SOURCE_URL},)
    4 ifeq (${PKG_SOURCE},)
    5 PKG_SOURCE:=    ${PKG_NAME}-${PKG_VERSION}.tar.gz
    6 endif
    7 endif
    8 ifneq (${PKG_SOURCE},)
    9 DISTFILES?=     ${DL_DIR}/${PKG_SOURCE}
    10 endif
     3WRKDIR_BASE:=   ${BUILD_DIR}
    114
    12 WRKDIR?=        ${BUILD_DIR}/w-${PKG_NAME}-${PKG_VERSION}-${PKG_RELEASE}
    13 WRKSRC?=        ${WRKDIR}/${PKG_NAME}-${PKG_VERSION}
    14 WRKBUILD?=      ${WRKSRC}
    15 WRKINST?=       ${WRKDIR}/ipkg-install
     5include buildhlp.mk
    166
    177define PKG_template
     
    4939endef
    5040
    51 
    52 ifneq (${PKG_SOURCE_URL},)
    53 $(DL_DIR)/$(PKG_SOURCE):
    54         @$(CMD_TRACE) "downloading... "
    55         $(SCRIPT_DIR)/download.pl "$(DL_DIR)" "$(PKG_SOURCE)" "$(PKG_MD5SUM)" $(PKG_SOURCE_URL) $(MAKE_TRACE)
    56 endif
    57 
    58 ifneq (${DISTFILES}${PKG_SOURCE},)
    59 $(WRKBUILD)/.prepared: ${DISTFILES}
    60         rm -rf ${WRKSRC} ${WRKBUILD}
    61         ${EXTRACT_CMD}
    62         [ ! -d ./patches ] || $(PREVENT_PATCH) $(PATCH) $(WRKSRC) ./patches \
    63             '{patch-*,*.patch}'
    64         [ ! -d ./patches ] || (fgrep -q '@@ -0,0 ' patches/{patch-*,*.patch} \
    65             >/dev/null 2>&1 && touch ${WRKSRC}/.patched-newfiles || :)
    66         [ ! -d ./extra ] || (cd extra; $(PREVENT_PATCH) pax -rw . ${WRKSRC}/)
    67         touch $(WRKBUILD)/.prepared
    68 endif
    6941
    7042all: compile
     
    10577        rm -rf ${WRKDIR}
    10678
    107 update-patches:
    108         @test ! -d ${WRKDIR}.orig || rm -rf ${WRKDIR}.orig
    109         @test ! -d ${WRKDIR}.orig
    110         @$(MAKE) -s V=0 prepare WRKDIR=${WRKDIR}.orig PREVENT_PATCH=:
    111         @toedit=$$(WRKDIST='${WRKSRC}' CURDIR=$$(pwd) \
    112             PATCH_LIST='patch-* *.patch' WRKDIR1='${WRKDIR}' \
    113             ${BASH} ${TOPDIR}/scripts/update-patches); \
    114             if [[ -n $$toedit && $$toedit != FAIL ]]; then \
    115                 echo -n 'edit patches: '; read i; \
    116                 cd patches && $${VISUAL:-$${EDITOR:-/usr/bin/vi}} $$toedit; \
    117             fi; \
    118             rm -rf ${WRKDIR}.orig; \
    119             [[ $$toedit != FAIL ]]
    12079
    121 .PHONY: all source prepare compile install clean update-patches
     80.PHONY: all source prepare compile install clean
Note: See TracChangeset for help on using the changeset viewer.