Makefile 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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:= 39c
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 0c3cd172b47eefcdf9a302baa42f5092
  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. TARGET_OS=Linux ${BASH} ${WRKSRC}/Build.sh -Q -r -combine
  28. do-install:
  29. ${INSTALL_DIR} ${IDIR_MKSH}/bin ${IDIR_MKSH}/root
  30. ${INSTALL_BIN} ${WRKBUILD}/mksh ${IDIR_MKSH}/bin/
  31. ${CP} ${WRKSRC}/dot.mkshrc ${IDIR_MKSH}/root/.mkshrc
  32. include ${TOPDIR}/mk/pkg-bottom.mk