[package] update fftw3 to 3.2.1 (#5391)
[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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=libart
11 PKG_VERSION:=2.3.20
12 PKG_RELEASE:=3
13
14 PKG_SOURCE:=$(PKG_NAME)_lgpl-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=@GNOME/$(PKG_NAME)_lgpl/2.3
16 PKG_MD5SUM:=d0ce67f2ebcef1e51a83136c69242a73
17
18 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)_lgpl-$(PKG_VERSION)
19 PKG_FIXUP:=libtool
20
21 include $(INCLUDE_DIR)/package.mk
22
23 PKG_INSTALL=1
24
25 define Package/libart
26 SECTION:=libs
27 CATEGORY:=Libraries
28 TITLE:=An high-performance 2D graphics library
29 URL:=http://www.levien.com/libart/
30 endef
31
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.
38 endef
39
40 TARGET_CFLAGS += $(FPIC)
41
42 define Build/Configure
43 $(call Build/Configure/Default, \
44 --enable-shared \
45 --enable-static \
46 )
47 endef
48
49 define Build/Compile
50 $(MAKE) -C $(PKG_BUILD_DIR) HOSTCC="$(HOSTCC)"
51 endef
52
53 define Build/InstallDev
54 $(INSTALL_DIR) $(2)/bin $(1)/usr/include $(1)/usr/lib $(1)/usr/lib/pkgconfig
55 $(INSTALL_BIN) \
56 $(PKG_INSTALL_DIR)/usr/bin/libart2-config \
57 $(2)/bin/
58 $(SED) \
59 's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' \
60 $(2)/bin/libart2-config
61
62 $(CP) \
63 $(PKG_INSTALL_DIR)/usr/include/libart-2.0 \
64 $(1)/usr/include/
65
66 $(CP) \
67 $(PKG_INSTALL_DIR)/usr/lib/libart_lgpl_2.{la,a,so*} \
68 $(1)/usr/lib/
69
70 $(INSTALL_DATA) \
71 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libart-2.0.pc \
72 $(1)/usr/lib/pkgconfig/
73 endef
74
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/
78 endef
79
80 $(eval $(call BuildPackage,libart))