nuke $Id$ in /packages as well
[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.11
13 PKG_RELEASE:=2
14
15 PKG_SOURCE:=libIDL-$(PKG_VERSION).tar.bz2
16 PKG_BUILD_DIR:=$(BUILD_DIR)/libIDL-$(PKG_VERSION)
17 PKG_SOURCE_URL:=@GNOME/libIDL/0.8
18 PKG_MD5SUM:=9d0d4895fc23f7de9514fb13f0fdc9ba
19 PKG_FIXUP:=libtool
20
21 include $(INCLUDE_DIR)/package.mk
22
23 PKG_INSTALL=1
24
25 TARGET_CFLAGS += \
26         -I$(STAGING_DIR)/usr/lib/libintl/include \
27         -I$(STAGING_DIR)/usr/libiconv/include
28
29 TARGET_LDFLAGS += \
30         -Wl,-rpath-link=$(STAGING_DIR)/usr/lib \
31         -L$(STAGING_DIR)/usr/lib/libintl/lib/ \
32         -L$(STAGING_DIR)/usr/lib/libiconv/lib/
33
34 define Package/libIDL2
35   SECTION:=libs
36   CATEGORY:=Libraries
37   TITLE:=IDL Compiling Library
38   URL:=http://andrewtv.org/libIDL/
39   DEPENDS:=+glib2
40 endef
41
42 define Package/libIDL2/description
43   libIDL is a library licensed under the GNU LGPL for creating trees of
44   CORBA Interface Definition Language (IDL) files, which is a
45   specification for defining portable interfaces.
46 endef
47
48 define Build/Configure
49         $(call Build/Configure/Default,libIDL_cv_long_long_format=ll)
50 endef
51
52 define Build/InstallDev
53         $(INSTALL_DIR) $(2)/bin
54         $(INSTALL_BIN) \
55                 $(PKG_INSTALL_DIR)/usr/bin/libIDL-config-2 \
56                 $(2)/bin
57
58         $(INSTALL_DIR) $(1)/usr/include/libIDL-2.0/libIDL/
59         $(INSTALL_DATA) \
60                 $(PKG_INSTALL_DIR)/usr/include/libIDL-2.0/libIDL/*.h \
61                 $(1)/usr/include/libIDL-2.0/libIDL/
62
63         $(INSTALL_DIR) $(1)/usr/lib
64         $(CP) \
65                 $(PKG_INSTALL_DIR)/usr/lib/*.{so*,a,la} \
66                 $(1)/usr/lib/
67
68         $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
69         $(INSTALL_DATA) \
70                 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
71                 $(1)/usr/lib/pkgconfig/
72 endef
73
74 define Package/libIDL2/install
75         $(INSTALL_DIR) $(1)/usr/lib
76         $(CP) \
77                 $(PKG_INSTALL_DIR)/usr/lib/*.so* \
78                 $(1)/usr/lib/
79 endef
80
81 $(eval $(call BuildPackage,libIDL2))