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

    r2029b2e rd419478  
    1111PKG_SOURCE_URL=         http://mirbsd.mirsolutions.de/MirOS/dist/mir/mksh/ \
    1212                        http://miros.unixforge.de/MirOS/dist/mir/mksh/
    13 PKG_CAT=                uncgz
    14 PKG_BUILD_DIR=          $(BUILD_DIR)/$(PKG_NAME)
    15 PKG_INSTALL_DIR=        $(PKG_BUILD_DIR)/ipkg-install
     13WRKBUILD=               ${WRKDIR}/$(PKG_NAME)
    1614
    1715include $(TOPDIR)/package/rules.mk
     
    1917$(eval $(call PKG_template,MKSH,mksh,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
    2018
    21 $(PKG_BUILD_DIR)/.configured:
     19$(WRKBUILD)/.configured:
    2220        @touch $@
    2321
     
    2624                        -D_FILE_OFFSET_BITS=64 -DNEED_COMPAT
    2725
    28 $(PKG_BUILD_DIR)/.built:
    29         (cd ${PKG_BUILD_DIR}; \
     26$(WRKBUILD)/.built:
     27        (cd ${WRKBUILD}; \
    3028            CC='${TARGET_CC}' \
    3129            CFLAGS='${TARGET_CFLAGS}' \
     
    3432            SRCS='compat.c' \
    3533            sh Build.sh -d -r -q -x)
    36         rm -rf $(PKG_INSTALL_DIR)
    37         mkdir -p $(PKG_INSTALL_DIR)/bin
    38         install -c -m 755 ${PKG_BUILD_DIR}/mksh ${PKG_INSTALL_DIR}/bin/mksh
     34        rm -rf $(WRKINST)
     35        mkdir -p $(WRKINST)/bin
     36        install -c -m 755 ${WRKBUILD}/mksh ${WRKINST}/bin/mksh
    3937        @touch $@
    4038
    4139$(IPKG_MKSH):
    4240        install -d -m 0755 $(IDIR_MKSH)/bin
    43         $(CP) $(PKG_INSTALL_DIR)/bin/mksh $(IDIR_MKSH)/bin/
     41        $(CP) $(WRKINST)/bin/mksh $(IDIR_MKSH)/bin/
    4442        $(RSTRIP) $(IDIR_MKSH)
    4543        $(IPKG_BUILD) $(IDIR_MKSH) $(PACKAGE_DIR)
Note: See TracChangeset for help on using the changeset viewer.