Changeset e193a31 in freewrt


Ignore:
Timestamp:
Jan 6, 2007, 9:13:28 PM (19 years ago)
Author:
Thorsten Glaser <tg@…>
Children:
b296cf70
Parents:
b1399a6
Message:

convert to package template; work around changing package name

git-svn-id: svn://www.freewrt.org/branches/common-adk@1477 afb5a338-a214-0410-bd46-81f09a774fd1

Location:
package/base-files-arch
Files:
1 edited
1 moved

Legend:

Unmodified
Added
Removed
  • package/base-files-arch/Makefile

    rb1399a6 re193a31  
    1111PKG_VERSION:=           1.0
    1212PKG_RELEASE:=           3
    13 
    14 WRKSRC=                 ${WRKDIR}/$(PKG_NAME)
    15 DISTFILES:=
     13NO_DISTFILES:=          1
    1614
    1715include $(TOPDIR)/mk/package.mk
    1816
    19 IDIR_BASE_ARCH:=$(WRKBUILD)/$(PKG_NAME)-$(PKG_VERSION)
    20 IPKG_BASE_ARCH:=$(PACKAGE_DIR)/base-files-$(BOARD)-$(KERNEL)-$(DEVICE)-$(FS)_$(PKG_VERSION)-$(PKG_RELEASE)_$(ARCH).ipk
     17PKG_ID=                 ${BOARD}-${KERNEL}-${DEVICE}-${FS}
    2118
    22 $(WRKBUILD)/.prepared:
    23         mkdir -p $(WRKBUILD)
    24         touch $@
     19$(eval $(call PKG_template,BASE_ARCH,base-files-${PKG_ID},${PKG_VERSION}-${PKG_RELEASE},${ARCH}))
    2520
    26 $(WRKBUILD)/.configured:
    27         touch $@
     21do-extract:
     22        sed 's#base-files-arch#base-files-${PKG_ID}#' \
     23            <ipkg/subst.control >ipkg/base-files-${PKG_ID}.control
    2824
    29 $(WRKBUILD)/.built:
    30         touch $@
    31 
    32 $(IPKG_BASE_ARCH):
     25do-install:
    3326        mkdir -p $(IDIR_BASE_ARCH)
    34         $(CP) ipkg/$(PKG_NAME).control \
    35                 $(WRKBUILD)/base-files-$(BOARD)-$(KERNEL)-$(DEVICE)-$(FS).control
    36         $(SED) "s/base-files-arch/base-files-$(BOARD)-$(KERNEL)-$(DEVICE)-$(FS)/" \
    37                 $(WRKBUILD)/base-files-$(BOARD)-$(KERNEL)-$(DEVICE)-$(FS).control
    38         $(SCRIPT_DIR)/make-ipkg-dir.sh $(IDIR_BASE_ARCH) \
    39                 $(WRKBUILD)/base-files-$(BOARD)-$(KERNEL)-$(DEVICE)-$(FS).control \
    40                 $(PKG_VERSION)-$(PKG_RELEASE) $(ARCH)
    4127        -[ -d $(TOPDIR)/target/linux/$(BOARD)-$(KERNEL)/files ] && \
    4228                $(CP) $(TOPDIR)/target/linux/$(BOARD)-$(KERNEL)/files/* $(IDIR_BASE_ARCH)
     
    4430                $(CP) $(TOPDIR)/target/linux/$(BOARD)-$(KERNEL)/$(FS)/files/* $(IDIR_BASE_ARCH)
    4531        -[ -d $(TOPDIR)/target/linux/$(BOARD)-$(KERNEL)/$(DEVICE)/files ] && \
    46                 $(CP) $(TOPDIR)/target/linux/$(BOARD)-$(KERNEL)/$(DEVICE)/files/* $(IDIR_BASE_ARCH) 
     32                $(CP) $(TOPDIR)/target/linux/$(BOARD)-$(KERNEL)/$(DEVICE)/files/* $(IDIR_BASE_ARCH)
    4733        -find $(IDIR_BASE_ARCH) -type d -name CVS | xargs rm -rf
    4834        -find $(IDIR_BASE_ARCH) -type d -name .svn | xargs rm -rf
    4935        -find $(IDIR_BASE_ARCH) -name '.#*' | xargs rm -f
    50         $(IPKG_BUILD) $(IDIR_BASE_ARCH) $(PACKAGE_DIR)
    5136
    52 compile-targets: $(IPKG_BASE_ARCH)
    53 install-targets: compile
    54         $(IPKG) install $(IPKG_BASE_ARCH)
     37clean-targets: clean-ipkg-gen
     38
     39clean-ipkg-gen:
     40        -rm -f ipkg/base-files-*.control
    5541
    5642include ${TOPDIR}/mk/pkg-bottom.mk
Note: See TracChangeset for help on using the changeset viewer.