Changeset d419478 in freewrt for package/ipkg


Ignore:
Timestamp:
Jul 21, 2006, 1:56:32 AM (19 years ago)
Author:
Thorsten Glaser <tg@…>
Branches:
freewrt_1_0, freewrt_2_0
Children:
50d34d3
Parents:
2029b2e
Message:
  • whitespace cleanup, while here
  • move WRKDIR and DISTFILES definition into PKG_template
  • define WRKDIR via parent BUILD_DIR instead of going up from WRKSRC
  • use a sub-directory as WRKDIR, like BSD
  • rename PKG_BUILD_DIR into WRKBUILD
  • define WRKBUILD relative via WRKDIR
  • rename PKG_INSTALL_DIR into WRKINST
  • fix a few dependencies
  • make use of common cases in the definition of WRKBUILD and WRKINST, removing many redundant lines
  • use WRKDIR instead of BUILD_DIR in places where the latter was used previously
  • while here, remove PKG_CAT stuff

this only affects packages, for now

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • package/ipkg/Makefile

    r2029b2e rd419478  
    1212        http://ftp.gwdg.de/pub/linux/handhelds/packages/ipkg
    1313PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
    14 PKG_CAT:=zcat
    1514
    16 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
    17 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
    1815
    1916include $(TOPDIR)/package/rules.mk
     
    2118$(eval $(call PKG_template,IPKG,ipkg,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
    2219
    23 $(PKG_BUILD_DIR)/.configured:
    24         (cd $(PKG_BUILD_DIR); rm -rf config.{cache,status} ; \
     20$(WRKBUILD)/.configured:
     21        (cd $(WRKBUILD); rm -rf config.{cache,status} ; \
    2522                $(TARGET_CONFIGURE_OPTS) \
    2623                CFLAGS="$(TARGET_CFLAGS)" \
     
    5047        touch $@
    5148
    52 $(PKG_BUILD_DIR)/.built:
    53         rm -rf $(PKG_INSTALL_DIR)
    54         mkdir -p $(PKG_INSTALL_DIR)
    55         $(MAKE) -C $(PKG_BUILD_DIR) \
     49$(WRKBUILD)/.built:
     50        rm -rf $(WRKINST)
     51        mkdir -p $(WRKINST)
     52        $(MAKE) -C $(WRKBUILD) \
    5653                CC=$(TARGET_CC) \
    57                 DESTDIR="$(PKG_INSTALL_DIR)" \
     54                DESTDIR="$(WRKINST)" \
    5855                all install
    5956        touch $@
     
    6158$(IPKG_IPKG):
    6259        install -d -m0755 $(IDIR_IPKG)/bin
    63         $(CP) $(PKG_INSTALL_DIR)/bin/ipkg-cl $(IDIR_IPKG)/bin/ipkg
     60        $(CP) $(WRKINST)/bin/ipkg-cl $(IDIR_IPKG)/bin/ipkg
    6461        install -d -m0755 $(IDIR_IPKG)/usr/lib
    65         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libipkg.so.* $(IDIR_IPKG)/usr/lib/
     62        $(CP) $(WRKINST)/usr/lib/libipkg.so.* $(IDIR_IPKG)/usr/lib/
    6663        $(RSTRIP) $(IDIR_IPKG)
    6764        $(IPKG_BUILD) $(IDIR_IPKG) $(PACKAGE_DIR)
Note: See TracChangeset for help on using the changeset viewer.