Changeset d419478 in freewrt for package/mini_httpd


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

    r2029b2e rd419478  
    1010PKG_SOURCE_URL:=http://www.acme.com/software/mini_httpd/
    1111PKG_SOURCE:=mini_httpd-$(PKG_VERSION).tar.gz
    12 PKG_CAT:=zcat
    1312
    14 PKG_BUILD_DIR:=$(BUILD_DIR)/mini_httpd-$(PKG_VERSION)
     13WRKBUILD:=${WRKDIR}/mini_httpd-$(PKG_VERSION)
    1514
    1615include $(TOPDIR)/package/rules.mk
     
    2221
    2322
    24 $(PKG_BUILD_DIR)/.configured:
    25         $(CP) ./files/matrixssl_helper.{c,h} $(PKG_BUILD_DIR)/
     23$(WRKBUILD)/.configured:
     24        $(CP) ./files/matrixssl_helper.{c,h} $(WRKBUILD)/
    2625        touch $@
    2726
    28 $(PKG_BUILD_DIR)/.built:
     27$(WRKBUILD)/.built:
    2928        # with MatrixSSL
    3029ifneq ($(BR2_PACKAGE_MINI_HTTPD_MATRIXSSL),)
    31         $(MAKE) -C $(PKG_BUILD_DIR) \
     30        $(MAKE) -C $(WRKBUILD) \
    3231                CC=$(TARGET_CC) \
    3332                OFLAGS="$(TARGET_CFLAGS)" \
     
    3736                SSL_OBJS="matrixssl_helper.o" \
    3837                all
    39         (cd $(PKG_BUILD_DIR); mv mini_httpd mini_httpd-matrixssl; )
    40         $(MAKE) -C $(PKG_BUILD_DIR) clean
     38        (cd $(WRKBUILD); mv mini_httpd mini_httpd-matrixssl; )
     39        $(MAKE) -C $(WRKBUILD) clean
    4140endif
    4241        # with OpenSSL
    4342ifneq ($(BR2_PACKAGE_MINI_HTTPD_OPENSSL),)
    44         $(MAKE) -C $(PKG_BUILD_DIR) \
     43        $(MAKE) -C $(WRKBUILD) \
    4544                CC=$(TARGET_CC) \
    4645                OFLAGS="$(TARGET_CFLAGS)" \
     
    4948                SSL_LIBS="-L$(STAGING_DIR)/usr/lib -lssl -lcrypto" \
    5049                all
    51         (cd $(PKG_BUILD_DIR); mv mini_httpd mini_httpd-openssl; )
    52         $(MAKE) -C $(PKG_BUILD_DIR) clean
     50        (cd $(WRKBUILD); mv mini_httpd mini_httpd-openssl; )
     51        $(MAKE) -C $(WRKBUILD) clean
    5352endif
    5453        # without SSL
    5554ifneq ($(BR2_PACKAGE_MINI_HTTPD),)
    56         $(MAKE) -C $(PKG_BUILD_DIR) \
     55        $(MAKE) -C $(WRKBUILD) \
    5756                CC=$(TARGET_CC) \
    5857                OFLAGS="$(TARGET_CFLAGS)" \
     
    6968        install -m0755 ./files/mini_httpd.init $(IDIR_MINI_HTTPD)/etc/init.d/mini_httpd
    7069        install -d -m0755 $(IDIR_MINI_HTTPD)/usr/sbin
    71         install -m0755 $(PKG_BUILD_DIR)/mini_httpd $(IDIR_MINI_HTTPD)/usr/sbin/
     70        install -m0755 $(WRKBUILD)/mini_httpd $(IDIR_MINI_HTTPD)/usr/sbin/
    7271        $(RSTRIP) $(IDIR_MINI_HTTPD)
    7372        $(IPKG_BUILD) $(IDIR_MINI_HTTPD) $(PACKAGE_DIR)
     
    7574$(IPKG_MINI_HTTPD_HTPASSWD):
    7675        install -d -m0755 $(IDIR_MINI_HTTPD_HTPASSWD)/usr/sbin
    77         install -m0755 $(PKG_BUILD_DIR)/htpasswd $(IDIR_MINI_HTTPD_HTPASSWD)/usr/sbin/
     76        install -m0755 $(WRKBUILD)/htpasswd $(IDIR_MINI_HTTPD_HTPASSWD)/usr/sbin/
    7877        $(RSTRIP) $(IDIR_MINI_HTTPD_HTPASSWD)
    7978        $(IPKG_BUILD) $(IDIR_MINI_HTTPD_HTPASSWD) $(PACKAGE_DIR)
     
    8887        install -m0755 ./files/mini_httpd.init $(IDIR_MINI_HTTPD_MATRIXSSL)/etc/init.d/mini_httpd
    8988        install -d -m0755 $(IDIR_MINI_HTTPD_MATRIXSSL)/usr/sbin
    90         install -m0755 $(PKG_BUILD_DIR)/mini_httpd-matrixssl $(IDIR_MINI_HTTPD_MATRIXSSL)/usr/sbin/mini_httpd
     89        install -m0755 $(WRKBUILD)/mini_httpd-matrixssl $(IDIR_MINI_HTTPD_MATRIXSSL)/usr/sbin/mini_httpd
    9190        $(RSTRIP) $(IDIR_MINI_HTTPD_MATRIXSSL)
    9291        $(IPKG_BUILD) $(IDIR_MINI_HTTPD_MATRIXSSL) $(PACKAGE_DIR)
     
    101100        install -m0755 ./files/mini_httpd.init $(IDIR_MINI_HTTPD_OPENSSL)/etc/init.d/mini_httpd
    102101        install -d -m0755 $(IDIR_MINI_HTTPD_OPENSSL)/usr/sbin
    103         install -m0755 $(PKG_BUILD_DIR)/mini_httpd-openssl $(IDIR_MINI_HTTPD_OPENSSL)/usr/sbin/mini_httpd
     102        install -m0755 $(WRKBUILD)/mini_httpd-openssl $(IDIR_MINI_HTTPD_OPENSSL)/usr/sbin/mini_httpd
    104103        $(RSTRIP) $(IDIR_MINI_HTTPD_OPENSSL)
    105104        $(IPKG_BUILD) $(IDIR_MINI_HTTPD_OPENSSL) $(PACKAGE_DIR)
Note: See TracChangeset for help on using the changeset viewer.