Changeset d419478 in freewrt for package/privoxy


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

    r2029b2e rd419478  
    1010PKG_SOURCE_URL:=@SF/ijbswa
    1111PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-stable-src.tar.gz
    12 PKG_CAT:=zcat
    1312
    14 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)-stable
    15 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
    1613
    1714include $(TOPDIR)/package/rules.mk
     
    1916$(eval $(call PKG_template,PRIVOXY,privoxy,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
    2017
    21 $(PKG_BUILD_DIR)/.configured:
    22         (cd $(PKG_BUILD_DIR); rm -rf config.{cache,status} ; \
     18$(WRKBUILD)/.configured:
     19        (cd $(WRKBUILD); rm -rf config.{cache,status} ; \
    2320                AUTOCONF_VERSION=2.59 autoheader && AUTOCONF_VERSION=2.59 autoconf && \
    2421                $(TARGET_CONFIGURE_OPTS) \
     
    4744                  --disable-static \
    4845        );
    49         touch $(PKG_BUILD_DIR)/.configured
     46        touch $(WRKBUILD)/.configured
    5047
    51 $(PKG_BUILD_DIR)/.built:
    52         $(MAKE) -C $(PKG_BUILD_DIR) \
     48$(WRKBUILD)/.built:
     49        $(MAKE) -C $(WRKBUILD) \
    5350                SPECIAL_CFLAGS="-pthread -L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib"
    54         mkdir -p $(PKG_INSTALL_DIR)
    55         $(MAKE) -C $(PKG_BUILD_DIR) \
    56                 DESTDIR="$(PKG_INSTALL_DIR)" \
     51        mkdir -p $(WRKINST)
     52        $(MAKE) -C $(WRKBUILD) \
     53                DESTDIR="$(WRKINST)" \
    5754                install
    58         touch $(PKG_BUILD_DIR)/.built
     55        touch $(WRKBUILD)/.built
    5956
    6057$(IPKG_PRIVOXY):
    6158        install -d -m0755 $(IDIR_PRIVOXY)/usr/sbin $(IDIR_PRIVOXY)/etc/privoxy
    62         $(CP) $(PKG_INSTALL_DIR)/usr/sbin/privoxy $(IDIR_PRIVOXY)/usr/sbin/
     59        $(CP) $(WRKINST)/usr/sbin/privoxy $(IDIR_PRIVOXY)/usr/sbin/
    6360        $(RSTRIP) $(IDIR_PRIVOXY)
    6461        $(IPKG_BUILD) $(IDIR_PRIVOXY) $(PACKAGE_DIR)
Note: See TracChangeset for help on using the changeset viewer.