Makefile 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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:= cluster-glue
  5. PKG_VERSION:= 1.0.10
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 67e35a8e1a78376af039aa53644f0de2
  8. PKG_DESCR:= Cluster Glue library and tools
  9. PKG_SECTION:= ha
  10. PKG_BUILDDEP:= glib bzip2 e2fsprogs libaio
  11. PKG_DEPENDS:= libaio
  12. PKG_URL:= http://www.linux-ha.org/wiki/Cluster_Glue
  13. PKG_SITES:= http://openadk.org/distfiles/
  14. PKG_CFLINE_CLUSTER_GLUE:= depends on ADK_TARGET_LIB_GLIBC || ADK_TARGET_LIB_EGLIBC
  15. PKG_ARCH_DEPENDS:= x86 x86_64
  16. include $(TOPDIR)/mk/package.mk
  17. $(eval $(call PKG_template,CLUSTER_GLUE,cluster-glue,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  18. # disable honour cflags stuff
  19. XAKE_FLAGS+= GCC_HONOUR_COPTS=s
  20. CONFIGURE_ENV+= ac_cv_path_HELP2MAN=''
  21. CONFIGURE_ARGS+= --disable-bundled-ltdl \
  22. --enable-fatal-warnings=no
  23. TARGET_CPPFLAGS+= -DCONFIG_LITTLE_ENDIAN
  24. ifeq (${CPU_ARCH},mips)
  25. TARGET_CPPFLAGS+= -DCONFIG_BIG_ENDIAN
  26. endif
  27. ifeq (${CPU_ARCH},mips64)
  28. TARGET_CPPFLAGS+= -DCONFIG_BIG_ENDIAN
  29. endif
  30. ifeq (${CPU_ARCH},ppc)
  31. TARGET_CPPFLAGS+= -DCONFIG_BIG_ENDIAN
  32. endif
  33. cluster-glue-install:
  34. $(INSTALL_DIR) $(IDIR_CLUSTER_GLUE)/usr/lib/heartbeat
  35. $(CP) $(WRKINST)/usr/lib/*.so* \
  36. $(IDIR_CLUSTER_GLUE)/usr/lib
  37. $(CP) $(WRKINST)/usr/lib/heartbeat/* \
  38. $(IDIR_CLUSTER_GLUE)/usr/lib/heartbeat
  39. include ${TOPDIR}/mk/pkg-bottom.mk