2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
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
20 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)_lgpl-
$(PKG_VERSION
)
21 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
23 include $(INCLUDE_DIR
)/package.mk
28 TITLE
:=An high-performance
2D graphics library
29 URL
:=http
://www.levien.com
/libart
/
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.
40 define Build
/Configure
41 $(call Build
/Configure
/Default
, \
48 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
50 DESTDIR
="$(PKG_INSTALL_DIR)" \
54 define Build
/InstallDev
56 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/libart2-config
$(1)/usr
/bin
/
57 mkdir
-p
$(1)/usr
/include
58 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/libart-2.0
$(1)/usr
/include/
60 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libart_lgpl_2.
{a
,so
*} $(1)/usr
/lib
/
61 mkdir
-p
$(1)/usr
/lib
/pkgconfig
62 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/libart-2.0.
pc $(1)/usr
/lib
/pkgconfig
/
65 define Build
/UninstallDev
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
73 define Package
/libart
/install
74 $(INSTALL_DIR
) $(1)/usr
/lib
75 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libart_lgpl_2.so.
* $(1)/usr
/lib
/
78 $(eval
$(call BuildPackage
,libart
))