Install libart2-config to $(STAGING_DIR)/host/bin rather then
[openwrt/svn-archive/archive.git] / libs / libart / Makefile
1 #
2 # Copyright (C) 2006 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 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=libart
12 PKG_VERSION:=2.3.20
13 PKG_RELEASE:=2
14
15 PKG_SOURCE:=$(PKG_NAME)_lgpl-$(PKG_VERSION).tar.bz2
16 PKG_SOURCE_URL:=@GNOME/$(PKG_NAME)_lgpl/2.3
17 PKG_MD5SUM:=d0ce67f2ebcef1e51a83136c69242a73
18
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)_lgpl-$(PKG_VERSION)
20 PKG_FIXUP:=libtool
21
22 include $(INCLUDE_DIR)/package.mk
23
24 PKG_INSTALL=1
25
26 define Package/libart
27 SECTION:=libs
28 CATEGORY:=Libraries
29 TITLE:=An high-performance 2D graphics library
30 URL:=http://www.levien.com/libart/
31 endef
32
33 define Package/libart/description
34 A library of functions for 2D graphics supporting a superset of the
35 PostScript imaging model, designed to be integrated with graphics, artwork,
36 and illustration programs. It is written in optimized C, and is fully
37 compatible with C++. With a small footprint of 10,000 lines of code, it is
38 especially suitable for embedded applications.
39 endef
40
41 TARGET_CFLAGS += $(FPIC)
42
43 define Build/Configure
44 $(call Build/Configure/Default, \
45 --enable-shared \
46 --enable-static \
47 )
48 endef
49
50 define Build/Compile
51 $(MAKE) -C $(PKG_BUILD_DIR) HOSTCC="$(HOSTCC)"
52 endef
53
54 define Build/InstallDev
55 $(INSTALL_DIR) $(2)/bin $(1)/usr/include $(1)/usr/lib $(1)/usr/lib/pkgconfig
56 $(INSTALL_BIN) \
57 $(PKG_INSTALL_DIR)/usr/bin/libart2-config \
58 $(2)/bin/
59 $(SED) \
60 's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' \
61 $(2)/bin/libart2-config
62
63 $(CP) \
64 $(PKG_INSTALL_DIR)/usr/include/libart-2.0 \
65 $(1)/usr/include/
66
67 $(INSTALL_DATA) \
68 $(PKG_INSTALL_DIR)/usr/lib/libart_lgpl_2.{la,so*} \
69 $(1)/usr/lib/
70
71 $(INSTALL_DATA) \
72 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libart-2.0.pc \
73 $(1)/usr/lib/pkgconfig/
74 endef
75
76 define Package/libart/install
77 $(INSTALL_DIR) $(1)/usr/lib
78 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/libart_lgpl_2.so.* $(1)/usr/lib/
79 endef
80
81 $(eval $(call BuildPackage,libart))