[packages] zaptel: update and fix kernel module build for 2.6.34
[openwrt/svn-archive/archive.git] / libs / libcroco / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=libcroco
4 PKG_VERSION:=0.6.2
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:=1429c597aa4b75fc610ab3a542c99209
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 URL:=http://www.freespiders.org/projects/libcroco/
24 endef
25
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.
32
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.
36 endef
37
38 define Build/Compile
39 $(MAKE) -C $(PKG_BUILD_DIR)
40 $(MAKE) -C $(PKG_BUILD_DIR)/ install DESTDIR=$(PKG_INSTALL_DIR)
41 endef
42
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/
50 endef
51
52 define Package/libcroco/install
53 $(INSTALL_DIR) $(1)/usr/lib/
54 $(CP) $(PKG_INSTALL_DIR)/usr/lib/*{a,so*} $(1)/usr/lib/
55 endef
56
57 $(eval $(call BuildPackage,libcroco))
58
59