confuse: moved to github
[packages.git] / libs / libIDL2 / Makefile
1 #
2 # Copyright (C) 2008 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=libIDL2
12 PKG_VERSION:=0.8.13
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=libIDL-$(PKG_VERSION).tar.bz2
16 PKG_BUILD_DIR:=$(BUILD_DIR)/libIDL-$(PKG_VERSION)
17 HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/libIDL-$(PKG_VERSION)
18 PKG_SOURCE_URL:=@GNOME/libIDL/0.8
19 PKG_MD5SUM:=b43b289a859eb38a710f70622c46e571
20 PKG_FIXUP:=autoreconf
21 HOST_BUILD_DEPENDS:=glib2/host
22 PKG_INSTALL=1
23
24 include $(INCLUDE_DIR)/host-build.mk
25 include $(INCLUDE_DIR)/package.mk
26 include $(INCLUDE_DIR)/nls.mk
27
28 define Package/libIDL2
29   SECTION:=libs
30   CATEGORY:=Libraries
31   TITLE:=IDL Compiling Library
32   URL:=http://andrewtv.org/libIDL/
33   DEPENDS:=+glib2
34 endef
35
36 define Package/libIDL2/description
37   libIDL is a library licensed under the GNU LGPL for creating trees of
38   CORBA Interface Definition Language (IDL) files, which is a
39   specification for defining portable interfaces.
40 endef
41
42 define Build/Configure
43         $(call Build/Configure/Default,libIDL_cv_long_long_format=ll)
44 endef
45
46 define Build/InstallDev
47         $(INSTALL_DIR) $(1)/usr/lib
48         $(CP) \
49                 $(PKG_INSTALL_DIR)/usr/lib/*.{so*,a,la} \
50                 $(1)/usr/lib/
51
52         $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
53         $(INSTALL_DATA) \
54                 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
55                 $(1)/usr/lib/pkgconfig/
56
57         $(INSTALL_DIR) $(1)/usr/include
58         $(CP) \
59                 $(PKG_INSTALL_DIR)/usr/include/* \
60                 $(1)/usr/include/
61 endef
62
63 define Package/libIDL2/install
64         $(INSTALL_DIR) $(1)/usr/lib
65         $(CP) \
66                 $(PKG_INSTALL_DIR)/usr/lib/*.so* \
67                 $(1)/usr/lib/
68 endef
69
70 $(eval $(call HostBuild))
71 $(eval $(call BuildPackage,libIDL2))