Makefile 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  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 ${ADK_TOPDIR}/rules.mk
  4. PKG_NAME:= mtools
  5. PKG_VERSION:= 4.0.18
  6. PKG_RELEASE:= 1
  7. PKG_HASH:= 30d408d039b4cedcd04fbf824c89b0ff85dcbb6f71f13d2d8d65abb3f58cacc3
  8. PKG_DESCR:= utilities to access fat filesystems
  9. PKG_SECTION:= sys/fs
  10. PKG_URL:= https://www.gnu.org/software/mtools/intro.html
  11. PKG_SITES:= ftp://ftp.gnu.org/gnu/mtools/
  12. DISTFILES:= $(PKG_NAME)-$(PKG_VERSION).tar.gz
  13. include ${ADK_TOPDIR}/mk/host.mk
  14. include ${ADK_TOPDIR}/mk/package.mk
  15. $(eval $(call HOST_template,MTOOLS,mtools,${PKG_VERSION}-${PKG_RELEASE}))
  16. $(eval $(call PKG_template,MTOOLS,mtools,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  17. ifeq ($(OS_FOR_BUILD),Darwin)
  18. HOST_LDFLAGS+= -liconv
  19. endif
  20. CONFIGURE_ENV+= ac_cv_func_setpgrp_void=yes
  21. mtools-install:
  22. ${INSTALL_DIR} ${IDIR_MTOOLS}/usr/bin
  23. ${CP} ${WRKINST}/usr/bin/m* ${IDIR_MTOOLS}/usr/bin
  24. include ${ADK_TOPDIR}/mk/host-bottom.mk
  25. include ${ADK_TOPDIR}/mk/pkg-bottom.mk