1
0

Makefile 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  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. include ${TOPDIR}/mk/package.mk
  15. $(eval $(call PKG_template,MKSH,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  16. ifeq ($(strip ${ADK_PACKAGE_MKSH_FULL}),)
  17. TCPPFLAGS+= -DMKSH_SMALL=1
  18. endif
  19. do-build:
  20. cd ${WRKBUILD} && CC='${TARGET_CC}' CFLAGS='${TCFLAGS}' \
  21. CPPFLAGS='${TCPPFLAGS}' LDFLAGS='${TLDFLAGS}' \
  22. TARGET_OS=Linux ${BASH} ${WRKSRC}/Build.sh -Q -r -combine
  23. do-install:
  24. ${INSTALL_DIR} ${IDIR_MKSH}/bin ${IDIR_MKSH}/root
  25. ${INSTALL_BIN} ${WRKBUILD}/mksh ${IDIR_MKSH}/bin/
  26. ${CP} ${WRKSRC}/dot.mkshrc ${IDIR_MKSH}/root/.mkshrc
  27. include ${TOPDIR}/mk/pkg-bottom.mk