Makefile 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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:= 40d
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= c6428401103367730a95b99284bf47dc
  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_FLAVOURS_MKSH:= FULL
  13. PKGFD_FULL:= Include all features
  14. DISTFILES= ${PKG_NAME}-R${PKG_VERSION}.cpio.gz
  15. WRKDIST= ${WRKDIR}/${PKG_NAME}
  16. include ${TOPDIR}/mk/package.mk
  17. $(eval $(call PKG_template,MKSH,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  18. ifeq ($(strip ${ADK_PACKAGE_MKSH_FULL}),)
  19. TARGET_CPPFLAGS+= -DMKSH_SMALL=1
  20. endif
  21. CONFIG_STYLE:= manual
  22. BUILD_STYLE:= manual
  23. INSTALL_STYLE:= manual
  24. do-build:
  25. cd ${WRKBUILD} && CC='${TARGET_CC}' CFLAGS='${TARGET_CFLAGS}' \
  26. CPPFLAGS='${TARGET_CPPFLAGS}' LDFLAGS='${TARGET_LDFLAGS}' \
  27. HAVE_CAN_FSTACKPROTECTORALL=0 \
  28. TARGET_OS=Linux ${BASH} ${WRKSRC}/Build.sh -Q -r -c lto
  29. do-install:
  30. ${INSTALL_DIR} ${IDIR_MKSH}/bin ${IDIR_MKSH}/root
  31. ${INSTALL_BIN} ${WRKBUILD}/mksh ${IDIR_MKSH}/bin/
  32. ${CP} ${WRKSRC}/dot.mkshrc ${IDIR_MKSH}/root/.mkshrc
  33. include ${TOPDIR}/mk/pkg-bottom.mk