8f5747f9c654612d1077bf6354b764ce61f86d92
[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.17
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)_lgpl-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://ftp.gnome.org/pub/gnome/sources/libart_lgpl/2.3
17 PKG_MD5SUM:=f1f6b3e5490f382535dccb288f5d8b14
18 PKG_CAT:=zcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)_lgpl-$(PKG_VERSION)
21 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/libart
26 SECTION:=libs
27 CATEGORY:=Libraries
28 TITLE:=An high-performance 2D graphics library
29 DESCRIPTION:=\
30 A library of functions for 2D graphics supporting a superset of the \\\
31 PostScript imaging model, designed to be integrated with graphics, artwork, \\\
32 and illustration programs. It is written in optimized C, and is fully \\\
33 compatible with C++. With a small footprint of 10,000 lines of code, it is \\\
34 especially suitable for embedded applications.
35 URL:=http://www.levien.com/libart/
36 endef
37
38 define Build/Configure
39 $(call Build/Configure/Default, \
40 --enable-shared \
41 --enable-static \
42 )
43 endef
44
45 define Build/Compile
46 $(MAKE) -C $(PKG_BUILD_DIR) \
47 HOSTCC="$(HOSTCC)" \
48 DESTDIR="$(PKG_INSTALL_DIR)" \
49 all install
50 endef
51
52 define Build/InstallDev
53 mkdir -p $(STAGING_DIR)/usr/bin
54 $(CP) $(PKG_INSTALL_DIR)/usr/bin/libart2-config $(STAGING_DIR)/usr/bin/
55 mkdir -p $(STAGING_DIR)/usr/include
56 $(CP) $(PKG_INSTALL_DIR)/usr/include/libart-2.0 $(STAGING_DIR)/usr/include/
57 mkdir -p $(STAGING_DIR)/usr/lib
58 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libart_lgpl_2.{a,so*} $(STAGING_DIR)/usr/lib/
59 mkdir -p $(STAGING_DIR)/usr/lib/pkgconfig
60 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libart-2.0.pc $(STAGING_DIR)/usr/lib/pkgconfig/
61 $(SED) 's,-I$$$${includedir}/libart-2.0,,g' $(STAGING_DIR)/usr/lib/pkgconfig/libart-2.0.pc
62 $(SED) 's,-L$$$${libdir},,g' $(STAGING_DIR)/usr/lib/pkgconfig/libart-2.0.pc
63 endef
64
65 define Build/UninstallDev
66 rm -rf \
67 $(STAGING_DIR)/usr/bin/libart2-config \
68 $(STAGING_DIR)/usr/include/libart-2.0 \
69 $(STAGING_DIR)/usr/lib/libart_lgpl_2.{a,so*} \
70 $(STAGING_DIR)/usr/lib/pkgconfig/libart-2.0.pc
71 endef
72
73 define Package/libart/install
74 install -d -m0755 $(1)/usr/lib
75 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libart_lgpl_2.so.* $(1)/usr/lib/
76 endef
77
78 $(eval $(call BuildPackage,libart))