2 # Copyright (C) 2006-2009 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://xmlsoft.org/sources/ \
16 ftp://fr.rpmfind.net/pub/libxml/
17 PKG_MD5SUM:=e61d0364a30146aaa3001296f853b2b9
22 include $(INCLUDE_DIR)/package.mk
24 define Package/libxslt
28 TITLE:=Gnome XSLT library
29 URL:=http://xmlsoft.org/XSLT/
32 define Package/libxslt/description
33 A library for XML transformation using XSLT.
36 define Package/xsltproc
39 DEPENDS:=+libxml2 +libxslt
40 TITLE:=Gnome XSLT xsltproc Utility
41 URL:=http://xmlsoft.org/XSLT/
44 define Package/xsltproc/description
45 XSLT XML transformation utility
57 TARGET_CFLAGS += $(FPIC)
59 define Build/InstallDev
60 $(INSTALL_DIR) $(1)/usr/bin $(2)/bin $(1)/usr/include/libxslt $(1)/usr/lib \
61 $(1)/usr/lib/pkgconfig $(2)/share/aclocal
64 $(PKG_INSTALL_DIR)/usr/bin/xslt-config \
67 ln -sf $(STAGING_DIR)/host/bin/xslt-config $(1)/usr/bin/xslt-config
70 's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' \
74 $(PKG_INSTALL_DIR)/usr/include/libxslt/* \
75 $(1)/usr/include/libxslt/
78 $(PKG_INSTALL_DIR)/usr/lib/libxslt.{la,a,so*} \
82 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libxslt.pc \
83 $(1)/usr/lib/pkgconfig/
86 $(PKG_INSTALL_DIR)/usr/share/aclocal/* \
90 define Package/libxslt/install
91 $(INSTALL_DIR) $(1)/usr/lib
93 $(PKG_INSTALL_DIR)/usr/lib/libxslt.so.* \
97 define Package/xsltproc/install
98 $(INSTALL_DIR) $(1)/usr/bin
100 $(PKG_INSTALL_DIR)/usr/bin/xsltproc \
104 $(eval $(call BuildPackage,libxslt))
105 $(eval $(call BuildPackage,xsltproc))