2008-09-28 02:08:38 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2008 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=libIDL2
|
2009-10-03 10:37:59 +00:00
|
|
|
PKG_VERSION:=0.8.13
|
|
|
|
PKG_RELEASE:=1
|
2008-09-28 02:08:38 +00:00
|
|
|
|
|
|
|
PKG_SOURCE:=libIDL-$(PKG_VERSION).tar.bz2
|
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/libIDL-$(PKG_VERSION)
|
2009-06-13 01:20:51 +00:00
|
|
|
HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/libIDL-$(PKG_VERSION)
|
2008-09-28 02:08:38 +00:00
|
|
|
PKG_SOURCE_URL:=@GNOME/libIDL/0.8
|
2009-10-03 10:37:59 +00:00
|
|
|
PKG_MD5SUM:=b43b289a859eb38a710f70622c46e571
|
2008-09-28 02:08:38 +00:00
|
|
|
PKG_FIXUP:=libtool
|
2009-07-06 06:20:10 +00:00
|
|
|
HOST_BUILD_DEPENDS:=glib2/host
|
|
|
|
PKG_INSTALL=1
|
2008-09-28 02:08:38 +00:00
|
|
|
|
2009-06-13 01:20:51 +00:00
|
|
|
include $(INCLUDE_DIR)/host-build.mk
|
2008-09-28 02:08:38 +00:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
TARGET_CFLAGS += \
|
|
|
|
-I$(STAGING_DIR)/usr/lib/libintl/include \
|
|
|
|
-I$(STAGING_DIR)/usr/libiconv/include
|
|
|
|
|
|
|
|
TARGET_LDFLAGS += \
|
|
|
|
-L$(STAGING_DIR)/usr/lib/libintl/lib/ \
|
|
|
|
-L$(STAGING_DIR)/usr/lib/libiconv/lib/
|
|
|
|
|
|
|
|
define Package/libIDL2
|
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
|
|
|
TITLE:=IDL Compiling Library
|
|
|
|
URL:=http://andrewtv.org/libIDL/
|
|
|
|
DEPENDS:=+glib2
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libIDL2/description
|
|
|
|
libIDL is a library licensed under the GNU LGPL for creating trees of
|
|
|
|
CORBA Interface Definition Language (IDL) files, which is a
|
|
|
|
specification for defining portable interfaces.
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/Configure
|
|
|
|
$(call Build/Configure/Default,libIDL_cv_long_long_format=ll)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/InstallDev
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2009-01-04 00:06:33 +00:00
|
|
|
$(CP) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/lib/*.{so*,a,la} \
|
2008-09-28 02:08:38 +00:00
|
|
|
$(1)/usr/lib/
|
|
|
|
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
|
|
|
|
$(INSTALL_DATA) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
|
|
|
|
$(1)/usr/lib/pkgconfig/
|
2009-06-13 01:20:51 +00:00
|
|
|
|
|
|
|
$(INSTALL_DIR) $(1)/usr/include
|
|
|
|
$(CP) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/include/* \
|
|
|
|
$(1)/usr/include/
|
2008-09-28 02:08:38 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libIDL2/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2009-01-04 00:06:33 +00:00
|
|
|
$(CP) \
|
|
|
|
$(PKG_INSTALL_DIR)/usr/lib/*.so* \
|
2008-09-28 02:08:38 +00:00
|
|
|
$(1)/usr/lib/
|
|
|
|
endef
|
|
|
|
|
2009-06-13 01:20:51 +00:00
|
|
|
$(eval $(call HostBuild))
|
2008-09-28 02:08:38 +00:00
|
|
|
$(eval $(call BuildPackage,libIDL2))
|