Makefile 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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:= ORBit2
  5. PKG_VERSION:= 2.14.19
  6. PKG_EXTRAVER:= 2.14
  7. PKG_RELEASE:= 5
  8. PKG_MD5SUM:= 87c69c56c6d0bdafa4de5e18ae115cc9
  9. PKG_DESCR:= corba 2.4-compliant object request broker
  10. PKG_SECTION:= libs/misc
  11. PKG_BUILDDEP:= gettext-tiny glib-host libIDL-host glib libIDL
  12. PKG_URL:= http://projects.gnome.org/ORBit2/
  13. PKG_SITES:= ftp://ftp.gnome.org//pub/gnome/sources/ORBit2/${PKG_EXTRAVER}/
  14. PKG_LIBNAME:= orbit2
  15. PKG_OPTS:= dev
  16. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
  17. include $(TOPDIR)/mk/package.mk
  18. $(eval $(call PKG_template,ORBIT2,orbit2,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
  19. CFLAGS_FOR_BUILD+= $(shell PATH=$(HOST_PATH) libIDL-config-2 --cflags)
  20. LDFLAGS_FOR_BUILD+= -static
  21. LIBS_FOR_BUILD:= $(shell PATH=$(HOST_PATH) libIDL-config-2 --libs)
  22. LIBS_FOR_BUILD+= -lgmodule-2.0 -ldl -lpthread -lrt -lglib-2.0
  23. XAKE_FLAGS+= LIBS_FOR_BUILD="${LIBS_FOR_BUILD}"
  24. CONFIGURE_ENV+= ac_cv_alignof_CORBA_octet=1 \
  25. ac_cv_alignof_CORBA_boolean=1 \
  26. ac_cv_alignof_CORBA_char=1 \
  27. ac_cv_alignof_CORBA_wchar=2 \
  28. ac_cv_alignof_CORBA_short=2 \
  29. ac_cv_alignof_CORBA_long=4 \
  30. ac_cv_alignof_CORBA_long_long=4 \
  31. ac_cv_alignof_CORBA_float=4 \
  32. ac_cv_alignof_CORBA_double=4 \
  33. ac_cv_alignof_CORBA_long_double=4 \
  34. ac_cv_alignof_CORBA_struct=1 \
  35. ac_cv_alignof_CORBA_pointer=4 \
  36. ac_cv_cflags_gcc_option__Werror_implicit_function_declaration=no
  37. orbit2-install:
  38. $(INSTALL_DIR) $(IDIR_ORBIT2)/usr/lib
  39. $(INSTALL_BIN) $(WRKINST)/usr/lib/libORBit*.so* \
  40. $(IDIR_ORBIT2)/usr/lib
  41. $(INSTALL_DIR) $(STAGING_TARGET_DIR)/usr/bin
  42. $(CP) $(WRKINST)/usr/bin/orbit-idl-2 \
  43. $(STAGING_TARGET_DIR)/usr/bin
  44. include ${TOPDIR}/mk/pkg-bottom.mk