Add libcroco css parsing library package
[openwrt/svn-archive/archive.git] / libs / libcroco / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=libcroco
4 PKG_VERSION:=0.6.1
5 PKG_RELEASE:=1
6
7 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
8 PKG_SOURCE_URL:=@GNOME/$(PKG_NAME)/0.6/
9 PKG_MD5SUM:=b0975bd01eb11964f1b3f254f267a43d
10 PKG_FIXUP:=libtool
11
12 include $(INCLUDE_DIR)/package.mk
13
14 EXTRA_LDFLAGS+=-Wl,-rpath-link=$(STAGING_DIR)/usr/lib \
15 -L$(STAGING_DIR)/usr/lib/libintl/lib/ \
16 -L$(STAGING_DIR)/usr/lib/libiconv/lib/
17
18 define Package/libcroco
19 SECTION:=libs
20 CATEGORY:=Libraries
21 TITLE:=Croco css2 parsing libraray.
22 DEPENDS:=+glib2 +libxml2
23 endef
24
25 define Package/libcroco/description
26 Libcroco is a standalone css2 parsing and manipulation library.
27 The parser provides a low level event driven SAC like api
28 and a css object model like api.
29 Libcroco provides a CSS2 selection engine and an experimental
30 xml/css rendering engine.
31
32 This library is being written to bring the css support
33 to the mlview xml editor project but it can be used
34 for other applications as well.
35 endef
36
37 define Build/Compile
38 $(MAKE) -C $(PKG_BUILD_DIR)
39 $(MAKE) -C $(PKG_BUILD_DIR)/ install DESTDIR=$(PKG_INSTALL_DIR)
40 endef
41
42 define Build/InstallDev
43 $(INSTALL_DIR) $(1)/usr/include/
44 $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
45 $(INSTALL_DIR) $(1)/usr/lib/
46 $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/
47 $(INSTALL_DIR) $(1)/host/bin/
48 $(CP) $(PKG_INSTALL_DIR)/usr/bin/croco-0.6-config $(1)/host/bin/
49 endef
50
51 define Package/libcroco/install
52 $(INSTALL_DIR) $(1)/usr/lib/
53 $(CP) $(PKG_INSTALL_DIR)/usr/lib/*{a,so*} $(1)/usr/lib/
54 endef
55
56 $(eval $(call BuildPackage,libcroco))
57
58