Makefile 1.6 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:= pacemaker
  5. PKG_VERSION:= 1.0.11
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= bfe2127d31e5244d0106a5c290fd0dc2
  8. PKG_DESCR:= scalable High-Availability cluster resource manager
  9. PKG_SECTION:= ha
  10. PKG_DEPENDS:= python2
  11. PKG_URL:= http://www.clusterlabs.org/
  12. PKG_SITES:= http://openadk.org/distfiles/
  13. PKG_CFLINE_PACEMAKER:= depends on ADK_TARGET_LIB_GLIBC || ADK_TARGET_LIB_EGLIBC
  14. PKG_HOST_DEPENDS:= !darwin
  15. PKG_ARCH_DEPENDS:= x86
  16. include $(TOPDIR)/mk/package.mk
  17. $(eval $(call PKG_template,PACEMAKER,pacemaker,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  18. # disable honour cflags stuff
  19. XAKE_FLAGS+= GCC_HONOUR_COPTS=s
  20. CONFIGURE_ARGS+= --includedir=$(STAGING_TARGET_DIR)/usr/include \
  21. --disable-fatal-warnings
  22. CONFIGURE_ENV+= ac_cv_path_HELP2MAN=''
  23. CFLAGS_FOR_BUILD+= -I$(STAGING_TARGET_DIR)/usr/include/heartbeat
  24. pacemaker-install:
  25. $(INSTALL_DIR) $(IDIR_PACEMAKER)/usr/lib
  26. $(CP) $(WRKINST)/usr/lib/lib*.so* \
  27. $(IDIR_PACEMAKER)/usr/lib
  28. $(INSTALL_DIR) $(IDIR_PACEMAKER)/usr/sbin
  29. $(CP) $(WRKINST)/usr/sbin/* \
  30. $(IDIR_PACEMAKER)/usr/sbin
  31. $(INSTALL_DIR) $(IDIR_PACEMAKER)/usr/libexec
  32. $(CP) $(WRKINST)/usr/libexec/* \
  33. $(IDIR_PACEMAKER)/usr/libexec
  34. $(INSTALL_DIR) $(IDIR_PACEMAKER)/usr/lib/python2.7/site-packages
  35. $(CP) $(WRKINST)/usr/lib/python2.7/site-packages/* \
  36. $(IDIR_PACEMAKER)/usr/lib/python2.7/site-packages/
  37. -find ${IDIR_PACEMAKER} -name "\*.pyc" -o -name "*\.pyo" -exec rm {} \;
  38. include ${TOPDIR}/mk/pkg-bottom.mk