2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
14 PKG_SOURCE:=$(PKG_NAME)_lgpl-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=@GNOME/$(PKG_NAME)_lgpl/2.3
16 PKG_MD5SUM:=d0ce67f2ebcef1e51a83136c69242a73
18 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)_lgpl-$(PKG_VERSION)
21 include $(INCLUDE_DIR)/package.mk
28 TITLE:=An high-performance 2D graphics library
29 URL:=http://www.levien.com/libart/
32 define Package/libart/description
33 A library of functions for 2D graphics supporting a superset of the
34 PostScript imaging model, designed to be integrated with graphics, artwork,
35 and illustration programs. It is written in optimized C, and is fully
36 compatible with C++. With a small footprint of 10,000 lines of code, it is
37 especially suitable for embedded applications.
40 TARGET_CFLAGS += $(FPIC)
42 define Build/Configure
43 $(call Build/Configure/Default, \
50 $(MAKE) -C $(PKG_BUILD_DIR) HOSTCC="$(HOSTCC)"
53 define Build/InstallDev
54 $(INSTALL_DIR) $(2)/bin $(1)/usr/include $(1)/usr/lib $(1)/usr/lib/pkgconfig
56 $(PKG_INSTALL_DIR)/usr/bin/libart2-config \
59 's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' \
60 $(2)/bin/libart2-config
63 $(PKG_INSTALL_DIR)/usr/include/libart-2.0 \
67 $(PKG_INSTALL_DIR)/usr/lib/libart_lgpl_2.{la,a,so*} \
71 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libart-2.0.pc \
72 $(1)/usr/lib/pkgconfig/
75 define Package/libart/install
76 $(INSTALL_DIR) $(1)/usr/lib
77 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libart_lgpl_2.so.* $(1)/usr/lib/
80 $(eval $(call BuildPackage,libart))