English Language flag
// Log In
// CVSweb
Project: FreeWRT
// Summary // Activity // Search // Tracker // Lists // News // SCM // Wiki

SCM Repository

ViewVC logotype

Contents of /branches/freewrt_1_0/package/mksh/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3582 - (show annotations) (download)
Wed Sep 26 18:25:40 2007 UTC (6 years, 4 months ago) by tg
File size: 1611 byte(s)
MFC: mksh R28 → R31c+20070926

Reason:	the busy-loop problem, which was fixed in R31b, was discovered
	by spaetzle@ even doing some simpler pattern matching; also cf.
	http://bugs.debian.org/296446 and http://mirbsd.de/mksh#clog

Side effects:
• you can now select to build a full-featured mksh in menuconfig
  (still defaults to ‘n’, as does mksh itself)
• the new dot.mkshrc file offers pushd/popd/dirs (csh-like) as
  well as the precmd() and chpwd() hooks (zsh-like)
• added dependency on busybox: “readlink -f”
• UI still the same, except no $? in $PS1 any more (req. by yofuh)
• /etc/mkshrc is now an ipkg conffile and handled appropriately
• building with pcc should be possible (if you turn optimisation off)

Tested:
• FreeWRT 1.0-stable, ASUS WL-500g, mksh as /bin/sh+/bin/ash full-featured
• FreeWRT-current (by spaetzle@) before the MFC

1 # $FreeWRT$
2 #-
3 # This file is part of the FreeWRT project. FreeWRT is copyrighted
4 # material, please see the LICENCE file in the top-level directory
5 # or at http://www.freewrt.org/licence for details.
6
7 include ${TOPDIR}/rules.mk
8
9 PKG_NAME= mksh
10 PKG_VERSION= 31.3
11 PKG_RELEASE= 1
12 PKG_SOURCE= ${PKG_NAME}-R31c.cpio.gz
13 PKG_MD5SUM= 08b6354ad94b9c5d5bfc301e3314e412
14
15 PKG_SOURCE_URL= http://www.mirbsd.org/MirOS/dist/mir/mksh/
16 WRKSRC= ${WRKDIR}/${PKG_NAME}
17
18 include ${TOPDIR}/mk/package.mk
19
20 $(eval $(call PKG_template,MKSH,mksh,${PKG_VERSION}-${PKG_RELEASE},${ARCH}))
21
22 $(WRKBUILD)/.configured:
23 @touch $@
24
25 CPPFLAGS_TO_PASS:= -I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include
26
27 ifeq ($(strip ${FWRT_PACKAGE_MKSH_FULL}),)
28 CPPFLAGS_TO_PASS+= -DMKSH_SMALL=1
29 endif
30
31 $(WRKBUILD)/.built:
32 (cd ${WRKBUILD}; \
33 CC='${TARGET_CC}' \
34 CFLAGS='${TARGET_CFLAGS}' \
35 CPPFLAGS='${CPPFLAGS_TO_PASS}' \
36 LDFLAGS='-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib' \
37 TARGET_OS=Linux \
38 ${BASH} Build.sh -Q -r)
39 rm -rf $(WRKINST)
40 mkdir -p $(WRKINST)/{bin,etc}
41 install -c -m 755 ${WRKBUILD}/mksh ${WRKINST}/bin/mksh
42 install -c -m 444 ${WRKSRC}/dot.mkshrc ${WRKINST}/etc/mkshrc
43 @touch $@
44
45 $(IPKG_MKSH):
46 install -d -m 0755 $(IDIR_MKSH)/bin
47 install -d -m 0755 $(IDIR_MKSH)/etc
48 $(CP) $(WRKINST)/bin/mksh $(IDIR_MKSH)/bin/
49 $(RSTRIP) $(IDIR_MKSH)
50 $(CP) $(WRKINST)/etc/mkshrc $(IDIR_MKSH)/etc/
51 ifeq (${FWRT_PACKAGE_MKSH_AS_BINSH},y)
52 cd $(IDIR_MKSH)/bin/; ln -sf mksh sh
53 endif
54 ifeq (${FWRT_PACKAGE_MKSH_AS_BINASH},y)
55 cd $(IDIR_MKSH)/bin/; ln -sf mksh ash
56 endif
57 $(IPKG_BUILD) $(IDIR_MKSH) $(PACKAGE_DIR)

root@freewrt.org:443
ViewVC Help
Powered by ViewVC 1.1.20