Changeset d419478 in freewrt for package/gcom


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/gcom/Makefile

    r2029b2e rd419478  
    1010PKG_SOURCE_URL:=http://www.pharscape.org/3G/gcom
    1111PKG_SOURCE:=$(PKG_NAME)$(PKG_VERSION).tgz
    12 PKG_CAT:=zcat
    1312
    14 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
    15 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
    1613
    1714DISTFILES:=
     
    2017$(eval $(call PKG_template,GCOM,$(PKG_NAME),$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
    2118
    22 $(PKG_BUILD_DIR)/.prepared:
    23         rm -rf $(PKG_BUILD_DIR)
    24         mkdir -p $(PKG_BUILD_DIR)
     19$(WRKBUILD)/.prepared:
     20        rm -rf $(WRKBUILD)
     21        mkdir -p $(WRKBUILD)
    2522        # the .tgz is different - no subdirectory, so do this manually
    26         zcat $(DL_DIR)/$(PKG_SOURCE) | (cd $(PKG_BUILD_DIR); $(TAR_EXTRACT) )
    27         if [ -d ./patches ]; then $(PATCH) $(PKG_BUILD_DIR) ./patches ; fi
     23        zcat $(DL_DIR)/$(PKG_SOURCE) | (cd $(WRKBUILD); $(TAR_EXTRACT) )
     24        if [ -d ./patches ]; then $(PATCH) $(WRKBUILD) ./patches ; fi
    2825        touch $@
    2926
    30 $(PKG_BUILD_DIR)/.configured:
     27$(WRKBUILD)/.configured:
    3128        touch $@
    3229
    33 $(PKG_BUILD_DIR)/.built:
    34         $(MAKE) -C $(PKG_BUILD_DIR) \
     30$(WRKBUILD)/.built:
     31        $(MAKE) -C $(WRKBUILD) \
    3532                CC="$(TARGET_CC)" \
    3633                CFLAGS="$(TARGET_CFLAGS)" \
     
    4037$(IPKG_GCOM):
    4138        install -d -m0755 $(IDIR_GCOM)/usr/bin
    42         install -m0755 $(PKG_BUILD_DIR)/gcom $(IDIR_GCOM)/usr/bin/
     39        install -m0755 $(WRKBUILD)/gcom $(IDIR_GCOM)/usr/bin/
    4340        install -d -m0755 $(IDIR_GCOM)/etc/gcom
    4441        install -m0644 ./files/setpin.gcom $(IDIR_GCOM)/etc/gcom/setpin.gcom
Note: See TracChangeset for help on using the changeset viewer.