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