2010-03-28 06:27:01 +00:00
#
# Copyright (C) 2009-2010 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
2009-06-14 22:51:53 +00:00
i n c l u d e $( TOPDIR ) / r u l e s . m k
PKG_NAME := orbit2
PKG_VERSION := 2.14.16
PKG_RELEASE := 1
PKG_BUILD_DIR := $( BUILD_DIR) /ORBit2-$( PKG_VERSION)
HOST_BUILD_DIR := $( BUILD_DIR_HOST) /ORBit2-$( PKG_VERSION)
PKG_SOURCE := ORBit2-$( PKG_VERSION) .tar.bz2
PKG_SOURCE_URL := @GNOME/ORBit2/2.14
#PKG_MD5SUM:=d7fb9eb41e8196f1aacf2f08375ae555
2010-12-08 18:30:29 +00:00
2012-06-11 21:18:33 +00:00
PKG_FIXUP := autoreconf
2009-06-14 22:51:53 +00:00
i n c l u d e $( INCLUDE_DIR ) / h o s t - b u i l d . m k
i n c l u d e $( INCLUDE_DIR ) / p a c k a g e . m k
2011-02-02 18:54:24 +00:00
i n c l u d e $( INCLUDE_DIR ) / n l s . m k
2009-06-14 22:51:53 +00:00
PKG_INSTALL := 1
HOST_BUILD_DEPENDS := libIDL2/host
PKG_BUILD_DEPENDS := orbit2/host
BIGENDIAN = no
i f e q ( $( CONFIG_BIG_ENDIAN ) , y )
BIGENDIAN:= yes
e n d i f
CONFIGURE_VARS += \
ac_cv_c_bigendian = $( BIGENDIAN) \
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
d e f i n e P a c k a g e / o r b i t 2
2010-03-28 06:27:01 +00:00
SECTION:= xorg-libraries
2009-06-14 22:51:53 +00:00
CATEGORY:= Xorg
SUBMENU:= libraries
TITLE:= ORBit2
URL:= http://www.gnome.org/projects/ORBit2/
DEPENDS:= +glib2 +libIDL2
e n d e f
d e f i n e P a c k a g e / o r b i t 2 / d e s c r i p t i o n
O R B i t 2 i s a C O R B A 2 . 4 - c o m p l i a n t O b j e c t R e q u e s t B r o k e r ( O R B ) .
e n d e f
d e f i n e B u i l d / C o n f i g u r e
$( call Build/Configure/Default)
find $( PKG_BUILD_DIR) -name Makefile -exec sed -i 's,IDL_COMPILER.*orbit-idl-2,IDL_COMPILER = $(STAGING_DIR_HOST)/bin/orbit-idl-2,g' { } \; # tell orbit2 to use the host-built idl-compiler
e n d e f
d e f i n e B u i l d / I n s t a l l D e v
$( INSTALL_DIR) $( 1) /usr/{ include/orbit-2.0,lib/pkgconfig}
$( CP) \
$( PKG_INSTALL_DIR) /usr/lib/*.{ so*,a,la} \
$( 1) /usr/lib/
$( INSTALL_DATA) \
$( PKG_INSTALL_DIR) /usr/lib/pkgconfig/* \
$( 1) /usr/lib/pkgconfig/
$( CP) \
$( PKG_INSTALL_DIR) /usr/include/orbit-2.0/* \
$( 1) /usr/include/orbit-2.0/
$( INSTALL_DIR) $( 1) /usr/share/aclocal
$( INSTALL_DATA) \
$( PKG_INSTALL_DIR) /usr/share/aclocal/* \
$( 1) /usr/share/aclocal/
$( INSTALL_DIR) $( 1) /usr/share/idl/orbit-2.0
$( INSTALL_DATA) \
$( PKG_INSTALL_DIR) /usr/share/idl/orbit-2.0/* \
$( 1) /usr/share/idl/orbit-2.0/
e n d e f
d e f i n e P a c k a g e / o r b i t 2 / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/lib
$( CP) \
$( PKG_INSTALL_DIR) /usr/lib/libORBit*.so* \
$( 1) /usr/lib/
e n d e f
$( eval $ ( call HostBuild ) )
$( eval $ ( call BuildPackage ,orbit 2) )