1 include $(TOPDIR)/rules.mk
7 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
8 PKG_SOURCE_URL:=@GNOME/$(PKG_NAME)/0.6/
9 PKG_MD5SUM:=1429c597aa4b75fc610ab3a542c99209
12 include $(INCLUDE_DIR)/package.mk
13 include $(INCLUDE_DIR)/nls.mk
15 EXTRA_LDFLAGS+=-Wl,-rpath-link=$(STAGING_DIR)/usr/lib \
16 -L$(ICONV_PREFIX) -L$(INTL_PREFIX)
18 define Package/libcroco
21 TITLE:=Croco css2 parsing libraray.
22 DEPENDS:=+glib2 +libxml2
23 URL:=http://www.freespiders.org/projects/libcroco/
26 define Package/libcroco/description
27 Libcroco is a standalone css2 parsing and manipulation library.
28 The parser provides a low level event driven SAC like api
29 and a css object model like api.
30 Libcroco provides a CSS2 selection engine and an experimental
31 xml/css rendering engine.
33 This library is being written to bring the css support
34 to the mlview xml editor project but it can be used
35 for other applications as well.
39 $(MAKE) -C $(PKG_BUILD_DIR)
40 $(MAKE) -C $(PKG_BUILD_DIR)/ install DESTDIR=$(PKG_INSTALL_DIR)
43 define Build/InstallDev
44 $(INSTALL_DIR) $(1)/usr/include/
45 $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
46 $(INSTALL_DIR) $(1)/usr/lib/
47 $(CP) $(PKG_INSTALL_DIR)/usr/lib/* $(1)/usr/lib/
48 $(INSTALL_DIR) $(1)/host/bin/
49 $(CP) $(PKG_INSTALL_DIR)/usr/bin/croco-0.6-config $(1)/host/bin/
52 define Package/libcroco/install
53 $(INSTALL_DIR) $(1)/usr/lib/
54 $(CP) $(PKG_INSTALL_DIR)/usr/lib/*{a,so*} $(1)/usr/lib/
57 $(eval $(call BuildPackage,libcroco))