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
/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
72 $(INSTALL_DIR
) $(1)/usr
/bin
$(2)/bin
$(1)/usr
/include/libxslt
$(1)/usr
/lib \
73 $(1)/usr
/lib
/pkgconfig
$(2)/share
/aclocal
76 $(PKG_INSTALL_DIR
)/usr
/bin
/xslt-config \
79 ln
-sf
$(STAGING_DIR
)/host
/bin
/xslt-config
$(1)/usr
/bin
/xslt-config
82 's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' \
86 $(PKG_INSTALL_DIR
)/usr
/include/libxslt
/* \
87 $(1)/usr
/include/libxslt
/
90 $(PKG_INSTALL_DIR
)/usr
/lib
/libxslt.
{la
,a
,so
*} \
94 $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/libxslt.
pc \
95 $(1)/usr
/lib
/pkgconfig
/
98 $(PKG_INSTALL_DIR
)/usr
/share
/aclocal
/* \
102 define Package
/libxslt
/install
103 $(INSTALL_DIR
) $(1)/usr
/lib
105 $(PKG_INSTALL_DIR
)/usr
/lib
/libxslt.so.
* \
109 define Package
/libexslt
/install
110 $(INSTALL_DIR
) $(1)/usr
/lib
112 $(PKG_INSTALL_DIR
)/usr
/lib
/libexslt.so.
* \
116 define Package
/xsltproc
/install
117 $(INSTALL_DIR
) $(1)/usr
/bin
119 $(PKG_INSTALL_DIR
)/usr
/bin
/xsltproc \
123 $(eval
$(call BuildPackage
,libxslt
))
124 $(eval
$(call BuildPackage
,libexslt
))
125 $(eval
$(call BuildPackage
,xsltproc
))