Changeset d419478 in freewrt for package/aiccu


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

    r2029b2e rd419478  
    1010PKG_SOURCE_URL:=http://www.sixxs.net/archive/sixxs/aiccu/unix
    1111PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).tar.gz
    12 PKG_CAT:=zcat
    1312
    14 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)
     13WRKBUILD:=${WRKDIR}/$(PKG_NAME)
    1514
    1615include $(TOPDIR)/package/rules.mk
     
    1817$(eval $(call PKG_template,AICCU,aiccu,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
    1918
    20 $(PKG_BUILD_DIR)/.configured:
    21         $(SED) "s,strip,$(STRIP)," $(PKG_BUILD_DIR)/unix-console/Makefile
     19$(WRKBUILD)/.configured:
     20        $(SED) "s,strip,$(STRIP)," $(WRKBUILD)/unix-console/Makefile
    2221        touch $@
    2322
    24 $(PKG_BUILD_DIR)/.built:
    25         $(MAKE) -C $(PKG_BUILD_DIR) \
     23$(WRKBUILD)/.built:
     24        $(MAKE) -C $(WRKBUILD) \
    2625                CC=$(TARGET_CC) CFLAGS="$(TARGET_CFLAGS) -D_GNU_SOURCE" DEBUG=0
    2726        touch $@
     
    2928$(IPKG_AICCU):
    3029        mkdir -p $(IDIR_AICCU)/usr/sbin $(IDIR_AICCU)/etc/init.d
    31         install -m 755 $(PKG_BUILD_DIR)/unix-console/$(PKG_NAME) $(IDIR_AICCU)/usr/sbin/
     30        install -m 755 $(WRKBUILD)/unix-console/$(PKG_NAME) $(IDIR_AICCU)/usr/sbin/
    3231        install -m 755 ./files/aiccu.init $(IDIR_AICCU)/etc/init.d/S51aiccu
    33         install -m 644 $(PKG_BUILD_DIR)/doc/aiccu.conf $(IDIR_AICCU)/etc/aiccu.conf
     32        install -m 644 $(WRKBUILD)/doc/aiccu.conf $(IDIR_AICCU)/etc/aiccu.conf
    3433        $(STRIP) $(IDIR_AICCU)/usr/sbin/*
    3534        $(IPKG_BUILD) $(IDIR_AICCU) $(PACKAGE_DIR)
Note: See TracChangeset for help on using the changeset viewer.