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