Makefile 987 B

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 ${TOPDIR}/rules.mk
  4. PKG_NAME:= m4
  5. PKG_VERSION:= 1.4.17
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= a5e9954b1dae036762f7b13673a2cf76
  8. PKG_DESCR:= macro processor
  9. PKG_SECTION:= lang
  10. PKG_BUILDDEP:= m4-host
  11. PKG_URL:= http://www.gnu.org/software/m4/
  12. PKG_SITES:= ${MASTER_SITE_GNU:=m4/}
  13. PKG_LIBC_DEPENDS:= glibc musl
  14. include ${TOPDIR}/mk/host.mk
  15. include ${TOPDIR}/mk/package.mk
  16. $(eval $(call HOST_template,M4,m4,${PKG_VERSION}-${PKG_RELEASE}))
  17. $(eval $(call PKG_template,M4,m4,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  18. HOST_STYLE:= auto
  19. CONFIGURE_ENV+= ac_cv_func_posix_spawn=yes \
  20. ac_cv_func_posix_spawn_works=yes
  21. TARGET_LDFLAGS+= -lrt
  22. m4-install:
  23. ${INSTALL_DIR} ${IDIR_M4}/usr/bin
  24. ${INSTALL_BIN} ${WRKINST}/usr/bin/m4 ${IDIR_M4}/usr/bin
  25. include ${TOPDIR}/mk/host-bottom.mk
  26. include ${TOPDIR}/mk/pkg-bottom.mk