2 # Copyright (C) 2006-2011 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/libexslt
40 TITLE:=Gnome XSLT library Extention
41 URL:=http://xmlsoft.org/XSLT/EXSLT/
44 define Package/libexslt/description
48 define Package/xsltproc
51 DEPENDS:=+libxml2 +libxslt +libexslt
52 TITLE:=Gnome XSLT xsltproc Utility
53 URL:=http://xmlsoft.org/XSLT/
56 define Package/xsltproc/description
57 XSLT XML transformation utility
69 TARGET_CFLAGS += $(FPIC)
71 define Build/InstallDev/Xslt
72 $(INSTALL_DIR) $(1)/usr/bin $(2)/bin $(1)/usr/include/libxslt \
73 $(1)/usr/include/libexslt $(1)/usr/lib \
74 $(1)/usr/lib/pkgconfig $(2)/share/aclocal
77 $(PKG_INSTALL_DIR)/usr/bin/xslt-config \
80 ln -sf $(STAGING_DIR)/host/bin/xslt-config $(1)/usr/bin/xslt-config
83 's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' \
87 $(PKG_INSTALL_DIR)/usr/include/libxslt/* \
88 $(1)/usr/include/libxslt/
91 $(PKG_INSTALL_DIR)/usr/lib/libxslt.{la,a,so*} \
95 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libxslt.pc \
96 $(1)/usr/lib/pkgconfig/
99 $(PKG_INSTALL_DIR)/usr/share/aclocal/* \
103 define Build/InstallDev/Exslt
104 $(INSTALL_DIR) $(1)/usr/include/libexslt $(1)/usr/lib/pkgconfig
106 $(PKG_INSTALL_DIR)/usr/include/libexslt/* \
107 $(1)/usr/include/libexslt/
110 $(PKG_INSTALL_DIR)/usr/lib/libexslt.{la,a,so*} \
114 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libexslt.pc \
115 $(1)/usr/lib/pkgconfig/
118 define Build/InstallDev
119 $(if $(CONFIG_PACKAGE_libxslt),$(call Build/InstallDev/Xslt,$(1),$(2)))
120 $(if $(CONFIG_PACKAGE_libexslt),$(call Build/InstallDev/Exslt,$(1),$(2)))
123 define Package/libxslt/install
124 $(INSTALL_DIR) $(1)/usr/lib
126 $(PKG_INSTALL_DIR)/usr/lib/libxslt.so.* \
130 define Package/libexslt/install
131 $(INSTALL_DIR) $(1)/usr/lib
133 $(PKG_INSTALL_DIR)/usr/lib/libexslt.so.* \
137 define Package/xsltproc/install
138 $(INSTALL_DIR) $(1)/usr/bin
140 $(PKG_INSTALL_DIR)/usr/bin/xsltproc \
144 $(eval $(call BuildPackage,libxslt))
145 $(eval $(call BuildPackage,libexslt))
146 $(eval $(call BuildPackage,xsltproc))