Changeset d419478 in freewrt for package/pwlib


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

    r2029b2e rd419478  
    1010PKG_SOURCE_URL:=http://trash.uid0.hu/openwrt
    1111PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
    12 PKG_CAT:=zcat
    1312
    14 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
    1513
    1614include $(TOPDIR)/package/rules.mk
     
    1816$(eval $(call PKG_template,PWLIB,pwlib,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
    1917
    20 $(PKG_BUILD_DIR)/.configured:
    21         ( cd $(PKG_BUILD_DIR); rm -rf config.{cache,status}; \
     18$(WRKBUILD)/.configured:
     19        ( cd $(WRKBUILD); rm -rf config.{cache,status}; \
    2220                CFLAGS="$(TARGET_CFLAGS)" \
    2321                CXXFLAGS="$(TARGET_CFLAGS) -fno-builtin -fno-rtti"  \
     
    8987                        --disable-xmlrpc \
    9088        );
    91         ln -sf $(PKG_NAME)-$(PKG_VERSION) $(BUILD_DIR)/$(PKG_NAME)
     89        ln -sf $(PKG_NAME)-$(PKG_VERSION) ${WRKDIR}/$(PKG_NAME)
    9290        touch $@
    9391
    94 $(PKG_BUILD_DIR)/.built:
    95         $(MAKE) -C $(PKG_BUILD_DIR) \
     92$(WRKBUILD)/.built:
     93        $(MAKE) -C $(WRKBUILD) \
    9694                $(TARGET_CONFIGURE_OPTS) \
    9795                optnoshared
     
    9997
    10098uninstall-link:
    101         rm -f $(BUILD_DIR)/$(PKG_NAME)
     99        rm -f ${WRKDIR}/$(PKG_NAME)
    102100
    103 compile-targets: $(PKG_BUILD_DIR)/.built
     101compile-targets: $(WRKBUILD)/.built
    104102clean-targets: uninstall-link
Note: See TracChangeset for help on using the changeset viewer.