Changeset d419478 in freewrt for package/bwm/Makefile


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

    r2029b2e rd419478  
    1010PKG_SOURCE_URL:=http://ftp.debian.org/debian/pool/main/b/bwm
    1111PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).orig.tar.gz
    12 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION).orig
    13 PKG_CAT:=zcat
    1412
    1513include $(TOPDIR)/package/rules.mk
     
    1715$(eval $(call PKG_template,BWM,$(PKG_NAME),$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
    1816
    19 $(PKG_BUILD_DIR)/.configured:
     17$(WRKBUILD)/.configured:
    2018        touch $@
    2119
    22 $(PKG_BUILD_DIR)/.built:
    23         $(TARGET_CC) $(TARGET_CFLAGS) $(PKG_BUILD_DIR)/bwm.c -o $(PKG_BUILD_DIR)/bwm
     20$(WRKBUILD)/.built:
     21        $(TARGET_CC) $(TARGET_CFLAGS) $(WRKBUILD)/bwm.c -o $(WRKBUILD)/bwm
    2422        touch $@
    2523
    2624$(IPKG_BWM):
    2725        mkdir -p $(IDIR_BWM)/usr/bin
    28         install -m 755 $(PKG_BUILD_DIR)/$(PKG_NAME) $(IDIR_BWM)/usr/bin/
     26        install -m 755 $(WRKBUILD)/$(PKG_NAME) $(IDIR_BWM)/usr/bin/
    2927        $(STRIP) $(IDIR_BWM)/usr/bin/*
    3028        $(IPKG_BUILD) $(IDIR_BWM) $(PACKAGE_DIR)
Note: See TracChangeset for help on using the changeset viewer.