Makefile 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. include ${TOPDIR}/rules.mk
  4. PKG_NAME:= mksh
  5. PKG_VERSION:= 49
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= e8c205cac72c3dc8540bbc3897421422
  8. PKG_DESCR:= MirBSD Korn Shell
  9. PKG_SECTION:= shells
  10. PKG_URL:= http://www.mirbsd.org/
  11. PKG_SITES:= ${MASTER_SITE_MIRBSD:distfiles/=dist/mir/mksh/}
  12. PKG_DFLT_MKSH:= y if !ADK_TOOLCHAIN_ONLY
  13. DISTFILES= ${PKG_NAME}-R${PKG_VERSION}.tgz
  14. WRKDIST= ${WRKDIR}/${PKG_NAME}
  15. include ${TOPDIR}/mk/host.mk
  16. include ${TOPDIR}/mk/package.mk
  17. $(eval $(call HOST_template,MKSH,mksh,${PKG_VERSION}-${PKG_RELEASE}))
  18. $(eval $(call PKG_template,MKSH,mksh,${PKG_VERSION}-${PKG_RELEASE},,${PKG_DESCR},${PKG_SECTION}))
  19. TARGET_CPPFLAGS+= -DMKSH_SMALL=1
  20. HOST_STYLE:= manual
  21. CONFIG_STYLE:= manual
  22. BUILD_STYLE:= manual
  23. INSTALL_STYLE:= manual
  24. host-build:
  25. cd ${WRKBUILD} && HAVE_CAN_FSTACKPROTECTORALL=0 \
  26. TARGET_OS=Linux ${BASH} ${WRKSRC}/Build.sh -Q -r -c lto
  27. mksh-hostinstall:
  28. ${INSTALL_DIR} ${STAGING_HOST_DIR}/usr/bin
  29. ${INSTALL_BIN} ${WRKBUILD}/mksh \
  30. ${STAGING_HOST_DIR}/usr/bin
  31. do-build:
  32. cd ${WRKBUILD} && CC='${TARGET_CC}' CFLAGS='${TARGET_CFLAGS}' \
  33. CPPFLAGS='${TARGET_CPPFLAGS}' LDFLAGS='${TARGET_LDFLAGS}' \
  34. HAVE_CAN_FSTACKPROTECTORALL=0 \
  35. TARGET_OS=Linux ${BASH} ${WRKSRC}/Build.sh -Q -r -c lto
  36. mksh-install:
  37. ${INSTALL_DIR} ${IDIR_MKSH}/bin ${IDIR_MKSH}/root
  38. ${INSTALL_BIN} ${WRKBUILD}/mksh ${IDIR_MKSH}/bin/
  39. ${CP} ${WRKSRC}/dot.mkshrc ${IDIR_MKSH}/root/.mkshrc
  40. include ${TOPDIR}/mk/host-bottom.mk
  41. include ${TOPDIR}/mk/pkg-bottom.mk