Changeset d419478 in freewrt for package/sane-backends/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/sane-backends/Makefile

    r2029b2e rd419478  
    1313                ftp://ftp5.sane-project.org/pub/sane/$(PKG_NAME)-$(PKG_VERSION)/
    1414PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
    15 PKG_CAT:=zcat
    1615
    17 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
    18 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
    1916
    2017include $(TOPDIR)/package/rules.mk
     
    2219$(eval $(call PKG_template,SANE_BACKENDS,sane-backends,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
    2320
    24 $(PKG_BUILD_DIR)/.configured:
    25         (cd $(PKG_BUILD_DIR); rm -rf config.{cache,status} ; \
     21$(WRKBUILD)/.configured:
     22        (cd $(WRKBUILD); rm -rf config.{cache,status} ; \
    2623                $(TARGET_CONFIGURE_OPTS) \
    2724                CFLAGS="$(strip $(TARGET_CFLAGS))" \
     
    5552                        --disable-debug \
    5653        );
    57         touch $(PKG_BUILD_DIR)/.configured
     54        touch $(WRKBUILD)/.configured
    5855
    59 $(PKG_BUILD_DIR)/.built:
    60         $(MAKE) -C $(PKG_BUILD_DIR)
    61         mkdir -p $(PKG_INSTALL_DIR)
    62         $(MAKE) -C $(PKG_BUILD_DIR) \
    63                 DESTDIR="$(PKG_INSTALL_DIR)" \
     56$(WRKBUILD)/.built:
     57        $(MAKE) -C $(WRKBUILD)
     58        mkdir -p $(WRKINST)
     59        $(MAKE) -C $(WRKBUILD) \
     60                DESTDIR="$(WRKINST)" \
    6461                install
    65         touch $(PKG_BUILD_DIR)/.built
     62        touch $(WRKBUILD)/.built
    6663
    6764$(IPKG_SANE_BACKENDS):
    6865        install -d -m0755 $(IDIR_SANE_BACKENDS)/etc/sane.d
    69         $(CP) $(PKG_INSTALL_DIR)/etc/sane.d/*.conf $(IDIR_SANE_BACKENDS)/etc/sane.d/
     66        $(CP) $(WRKINST)/etc/sane.d/*.conf $(IDIR_SANE_BACKENDS)/etc/sane.d/
    7067        install -d -m0755 $(IDIR_SANE_BACKENDS)/usr/sbin
    71         $(CP) $(PKG_INSTALL_DIR)/usr/sbin/saned $(IDIR_SANE_BACKENDS)/usr/sbin/
     68        $(CP) $(WRKINST)/usr/sbin/saned $(IDIR_SANE_BACKENDS)/usr/sbin/
    7269        $(RSTRIP) $(IDIR_SANE_BACKENDS)
    7370        $(IPKG_BUILD) $(IDIR_SANE_BACKENDS) $(PACKAGE_DIR)
Note: See TracChangeset for help on using the changeset viewer.