69555d6049ccd3dbce6722fd1aa465494c02ff31
[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 define Package/libart
25 SECTION:=libs
26 CATEGORY:=Libraries
27 TITLE:=An high-performance 2D graphics library
28 URL:=http://www.levien.com/libart/
29 endef
30
31 define Package/libart/description
32 A library of functions for 2D graphics supporting a superset of the
33 PostScript imaging model, designed to be integrated with graphics, artwork,
34 and illustration programs. It is written in optimized C, and is fully
35 compatible with C++. With a small footprint of 10,000 lines of code, it is
36 especially suitable for embedded applications.
37 endef
38
39 TARGET_CFLAGS += $(FPIC)
40
41 define Build/Configure
42 $(call Build/Configure/Default, \
43 --enable-shared \
44 --enable-static \
45 , \
46 )
47 endef
48
49 define Build/Compile
50 $(MAKE) -C $(PKG_BUILD_DIR) HOSTCC="$(HOSTCC)"
51 $(MAKE) -C $(PKG_BUILD_DIR) install DESTDIR="$(PKG_INSTALL_DIR)"
52 endef
53
54 define Build/InstallDev
55 $(INSTALL_DIR) $(1)/usr/bin $(1)/usr/include $(1)/usr/lib $(1)/usr/lib/pkgconfig
56 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/libart2-config $(1)/usr/bin/
57 $(CP) $(PKG_INSTALL_DIR)/usr/include/libart-2.0 $(1)/usr/include/
58 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/libart_lgpl_2.{la,a,so*} $(1)/usr/lib/
59 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libart-2.0.pc $(1)/usr/lib/pkgconfig/
60 endef
61
62 define Package/libart/install
63 $(INSTALL_DIR) $(1)/usr/lib
64 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/libart_lgpl_2.so.* $(1)/usr/lib/
65 endef
66
67 $(eval $(call BuildPackage,libart))