2006-07-26 01:09:42 +00:00
|
|
|
#
|
|
|
|
# Copyright (C) 2006 OpenWrt.org
|
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
# $Id$
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=libart
|
2007-12-29 01:02:05 +00:00
|
|
|
PKG_VERSION:=2.3.19
|
2006-07-26 01:09:42 +00:00
|
|
|
PKG_RELEASE:=1
|
|
|
|
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)_lgpl-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=http://ftp.gnome.org/pub/gnome/sources/libart_lgpl/2.3
|
2007-12-29 01:02:05 +00:00
|
|
|
PKG_MD5SUM:=a2992b830295132dae2bf85d1156e48e
|
2006-07-26 01:09:42 +00:00
|
|
|
|
2006-10-28 22:43:08 +00:00
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)_lgpl-$(PKG_VERSION)
|
2007-12-27 02:12:26 +00:00
|
|
|
PKG_FIXUP:=libtool
|
2006-07-26 01:09:42 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/libart
|
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
|
|
|
TITLE:=An high-performance 2D graphics library
|
|
|
|
URL:=http://www.levien.com/libart/
|
|
|
|
endef
|
|
|
|
|
2007-10-14 04:32:56 +00:00
|
|
|
define Package/libart/description
|
|
|
|
A library of functions for 2D graphics supporting a superset of the
|
|
|
|
PostScript imaging model, designed to be integrated with graphics, artwork,
|
|
|
|
and illustration programs. It is written in optimized C, and is fully
|
|
|
|
compatible with C++. With a small footprint of 10,000 lines of code, it is
|
|
|
|
especially suitable for embedded applications.
|
|
|
|
endef
|
|
|
|
|
2008-08-06 22:43:15 +00:00
|
|
|
TARGET_CFLAGS += $(FPIC)
|
|
|
|
|
2007-12-27 02:12:26 +00:00
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
--enable-shared \
|
|
|
|
--enable-static
|
2006-07-26 01:09:42 +00:00
|
|
|
|
|
|
|
define Build/Compile
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
|
|
|
HOSTCC="$(HOSTCC)" \
|
|
|
|
DESTDIR="$(PKG_INSTALL_DIR)" \
|
|
|
|
all install
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/InstallDev
|
2007-12-27 10:39:20 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/bin $(1)/usr/include $(1)/usr/lib $(1)/usr/lib/pkgconfig
|
2007-12-09 18:59:01 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/libart2-config $(1)/usr/bin/
|
2007-10-07 03:20:26 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/libart-2.0 $(1)/usr/include/
|
2007-12-27 02:12:26 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libart_lgpl_2.{la,a,so*} $(1)/usr/lib/
|
2007-10-07 03:20:26 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libart-2.0.pc $(1)/usr/lib/pkgconfig/
|
2006-07-26 01:09:42 +00:00
|
|
|
endef
|
|
|
|
|
2006-10-28 22:43:08 +00:00
|
|
|
define Package/libart/install
|
2006-11-23 00:29:07 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
2006-10-28 22:43:08 +00:00
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libart_lgpl_2.so.* $(1)/usr/lib/
|
|
|
|
endef
|
|
|
|
|
2006-07-26 01:09:42 +00:00
|
|
|
$(eval $(call BuildPackage,libart))
|