Makefile 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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:= cmake
  5. PKG_VERSION:= 2.8.12
  6. PKG_RELEASE:= 2
  7. PKG_MD5SUM:= 105bc6d21cc2e9b6aff901e43c53afea
  8. PKG_DESCR:= cmake utility
  9. PKG_SECTION:= lang
  10. PKG_URL:= http://www.cmake.org/
  11. PKG_SITES:= http://www.cmake.org/files/v2.8/
  12. include $(TOPDIR)/mk/host.mk
  13. include $(TOPDIR)/mk/package.mk
  14. $(eval $(call HOST_template,CMAKE,cmake,$(PKG_VERSION)-${PKG_RELEASE}))
  15. $(eval $(call PKG_template,CMAKE,cmake,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  16. HOST_STYLE:= manual
  17. CONFIG_STYLE:= manual
  18. XAKE_FLAGS+= GCC_HONOUR_COPTS=s
  19. host-configure:
  20. (cd $(WRKBUILD); ./configure --prefix=/usr)
  21. host-build:
  22. (cd ${WRKBUILD} && env ${HOST_MAKE_ENV} ${MAKE} -f ${MAKE_FILE} \
  23. ${HOST_MAKE_FLAGS} ${HOST_ALL_TARGET})
  24. cmake-hostinstall:
  25. $(INSTALL_BIN) $(WRKBUILD)/bin/cmake \
  26. $(STAGING_HOST_DIR)/usr/bin
  27. do-configure:
  28. (cd $(WRKBUILD); ./configure --prefix=/usr)
  29. cmake-install:
  30. $(INSTALL_DIR) $(IDIR_CMAKE)/usr/bin
  31. $(INSTALL_BIN) $(WRKINST)/usr/bin/cmake \
  32. $(IDIR_CMAKE)/usr/bin
  33. include ${TOPDIR}/mk/host-bottom.mk
  34. include ${TOPDIR}/mk/pkg-bottom.mk