1
0

Makefile 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. PKG_ARCH_DEPENDS:= native
  13. include $(TOPDIR)/mk/host.mk
  14. include $(TOPDIR)/mk/package.mk
  15. $(eval $(call HOST_template,CMAKE,cmake,$(PKG_VERSION)-${PKG_RELEASE}))
  16. $(eval $(call PKG_template,CMAKE,cmake,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  17. HOST_STYLE:= manual
  18. CONFIG_STYLE:= manual
  19. XAKE_FLAGS+= GCC_HONOUR_COPTS=s
  20. host-configure:
  21. (cd $(WRKBUILD); ./configure --prefix=/usr)
  22. host-build:
  23. (cd ${WRKBUILD} && env ${HOST_MAKE_ENV} ${MAKE} -f ${MAKE_FILE} \
  24. ${HOST_MAKE_FLAGS} ${HOST_ALL_TARGET})
  25. cmake-hostinstall:
  26. $(INSTALL_BIN) $(WRKBUILD)/bin/cmake \
  27. $(STAGING_HOST_DIR)/usr/bin
  28. do-configure:
  29. (cd $(WRKBUILD); ./configure --prefix=/usr)
  30. cmake-install:
  31. $(INSTALL_DIR) $(IDIR_CMAKE)/usr/bin
  32. $(INSTALL_BIN) $(WRKINST)/usr/bin/cmake \
  33. $(IDIR_CMAKE)/usr/bin
  34. include ${TOPDIR}/mk/host-bottom.mk
  35. include ${TOPDIR}/mk/pkg-bottom.mk