Makefile 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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= 39
  6. PKG_RELEASE= 1
  7. PKG_MD5SUM= b2eeb4fe4ccac2704e1440e53cd2672c
  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. DISTFILES= ${PKG_NAME}-R${PKG_VERSION}.cpio.gz
  13. WRKDIST= ${WRKDIR}/${PKG_NAME}
  14. PKG_FLAVOURS= FULL
  15. PKGFD_FULL= Include all features
  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. TCPPFLAGS+= -DMKSH_SMALL=1
  20. endif
  21. do-build:
  22. cd ${WRKBUILD} && CC='${TARGET_CC}' CFLAGS='${TCFLAGS}' \
  23. CPPFLAGS='${TCPPFLAGS}' LDFLAGS='${TLDFLAGS}' \
  24. TARGET_OS=Linux ${BASH} ${WRKSRC}/Build.sh -Q -r -combine
  25. do-install:
  26. ${INSTALL_DIR} ${IDIR_MKSH}/bin ${IDIR_MKSH}/root
  27. ${INSTALL_BIN} ${WRKBUILD}/mksh ${IDIR_MKSH}/bin/
  28. ${CP} ${WRKSRC}/dot.mkshrc ${IDIR_MKSH}/root/.mkshrc
  29. include ${TOPDIR}/mk/pkg-bottom.mk