source: packages/libs/libart/Makefile @ 21022

Last change on this file since 21022 was 21022, checked in by nico, 6 years ago

[packages] libart: update to 2.3.21

  • Property copyright set to Copyright (C) 2006 OpenWrt.org
  • Property licence set to GPLv2
  • Property svn:eol-style set to native
File size: 1.8 KB
Line 
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
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=libart
11PKG_VERSION:=2.3.21
12PKG_RELEASE:=1
13
14PKG_SOURCE:=$(PKG_NAME)_lgpl-$(PKG_VERSION).tar.bz2
15PKG_SOURCE_URL:=@GNOME/$(PKG_NAME)_lgpl/2.3
16PKG_MD5SUM:=08559ff3c67fd95d57b0c5e91a6b4302
17
18PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)_lgpl-$(PKG_VERSION)
19
20PKG_FIXUP:=libtool
21PKG_INSTALL:=1
22
23include $(INCLUDE_DIR)/package.mk
24
25define Package/libart
26  SECTION:=libs
27  CATEGORY:=Libraries
28  TITLE:=An high-performance 2D graphics library
29  URL:=http://www.levien.com/libart/
30endef
31
32define 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,
35 artwork, and illustration programs. It is written in optimized C, and
36 is fully compatible with C++. With a small footprint of 10,000 lines of
37 code, it is especially suitable for embedded applications.
38endef
39
40CONFIGURE_ARGS += \
41        --enable-shared \
42        --enable-static \
43
44TARGET_CFLAGS += $(FPIC)
45
46define Build/InstallDev
47        $(INSTALL_DIR) $(2)/bin $(1)/usr/include $(1)/usr/lib/pkgconfig
48        $(INSTALL_BIN) \
49                $(PKG_INSTALL_DIR)/usr/bin/libart2-config \
50                $(2)/bin/
51        $(SED) \
52                's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' \
53                $(2)/bin/libart2-config
54
55        $(CP) \
56                $(PKG_INSTALL_DIR)/usr/include/libart-2.0 \
57                        $(1)/usr/include/
58
59        $(CP) \
60                $(PKG_INSTALL_DIR)/usr/lib/libart_lgpl_2.{la,a,so*} \
61                $(1)/usr/lib/
62
63        $(INSTALL_DATA) \
64                $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libart-2.0.pc \
65                $(1)/usr/lib/pkgconfig/
66endef
67
68define Package/libart/install
69        $(INSTALL_DIR) $(1)/usr/lib
70        $(CP) $(PKG_INSTALL_DIR)/usr/lib/libart_lgpl_2.so.* $(1)/usr/lib/
71endef
72
73$(eval $(call BuildPackage,libart))
Note: See TracBrowser for help on using the repository browser.