summaryrefslogtreecommitdiff
path: root/package/orbit2/Makefile
blob: 81317669dcd34bd565fab14f90588d8e4d1b5f9e (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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# 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:=		ORBit2
PKG_VERSION:=		2.14.19
PKG_EXTRAVER:=		2.14
PKG_RELEASE:=		1
PKG_MD5SUM:=		87c69c56c6d0bdafa4de5e18ae115cc9
PKG_DESCR:=		a CORBA 2.4-compliant Object Request Broker
PKG_SECTION:=		libs
PKG_BUILDDEP:=		libIDL
PKG_URL:=		http://projects.gnome.org/ORBit2/
PKG_SITES:=		ftp://ftp.gnome.org//pub/gnome/sources/ORBit2/${PKG_EXTRAVER}/

PKG_ARCH_DEPENDS:=	!arm !cris

PKG_SUBPKGS:=		ORBIT2 ORBIT2_DEV
PKGSD_ORBIT2_DEV:=	orbit2 headers
PKGSC_ORBIT2_DEV:=	devel

include $(TOPDIR)/mk/package.mk

$(eval $(call PKG_template,ORBIT2,orbit2,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
$(eval $(call PKG_template,ORBIT2_DEV,orbit2-dev,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_ORBIT2_DEV},${PKGSC_ORBIT2_DEV}))

CFLAGS_FOR_BUILD+=	$(shell ${BUILD_LIBIDL_CONFIG} --cflags)
LDFLAGS_FOR_BUILD+=	$(shell ${BUILD_LIBIDL_CONFIG} --libs)
LDFLAGS_FOR_BUILD+=	-lgmodule-2.0
CONFIGURE_ENV+=		ac_cv_alignof_CORBA_octet=1 \
			ac_cv_alignof_CORBA_boolean=1 \
			ac_cv_alignof_CORBA_char=1 \
			ac_cv_alignof_CORBA_wchar=2 \
			ac_cv_alignof_CORBA_short=2 \
			ac_cv_alignof_CORBA_long=4 \
			ac_cv_alignof_CORBA_long_long=4 \
			ac_cv_alignof_CORBA_float=4 \
			ac_cv_alignof_CORBA_double=4 \
			ac_cv_alignof_CORBA_long_double=4 \
			ac_cv_alignof_CORBA_struct=1 \
			ac_cv_alignof_CORBA_pointer=4

orbit2-install:
	$(INSTALL_DIR) $(IDIR_ORBIT2)/usr/lib
	$(INSTALL_BIN) $(WRKINST)/usr/lib/libORBit*.so* \
		$(IDIR_ORBIT2)/usr/lib
	$(INSTALL_DIR) $(IDIR_ORBIT2)/usr/bin
	$(CP) $(WRKINST)/usr/bin/orbit-idl-2 \
		$(IDIR_ORBIT2)/usr/bin
	$(INSTALL_DIR) $(STAGING_DIR)/usr/bin
	$(CP) $(WRKINST)/usr/bin/orbit-idl-2 \
		$(STAGING_DIR)/usr/bin

orbit2-dev-install:
	$(INSTALL_DIR) $(IDIR_ORBIT2_DEV)/usr/include
	$(CP) $(WRKINST)/usr/include/* \
		$(IDIR_ORBIT2_DEV)/usr/include
	$(INSTALL_DIR) $(IDIR_ORBIT2_DEV)/usr/lib/pkgconfig
	$(CP) $(WRKINST)/usr/lib/pkgconfig/*.pc \
		$(IDIR_ORBIT2_DEV)/usr/lib/pkgconfig

include ${TOPDIR}/mk/pkg-bottom.mk