1
0

Makefile 1018 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 ${ADK_TOPDIR}/rules.mk
  4. PKG_NAME:= m4
  5. PKG_VERSION:= 1.4.17
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 12a3c829301a4fd6586a57d3fcf196dc
  8. PKG_DESCR:= macro processor
  9. PKG_SECTION:= dev/tools
  10. PKG_BUILDDEP:= m4-host
  11. HOST_BUILDDEP:= xz-host
  12. PKG_URL:= http://www.gnu.org/software/m4/
  13. PKG_SITES:= ${MASTER_SITE_GNU:=m4/}
  14. PKG_LIBC_DEPENDS:= glibc musl
  15. include ${ADK_TOPDIR}/mk/host.mk
  16. include ${ADK_TOPDIR}/mk/package.mk
  17. $(eval $(call HOST_template,M4,m4,${PKG_VERSION}-${PKG_RELEASE}))
  18. $(eval $(call PKG_template,M4,m4,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  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 ${ADK_TOPDIR}/mk/host-bottom.mk
  26. include ${ADK_TOPDIR}/mk/pkg-bottom.mk