blob: 5e45c71adb5db7a90a498942d52863dd2f394b7f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.
include $(TOPDIR)/rules.mk
PKG_NAME:= cluster-glue
PKG_VERSION:= 1.0.10
PKG_RELEASE:= 1
PKG_MD5SUM:= 67e35a8e1a78376af039aa53644f0de2
PKG_DESCR:= Cluster Glue library and tools
PKG_SECTION:= ha
PKG_BUILDDEP:= glib bzip2 e2fsprogs libaio
PKG_DEPENDS:= libaio
PKG_URL:= http://www.linux-ha.org/wiki/Cluster_Glue
PKG_SITES:= http://openadk.org/distfiles/
PKG_CFLINE_CLUSTER_GLUE:= depends on ADK_TARGET_LIB_GLIBC || ADK_TARGET_LIB_EGLIBC
PKG_ARCH_DEPENDS:= x86 x86_64
include $(TOPDIR)/mk/package.mk
$(eval $(call PKG_template,CLUSTER_GLUE,cluster-glue,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
# disable honour cflags stuff
XAKE_FLAGS+= GCC_HONOUR_COPTS=s
CONFIGURE_ENV+= ac_cv_path_HELP2MAN=''
CONFIGURE_ARGS+= --disable-bundled-ltdl \
--enable-fatal-warnings=no
TARGET_CPPFLAGS+= -DCONFIG_LITTLE_ENDIAN
ifeq (${CPU_ARCH},mips)
TARGET_CPPFLAGS+= -DCONFIG_BIG_ENDIAN
endif
ifeq (${CPU_ARCH},mips64)
TARGET_CPPFLAGS+= -DCONFIG_BIG_ENDIAN
endif
ifeq (${CPU_ARCH},ppc)
TARGET_CPPFLAGS+= -DCONFIG_BIG_ENDIAN
endif
cluster-glue-install:
$(INSTALL_DIR) $(IDIR_CLUSTER_GLUE)/usr/lib/heartbeat
$(CP) $(WRKINST)/usr/lib/*.so* \
$(IDIR_CLUSTER_GLUE)/usr/lib
$(CP) $(WRKINST)/usr/lib/heartbeat/* \
$(IDIR_CLUSTER_GLUE)/usr/lib/heartbeat
include ${TOPDIR}/mk/pkg-bottom.mk
|