poco: moved to github
[packages.git] / libs / libart / Makefile
1 #
2 # Copyright (C) 2006-2010 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:=libart
11 PKG_VERSION:=2.3.21
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)_lgpl-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=@GNOME/$(PKG_NAME)_lgpl/2.3
16 PKG_MD5SUM:=08559ff3c67fd95d57b0c5e91a6b4302
17
18 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)_lgpl-$(PKG_VERSION)
19
20 PKG_FIXUP:=autoreconf
21
22 PKG_INSTALL:=1
23
24 include $(INCLUDE_DIR)/package.mk
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,
36  artwork, and illustration programs. It is written in optimized C, and
37  is fully compatible with C++. With a small footprint of 10,000 lines of
38  code, it is especially suitable for embedded applications.
39 endef
40
41 CONFIGURE_ARGS += \
42         --enable-shared \
43         --enable-static \
44
45 TARGET_CFLAGS += $(FPIC)
46
47 define Build/InstallDev
48         $(INSTALL_DIR) $(2)/bin $(1)/usr/include $(1)/usr/lib/pkgconfig
49         $(INSTALL_BIN) \
50                 $(PKG_INSTALL_DIR)/usr/bin/libart2-config \
51                 $(2)/bin/
52         $(SED) \
53                 's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' \
54                 $(2)/bin/libart2-config
55
56         $(CP) \
57                 $(PKG_INSTALL_DIR)/usr/include/libart-2.0 \
58                         $(1)/usr/include/
59
60         $(CP) \
61                 $(PKG_INSTALL_DIR)/usr/lib/libart_lgpl_2.{la,a,so*} \
62                 $(1)/usr/lib/
63
64         $(INSTALL_DATA) \
65                 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libart-2.0.pc \
66                 $(1)/usr/lib/pkgconfig/
67 endef
68
69 define Package/libart/install
70         $(INSTALL_DIR) $(1)/usr/lib
71         $(CP) $(PKG_INSTALL_DIR)/usr/lib/libart_lgpl_2.so.* $(1)/usr/lib/
72 endef
73
74 $(eval $(call BuildPackage,libart))