Changeset d419478 in freewrt for package/wpa_supplicant


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

    r2029b2e rd419478  
    1010PKG_SOURCE_URL:=http://hostap.epitest.fi/releases/
    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,WPA_SUPPLICANT,wpa-supplicant,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
    1917
    20 $(PKG_BUILD_DIR)/.configured:
    21         $(CP) ./files/config $(PKG_BUILD_DIR)/.config
     18$(WRKBUILD)/.configured:
     19        $(CP) ./files/config $(WRKBUILD)/.config
    2220        touch $@
    2321
    24 $(PKG_BUILD_DIR)/.built:
    25         $(MAKE) -C $(PKG_BUILD_DIR) \
     22$(WRKBUILD)/.built:
     23        $(MAKE) -C $(WRKBUILD) \
    2624                $(TARGET_CONFIGURE_OPTS) \
    2725                CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include -I$(STAGING_DIR)/usr/include/madwifi" \
     
    3432$(IPKG_WPA_SUPPLICANT):
    3533        install -m0755 -d $(IDIR_WPA_SUPPLICANT)/usr/sbin
    36         install -m0755 $(PKG_BUILD_DIR)/wpa_cli $(IDIR_WPA_SUPPLICANT)/usr/sbin/
    37         install -m0755 $(PKG_BUILD_DIR)/wpa_passphrase $(IDIR_WPA_SUPPLICANT)/usr/sbin/
    38         install -m0755 $(PKG_BUILD_DIR)/wpa_supplicant $(IDIR_WPA_SUPPLICANT)/usr/sbin/
     34        install -m0755 $(WRKBUILD)/wpa_cli $(IDIR_WPA_SUPPLICANT)/usr/sbin/
     35        install -m0755 $(WRKBUILD)/wpa_passphrase $(IDIR_WPA_SUPPLICANT)/usr/sbin/
     36        install -m0755 $(WRKBUILD)/wpa_supplicant $(IDIR_WPA_SUPPLICANT)/usr/sbin/
    3937        $(RSTRIP) $(IDIR_WPA_SUPPLICANT)
    4038        $(IPKG_BUILD) $(IDIR_WPA_SUPPLICANT) $(PACKAGE_DIR)
Note: See TracChangeset for help on using the changeset viewer.