1
0

Makefile 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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:= corosync
  5. PKG_VERSION:= 2.3.0
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 4689279c36b1417e122a23c6818017dd
  8. PKG_DESCR:= Cluster Engine
  9. PKG_SECTION:= ha
  10. PKG_BUILDDEP:= libqb nss
  11. PKG_DEPENDS:= cluster-glue libqb nss
  12. PKG_URL:= http://www.corosync.org/
  13. PKG_SITES:= http://corosync.org/download/
  14. PKG_CFLINE_COROSYNC:= select ADK_KERNEL_IP_MULTICAST
  15. PKG_LIBC_DEPENDS:= glibc musl
  16. PKG_ARCH_DEPENDS:= x86 x86_64
  17. include $(TOPDIR)/mk/package.mk
  18. $(eval $(call PKG_template,COROSYNC,corosync,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  19. XAKE_FLAGS+= GCC_HONOUR_COPTS=s
  20. TARGET_CPPFLAGS+= -I$(STAGING_TARGET_DIR)/usr/include/nss \
  21. -I$(STAGING_TARGET_DIR)/usr/include/nspr
  22. TARGET_LDFLAGS+= -lssl3 -lsmime3 -lnss3 -lnssutil3
  23. CONFIGURE_ENV+= ac_cv_func_fnmatch_works=yes
  24. corosync-install:
  25. $(INSTALL_DIR) $(IDIR_COROSYNC)/etc/corosync
  26. $(CP) ./files/corosync.conf $(IDIR_COROSYNC)/etc/corosync
  27. $(INSTALL_DIR) $(IDIR_COROSYNC)/usr/lib
  28. $(CP) $(WRKINST)/usr/lib/lib*.so* \
  29. $(IDIR_COROSYNC)/usr/lib
  30. $(INSTALL_DIR) $(IDIR_COROSYNC)/usr/sbin
  31. $(CP) $(WRKINST)/usr/sbin/* \
  32. $(IDIR_COROSYNC)/usr/sbin
  33. $(INSTALL_DIR) $(IDIR_COROSYNC)/usr/bin
  34. $(CP) $(WRKINST)/usr/bin/* \
  35. $(IDIR_COROSYNC)/usr/bin
  36. include ${TOPDIR}/mk/pkg-bottom.mk