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 3814 - (show annotations) (download)
Fri Oct 24 22:55:58 2008 UTC (5 years, 4 months ago) by tg
File size: 1608 byte(s)
mksh update; please test on the actual devices if possible

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= 36.1
11 PKG_RELEASE= 1
12 PKG_SOURCE= ${PKG_NAME}-R36.cpio.gz
13 PKG_MD5SUM= 9962d052a1571ba843965c6253819ac4
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 CPPFLAGS_TO_PASS+= -DMKSH_NOPWNAM=1
27
28 ifeq ($(strip ${FWRT_PACKAGE_MKSH_FULL}),)
29 CPPFLAGS_TO_PASS+= -DMKSH_SMALL=1
30 endif
31
32 ${WRKBUILD}/.built:
33 (cd ${WRKBUILD}; \
34 CC='${TARGET_CC}' \
35 CFLAGS='${TARGET_CFLAGS}' \
36 CPPFLAGS='${CPPFLAGS_TO_PASS}' \
37 LDFLAGS='-L${STAGING_DIR}/usr/lib -L${STAGING_DIR}/lib' \
38 TARGET_OS=Linux \
39 HAVE_MKNOD=0 HAVE_SETLOCALE_CTYPE=0 HAVE_PERSISTENT_HISTORY=0 \
40 ${BASH} Build.sh -r)
41 rm -rf ${WRKINST}
42 mkdir -p ${WRKINST}/{bin,etc}
43 install -c -m 755 ${WRKBUILD}/mksh ${WRKINST}/bin/mksh
44 install -c -m 644 ${WRKSRC}/dot.mkshrc ${WRKINST}/etc/mkshrc
45 @touch $@
46
47 ${IPKG_MKSH}:
48 cd ${WRKINST} && pax -rw -pe bin/mksh etc/mkshrc ${IDIR_MKSH}/
49 ${RSTRIP} ${IDIR_MKSH}
50 ifeq (${FWRT_PACKAGE_MKSH_AS_BINSH},y)
51 cd ${IDIR_MKSH}/bin; ln -sf mksh sh
52 endif
53 ifeq (${FWRT_PACKAGE_MKSH_AS_BINASH},y)
54 cd ${IDIR_MKSH}/bin; ln -sf mksh ash
55 endif
56 ${IPKG_BUILD} ${IDIR_MKSH} ${PACKAGE_DIR}

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