add c++ bindings for cairo
[openwrt/svn-archive/archive.git] / Xorg / lib / cairomm / Makefile
1 #
2 # Copyright (C) 2008-2009 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 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=cairomm
11 PKG_VERSION:=1.8.4
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://cairographics.org/releases/
16 PKG_FIXUP:=libtool
17
18 include $(INCLUDE_DIR)/package.mk
19
20 PKG_INSTALL:=1
21
22 define Package/cairomm
23 SECTION:=xorg-libs
24 CATEGORY:=Xorg
25 SUBMENU:=libraries
26 TITLE:=Multi-platform 2D graphics library
27 DEPENDS:=+libsigcxx +cairo
28 endef
29
30 define Package/cairomm/description
31 c++-bindings for cairo
32 endef
33
34 define Build/InstallDev
35 $(INSTALL_DIR) \
36 $(1)/usr/lib \
37 $(1)/usr/lib/pkgconfig \
38 $(1)/usr/include
39
40 $(CP) \
41 $(PKG_INSTALL_DIR)/usr/lib/* \
42 $(1)/usr/lib/
43
44 $(INSTALL_DATA) \
45 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/* \
46 $(1)/usr/lib/pkgconfig/
47
48 $(CP) \
49 $(PKG_INSTALL_DIR)/usr/include/* \
50 $(1)/usr/include/
51 endef
52
53 define Package/cairomm/install
54 $(INSTALL_DIR) \
55 $(1)/usr/lib/
56 $(CP) \
57 $(PKG_INSTALL_DIR)/usr/lib/*.so* \
58 $(1)/usr/lib/
59 endef
60
61 $(eval $(call BuildPackage,cairomm))