1
0

Makefile 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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.11
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= bd5a20fc9185da17caf113776d1eac47
  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_NOPARALLEL:= 1
  15. PKG_LIBC_DEPENDS:= glibc musl
  16. PKG_ARCH_DEPENDS:= x86 x86_64
  17. include $(TOPDIR)/mk/package.mk
  18. $(eval $(call PKG_template,CLUSTER_GLUE,cluster-glue,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  19. # disable honour cflags stuff
  20. XAKE_FLAGS+= GCC_HONOUR_COPTS=s
  21. CONFIGURE_ENV+= ac_cv_path_HELP2MAN=''
  22. CONFIGURE_ARGS+= --disable-bundled-ltdl \
  23. --enable-fatal-warnings=no
  24. TARGET_CPPFLAGS+= -DCONFIG_LITTLE_ENDIAN
  25. ifeq (${CPU_ARCH},mips)
  26. TARGET_CPPFLAGS+= -DCONFIG_BIG_ENDIAN
  27. endif
  28. ifeq (${CPU_ARCH},mips64)
  29. TARGET_CPPFLAGS+= -DCONFIG_BIG_ENDIAN
  30. endif
  31. ifeq (${CPU_ARCH},ppc)
  32. TARGET_CPPFLAGS+= -DCONFIG_BIG_ENDIAN
  33. endif
  34. cluster-glue-install:
  35. $(INSTALL_DIR) $(IDIR_CLUSTER_GLUE)/usr/lib/heartbeat
  36. $(CP) $(WRKINST)/usr/lib/*.so* \
  37. $(IDIR_CLUSTER_GLUE)/usr/lib
  38. $(CP) $(WRKINST)/usr/lib/heartbeat/* \
  39. $(IDIR_CLUSTER_GLUE)/usr/lib/heartbeat
  40. include ${TOPDIR}/mk/pkg-bottom.mk